Commit ab31a359 authored by Jose Ernesto Suarez's avatar Jose Ernesto Suarez

Fix incompatibility with M1 processors getting rid of deprecated stuff

parent 44605ae8
resource "aws_s3_bucket_policy" "s3_cur_output_name_policy" { resource "aws_s3_bucket_policy" "s3_cur_output_name_policy" {
bucket = var.s3_bucket_id bucket = var.s3_bucket_id
policy = data.template_file.s3_cur_output_name_policy.rendered policy = templatefile("${path.module}/files/policy.json.tpl",{
}
data "template_file" "s3_cur_output_name_policy" {
template = "${file("${path.module}/files/policy.json.tpl")}"
vars = {
bucket_name = var.s3_bucket_id, bucket_name = var.s3_bucket_id,
distribution_arn = var.distribution_arn, distribution_arn = var.distribution_arn,
identity_arn = var.identity_arn identity_arn = var.identity_arn
} })
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment