Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Last active August 24, 2019 18:24
Show Gist options
  • Select an option

  • Save KyMidd/18165129f37e5ffdb0b6ffbb6ba10c2c to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/18165129f37e5ffdb0b6ffbb6ba10c2c to your computer and use it in GitHub Desktop.
resource "aws_iam_role" "ado_iam_implicit_role" {
name = "AzureDevOpsImplicitIamRole"
assume_role_policy = <<EOF
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "ec2.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}
EOF
lifecycle {
prevent_destroy = true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment