Skip to content

Issue Executing Plan for Provisioned Products in AWS Service Catalog

0

We are encountering an error when executing a plan for a provisioned product from the AWS Service Catalog console.

The issue occurs when attempting to execute the plan on service catalog provision product. We did not encounter any issues when updating the product directly, and there were no errors during the planning phase. However, the error occurs specifically when the user attempts to execute the plan. This is the execution button I clicked: Enter image description here

There is buggy/unfinished description while executing the plan, and then it would fail: buggy description while executing the plan

Tracing down the error, the error message received in cloudfomation is as follows:

1 validation error detected: Value 'stack/SC-010928228575-pp-wmsrfxcuf2owa/af0aa640-e3f8-11ef-9854-0affe434a83b' at 'stackName' failed to satisfy constraint: Member must satisfy regular expression pattern: [a-zA-Z][-a-zA-Z0-9]*|arn:[-a-zA-Z0-9:/._+]*.

It appears that the stack name generated by the Service Catalog does not match the regular expression pattern. We did not encounter any issues when updating the product directly.

Any insights or guidance on resolving this issue would be greatly appreciated.

  • There is a "/" in the sack name which is not allowed. This is most likely a stack id and not a stack name. Check your configuration and see if you can modify the stack name.

  • Yes, that is the problem. There's a bug because the string is being generated by Service Catalog.

    When Service Catalog creates a plan for a provisioned product, it generates a stack name that includes extra information, such as the Service Catalog product ID and a unique identifier.

    Is there a way to contact the Service Catalog team? it doesn't look like this repo is being engaged https://github.com/awslabs/aws-service-catalog-products

asked 2 years ago335 views

1 Answer
1

The error you're encountering appears to be related to a validation issue with the stack name when executing a provisioned product plan in AWS Service Catalog. This is likely caused by an incompatibility between the stack naming convention used by Service Catalog and the expected format for CloudFormation stack names.

When Service Catalog creates a plan for a provisioned product, it generates a stack name that includes additional information such as the Service Catalog product ID and a unique identifier. However, this generated name doesn't meet the requirements of the CloudFormation stack name pattern, which is causing the validation error during plan execution.

To resolve this issue, you have a few potential options:

  1. Instead of using the plan execution feature, you could try updating the product directly. Since you mentioned that updating the product directly works without issues, this might be a viable workaround until the underlying issue is resolved.

  2. Check if there's a recent update available for AWS Service Catalog in your region. AWS may have addressed this issue in a recent release.

  3. Contact AWS Support to report this issue. They may be able to provide a specific fix or workaround, or escalate it to the Service Catalog team if it's a known bug.

  4. If possible, try creating a new provisioned product instead of updating an existing one. This might avoid the naming conflict that's occurring during the plan execution.

  5. Review your Service Catalog product and portfolio configurations to ensure there are no unusual characters or formatting in names or IDs that could be contributing to the issue.

It's worth noting that the error message you're seeing in the console UI about "buggy/unfinished description" is likely a separate issue related to the Service Catalog console interface, and may not be directly related to the stack name validation error.

Remember to always test any changes in a non-production environment first before applying them to your production resources.
Sources
ExecuteProvisionedProductPlan - AWS Service Catalog
CreateProvisionedProductPlan - AWS Service Catalog
AWS Service Catalog Service Actions - AWS Service Catalog
ProvisionedProductDetail - AWS Service Catalog

answered 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.