Skip to content

Commit

Permalink
changed local parsing:
Browse files Browse the repository at this point in the history
  • Loading branch information
Falpangaea committed Jan 14, 2020
1 parent 7a91bdd commit abfbc3b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions locals.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
locals {
"bucket_arn" = "arn:aws:s3:::${var.bucket_name}"
"object_arn" = "arn:aws:s3:::${var.bucket_name}/${var.prefix}*"
policy = "${var.write_access ? "${var.delete_access ?
data.aws_iam_policy_document.user_policy_read_write_delete.json :
data.aws_iam_policy_document.user_policy_read_write.json
}" :
data.aws_iam_policy_document.user_policy_read.json
}"
write_access = "${var.write_access ? "_write" : ""}"
delete_access = "${var.delete_access ? "_delete" : ""}"
policy = "${data.aws_iam_policy_document.user_policy_read${local.write_access}${local.delete_access}.json}"
}

0 comments on commit abfbc3b

Please sign in to comment.