Skip to content

Commit

Permalink
comment out dynamic policy until figure out why AWS error it out
Browse files Browse the repository at this point in the history
  • Loading branch information
araman-m committed May 17, 2024
1 parent 454458a commit 014dc14
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions terraform/iam_s3hf.tf
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@

# Commented as this currently error out with invalid policy from AWS when not set

resource "aws_iam_policy" "pol-splunk-s3-hf" {
name_prefix = "splunkconf_s3_hf_"
description = "Permissions needed for Splunk to access ${var.s3_bucket_1}/{var.s3_prefix_1}"
provider = aws.region-primary
policy = templatefile(
"policy-aws/pol-splunk-access-s3.json.tpl",
{
s3_bucket = var.s3_bucket_1
s3_prefix = var.s3_prefix_1
profile = var.profile
splunktargetenv = var.splunktargetenv
}
)
#policy = "{ \"Version\": \"2012-10-17\", \"Statement\": [ ] } "
# policy = templatefile(
#"policy-aws/pol-splunk-access-s3.json.tpl",
#{
# s3_bucket = var.s3_bucket_1
# s3_prefix = var.s3_prefix_1
# profile = var.profile
# splunktargetenv = var.splunktargetenv
# }
#)
policy = "{ \"Version\": \"2012-10-17\", \"Statement\": [ ] } "

}

0 comments on commit 014dc14

Please sign in to comment.