Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

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

Select an option

Save nivleshc/e5a72cc0e8142a69b07f3b9d8b3b58cc 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_s3_bucket_object" "product_s3_bucket_cfn_template" {
bucket = data.aws_s3_bucket.artifacts_s3_bucket.id
key = "${var.artifacts_s3_bucket_key}/s3-bucket/product-s3-bucket.yaml"
content = templatefile("${path.module}/cfn/product-s3-bucket.yaml", {
central_lambda_function_arn = var.central_lambda_function_arn
})
etag = filemd5("${path.module}/cfn/product-s3-bucket.yaml")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment