You need to sign in or sign up before continuing.
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" {
bucket = var.s3_bucket_id
policy = data.template_file.s3_cur_output_name_policy.rendered
}
data "template_file" "s3_cur_output_name_policy" {
template = "${file("${path.module}/files/policy.json.tpl")}"
vars = {
policy = templatefile("${path.module}/files/policy.json.tpl",{
bucket_name = var.s3_bucket_id,
distribution_arn = var.distribution_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