Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save nivleshc/4df2b6b2bfe09aead7199531e71df2c7 to your computer and use it in GitHub Desktop.

Select an option

Save nivleshc/4df2b6b2bfe09aead7199531e71df2c7 to your computer and use it in GitHub Desktop.
This gist contains code from the file iam-roles.tf inside the product-s3-bucket folder, which is part of the blog-aws-service-catalog-for-terraform-products repository.
resource "aws_iam_role" "service_catalog_product_s3_bucket_launch_contraint_role" {
name = "service-catalog-product-s3-bucket-launch-constraint-role"
assume_role_policy = <<EOF
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "servicecatalog.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}
EOF
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment