Created
February 15, 2017 21:43
-
-
Save pgporada/1d2dcc3a10d347c7e13b57d4c50d87b0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "aws_iam_role_policy" "instance_policy" { | |
name = xxxxxxx | |
role = "${aws_iam_role.instance_role.id}" | |
policy = xxxxxxx | |
# Allows the IAM role enough time to propagate through AWS | |
provisioner "local-exec" { | |
command = <<EOT | |
echo "Sleeping for 10 seconds to allow the IAM role enough time to propagate through AWS"; | |
sleep 10; | |
echo "IAM role should be propagated, proceeding."; | |
EOT | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment