Skip to content

Commit

Permalink
Use Version "2012-10-17" for S3 policy
Browse files Browse the repository at this point in the history
  • Loading branch information
vandrijevik committed May 15, 2018
1 parent 10c08c2 commit 2afc8de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aws/application_load_balancer/__examples__/.planshots.txt
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,6 @@ website_endpoint: <computed>
+ module.initech_production_load_balancer.module.load_balancer.aws_s3_bucket_policy.load_balancer_access_logs
id: <computed>
bucket: "${aws_s3_bucket.load_balancer_access_logs.id}"
policy: "{\n \"Version\": \"2018-05-11\",\n \"Statement\": [\n {\n \"Action\": [\n \"s3:PutObject\"\n ],\n \"Effect\": \"Allow\",\n \"Resource\": \"${aws_s3_bucket.load_balancer_access_logs.arn}/AWSLogs/${data.aws_caller_identity.aws_account.account_id}/*\",\n \"Principal\": {\n \"AWS\": [\n \"${lookup(local.elastic_load_balancing_account_ids, aws_s3_bucket.load_balancer_access_logs.region)}\"\n ]\n }\n }\n ]\n}\n"
policy: "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Action\": [\n \"s3:PutObject\"\n ],\n \"Effect\": \"Allow\",\n \"Resource\": \"${aws_s3_bucket.load_balancer_access_logs.arn}/AWSLogs/${data.aws_caller_identity.aws_account.account_id}/*\",\n \"Principal\": {\n \"AWS\": [\n \"${lookup(local.elastic_load_balancing_account_ids, aws_s3_bucket.load_balancer_access_logs.region)}\"\n ]\n }\n }\n ]\n}\n"
Plan: 38 to add, 0 to change, 0 to destroy.

2 changes: 1 addition & 1 deletion aws/application_load_balancer/load_balancer/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ resource "aws_s3_bucket_policy" "load_balancer_access_logs" {

policy = <<-JSON
{
"Version": "2018-05-11",
"Version": "2012-10-17",
"Statement": [
{
"Action": [
Expand Down

0 comments on commit 2afc8de

Please sign in to comment.