Skip to content

Commit

Permalink
add config rules execution
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed May 24, 2021
1 parent f61fe09 commit fbe8a0e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ No modules.
| [aws_arn.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/arn) | data source |
| [aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source |
| [aws_iam_policy.aws_config_role](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy) | data source |
| [aws_iam_policy.aws_configrules_execution_role](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy) | data source |
| [aws_iam_policy_document.config](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
| [aws_iam_policy_document.config_assume](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
| [aws_iam_policy_document.config_sns_topic](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
Expand Down
8 changes: 6 additions & 2 deletions config/role.tf
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
locals {
config_policies = {
"aws-config-role" = data.aws_iam_policy.aws_config_role.arn,
"p-inf-config" = aws_iam_policy.config.arn,
"aws-config-role" = data.aws_iam_policy.aws_config_role.arn,
"aws-configrules-role" = data.aws_iam_policy.aws_configrules_execution_role.arn,
"p-inf-config" = aws_iam_policy.config.arn,
}
}

data "aws_iam_policy" "aws_config_role" {
name = "AWSConfigRole"
}
data "aws_iam_policy" "aws_configrules_execution_role" {
name = "AWSConfigRulesExecutionRole"
}

#---
# role
Expand Down

0 comments on commit fbe8a0e

Please sign in to comment.