Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
terraform-aws-rds
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Terraform Modules
terraform-aws-rds
Commits
255bf72b
Commit
255bf72b
authored
Jan 15, 2018
by
Nazar Annagurban
Committed by
Anton Babenko
Jan 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix enhanced monitoring policy attachment (#34)
parent
f2245e3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
main.tf
modules/db_instance/main.tf
+2
-3
No files found.
modules/db_instance/main.tf
View file @
255bf72b
...
...
@@ -9,11 +9,10 @@ resource "aws_iam_role" "enhanced_monitoring" {
assume_role_policy
=
"
${
file
(
"
${
path
.
module}
/policy/enhancedmonitoring.json"
)
}
"
}
resource
"aws_iam_policy_attachment"
"enhanced_monitoring"
{
resource
"aws_iam_
role_
policy_attachment"
"enhanced_monitoring"
{
count
=
"
${
var
.
create_monitoring_role
?
1
:
0
}
"
name
=
"
${
var
.
monitoring_role_name
}
"
roles
=
[
"
${
aws_iam_role
.
enhanced_monitoring
.
name
}
"
]
role
=
"
${
aws_iam_role
.
enhanced_monitoring
.
name
}
"
policy_arn
=
"arn:aws:iam::aws:policy/service-role/AmazonRDSEnhancedMonitoringRole"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment