This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
S3Policy: | |
Type: "AWS::S3::BucketPolicy" | |
Properties: | |
Bucket: !Ref S3BucketTrail | |
PolicyDocument: | |
Statement: | |
- Sid: AWSCloudTrailAclCheck | |
Effect: Allow | |
Principal: | |
Service: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thu Mar 21 17:51:28 UTC 2019 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "aws_iam_policy" "policy" { | |
count = "${length(var.policy_file)}" | |
name = "${var.policy_file[count.index]}" | |
path = "/" | |
description = "" | |
policy = "${file("${dirname("${path.root}")}/${var.aws_account_name}/${var.policy_file[count.index]}")}" | |
} |