I’ve just tried to create a Service Catalog product using the aws_servicecatalog_product resource.
I need use the type - TERRAFORM_OPEN_SOURCE
The issue is I want to set the provisioning_artifact_parameters to use a terraform.tar.gz file. This is one of the options if you create the resource through the console. But I can only see the provider allowing a url for the template.
Has anyone done this before, or just a limitation on the current provider resource?
After creating the product in the AWS Management Console and reviewing the CloudTrail event, it seems that the “Upload a template file” option simply uploads the tar.gz file into the default CloudFormation template S3 bucket and set LoadTemplateFromURL to the URL (e.g., https://cf-templates-<redacted>-us-east-1.s3.us-east-1.amazonaws.com/servicecatalog-product-efe236a7-14db-4377-ba7e-e579411122d0-main.tar.gz).
So I think you need to put the object in a similar S3 bucket and set template_url to the S3 object URL.