Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

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

Select an option

Save nivleshc/cc8ed4a390eb08d70874760471c0cd38 to your computer and use it in GitHub Desktop.
This gist contains code from the file service-catalog-product-s3-bucket.tf, which is part of the blog-aws-service-catalog-for-terraform-products repository.
resource "aws_servicecatalog_product" "s3_bucket" {
name = "S3 Bucket (Terraform)"
owner = "IT Department"
description = "This Service Catalog Product creates an Amazon S3 Bucket using Terraform code"
distributor = "Internal"
support_description = "For support, please contact the IT Department"
support_email = "[email protected]"
support_url = "https://www.example.com/support"
type = "CLOUD_FORMATION_TEMPLATE"
provisioning_artifact_parameters {
name = "v1"
description = "Amazon S3 Bucket (Terraform)"
type = "CLOUD_FORMATION_TEMPLATE"
template_url = "https://${data.aws_s3_bucket.artifacts_s3_bucket.bucket_regional_domain_name}/servicecatalog/products/s3-bucket/product-s3-bucket.yaml"
}
tags = {
Name = "Service Catalog Product - S3 Bucket - Terraform"
}
depends_on = [aws_s3_bucket_object.product_s3_bucket_cfn_template]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment