-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
comment out dynamic policy until figure out why AWS error it out
- Loading branch information
Showing
1 changed file
with
13 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
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\": [ ] } " | ||
|
||
} | ||
|