From 8f519e8cfd95499ccdd3a713daa733422b8db8e0 Mon Sep 17 00:00:00 2001 From: badra001 Date: Mon, 21 Nov 2022 09:56:28 -0500 Subject: [PATCH] replace AWSConfigRole with AWS_ConfigRole --- config/README.md | 1 + config/role.tf | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config/README.md b/config/README.md index 409709a..feafbf2 100644 --- a/config/README.md +++ b/config/README.md @@ -80,6 +80,7 @@ No modules. | [aws_iam_policy_document.config_sqs](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source | | [aws_iam_policy_document.config_sqs_deadletter](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source | | [aws_region.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region) | data source | +| [aws_regions.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/regions) | data source | | [template_file.splunk_config](https://registry.terraform.io/providers/hashicorp/template/latest/docs/data-sources/file) | data source | | [template_file.splunk_configrules](https://registry.terraform.io/providers/hashicorp/template/latest/docs/data-sources/file) | data source | diff --git a/config/role.tf b/config/role.tf index f66843b..37fdbaf 100644 --- a/config/role.tf +++ b/config/role.tf @@ -6,8 +6,10 @@ locals { } } +# https://docs.aws.amazon.com/config/latest/developerguide/security-iam-awsmanpol.html +# AWSConfigRole replaced by AWS_ConfigRole 2022-04-01 data "aws_iam_policy" "aws_config_role" { - name = "AWSConfigRole" + name = "AWS_ConfigRole" } data "aws_iam_policy" "aws_configrules_execution_role" { name = "AWSConfigRulesExecutionRole"