{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/5455","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/5455/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/5455/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/5455/events","html_url":"https://github.com/hashicorp/terraform/issues/5455","id":138386071,"number":5455,"title":"RDS Enhanced Monitoring MonitoringRoleARN value is required","user":{"login":"deanmraz","id":2848187,"avatar_url":"https://avatars.githubusercontent.com/u/2848187?v=3","gravatar_id":"","url":"https://api.github.com/users/deanmraz","html_url":"https://github.com/deanmraz","followers_url":"https://api.github.com/users/deanmraz/followers","following_url":"https://api.github.com/users/deanmraz/following{/other_user}","gists_url":"https://api.github.com/users/deanmraz/gists{/gist_id}","starred_url":"https://api.github.com/users/deanmraz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deanmraz/subscriptions","organizations_url":"https://api.github.com/users/deanmraz/orgs","repos_url":"https://api.github.com/users/deanmraz/repos","events_url":"https://api.github.com/users/deanmraz/events{/privacy}","received_events_url":"https://api.github.com/users/deanmraz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-04T05:55:37Z","updated_at":"2016-03-04T07:25:01Z","closed_at":"2016-03-04T07:25:01Z","body":"I am getting an weird issue with trying to enable RDS enhanced monitoring..\r\n\r\n* aws_db_instance.mysql: Error modifying DB Instance <name>: InvalidParameterCombination: A MonitoringRoleARN value is required if you specify a MonitoringInterval value other than 0.\r\n\r\nI do have the variable set and I've copied the implementation used in the test case here: https://github.com/stack72/terraform/commit/e87d3bb711c1e1da134e0911d194a999ee62a77e\r\n\r\nI wonder if it has something to do with expecting capital ARN in MonitoringRoleARN, but when I try various variables it fails as invalid. \r\n\r\nMy implementation: \r\n```\r\n  monitoring_role_arn = \"${aws_iam_role.enhanced_policy_role.arn}\"\r\n  monitoring_interval = \"${var.enhanced_monitoring_interval}\"\r\n```\r\n\r\nAlso, confirmed that the role and policy gets created with the right access. I manually turned on the enhanced monitoring and it worked using the role created by terraform. \r\n\r\n@stack72 do you have any ideas?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/192156714","html_url":"https://github.com/hashicorp/terraform/issues/5455#issuecomment-192156714","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/5455","id":192156714,"user":{"login":"deanmraz","id":2848187,"avatar_url":"https://avatars.githubusercontent.com/u/2848187?v=3","gravatar_id":"","url":"https://api.github.com/users/deanmraz","html_url":"https://github.com/deanmraz","followers_url":"https://api.github.com/users/deanmraz/followers","following_url":"https://api.github.com/users/deanmraz/following{/other_user}","gists_url":"https://api.github.com/users/deanmraz/gists{/gist_id}","starred_url":"https://api.github.com/users/deanmraz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deanmraz/subscriptions","organizations_url":"https://api.github.com/users/deanmraz/orgs","repos_url":"https://api.github.com/users/deanmraz/repos","events_url":"https://api.github.com/users/deanmraz/events{/privacy}","received_events_url":"https://api.github.com/users/deanmraz/received_events","type":"User","site_admin":false},"created_at":"2016-03-04T07:25:01Z","updated_at":"2016-03-04T07:25:01Z","body":"Ensuring role created before policy attachment fixed this issue for me\r\n```\r\nresource \"aws_iam_policy_attachment\" \"policy-attach\" {\r\n  depends_on = [\"aws_iam_role.enhanced_policy_role\"]\r\n```"}}