Skip to content

Instantly share code, notes, and snippets.

@pgporada
Created February 15, 2017 21:43
Show Gist options
  • Save pgporada/1d2dcc3a10d347c7e13b57d4c50d87b0 to your computer and use it in GitHub Desktop.
Save pgporada/1d2dcc3a10d347c7e13b57d4c50d87b0 to your computer and use it in GitHub Desktop.
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