We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ed5d7b commit f69c8bbCopy full SHA for f69c8bb
main.tf
@@ -390,6 +390,8 @@ resource "aws_iam_role_policy_attachment" "user_defined_policies" {
390
### Policy for the docker machine instance to access cache
391
################################################################################
392
resource "aws_iam_role_policy_attachment" "docker_machine_cache_instance" {
393
+ count = var.cache_bucket["create"] || length(lookup(var.cache_bucket, "policy", "")) > 0 ? 1 : 0
394
+
395
role = aws_iam_role.instance.name
396
policy_arn = local.bucket_policy
397
}
0 commit comments