aws-samples / service-catalog-engine-for-terraform-os

Apache License 2.0
134 stars 41 forks source link

There was an error loading parameters for product version #53

Closed goural closed 1 year ago

goural commented 1 year ago
image

I am getting this error in service catalog> Product list > product_id >product_version when I click on Provisioning parameters .

The error message shows - Error Error occurred during parameter parsing: LaunchRoleArn is required and must be non empty

I have tried passing both LaunchRoleArn and LaunchRolename.

Any suggestion is much appreciated as I do not find any other document related to this.

smaly-amazon commented 1 year ago

Hello,

The error indicates that the product you are trying to provision does not have a launch role associated with it. You need to add a launch role constraint to the product/portfolio in the Service Catalog console or using the CreateConstraint API.

https://docs.aws.amazon.com/servicecatalog/latest/adminguide/getstarted-launchrole-Terraform.html

I'm not sure what you mean by this. Launch role is not an input to any Service Catalog API.

goural commented 1 year ago

The issue is resolved by updating terraform version to latest (1.5.0) TerraformCliVersion. This solved the issue with provisioning parameters in the service catalog product version. Currently in repo default is 1.2.8 ref - https://github.com/aws-samples/service-catalog-engine-for-terraform-os/blob/19d307db8d38201e42e890a50d85df9053f6ed54/template.yaml#L46