From 70203ee17a2d687a71a38ae406ead9f1bbc148a5 Mon Sep 17 00:00:00 2001 From: GabinL21 Date: Thu, 14 Nov 2024 11:03:04 +0100 Subject: [PATCH] Improve rule S6249: fix Terraform code examples --- rules/S6249/terraform/rule.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules/S6249/terraform/rule.adoc b/rules/S6249/terraform/rule.adoc index 558ac2ea73d..4d285586569 100644 --- a/rules/S6249/terraform/rule.adoc +++ b/rules/S6249/terraform/rule.adoc @@ -38,8 +38,8 @@ resource "aws_s3_bucket_policy" "mynoncompliantbucketpolicy" { } # secondary location: only one principal is forced to use https Action = "s3:*" Resource = [ - aws_s3_bucket.mynoncompliantbucketpolicy.arn, - "${aws_s3_bucket.mynoncompliantbucketpolicy.arn}/*", + aws_s3_bucket.mynoncompliantbucket.arn, + "${aws_s3_bucket.mynoncompliantbucket.arn}/*", ] Condition = { Bool = {