An error occurred (ValidationError) when calling the GetTemplateSummary operation: GetTemplateSummary cannot be called on stacks pending Transform.

0

Hi everyone,

What I have is a sam 1.97.0 that is used for the lambda code. Build and validate (as command) run correctly, but deploy or sync fail with the exception. Can anybody elaborate on the exception happening?

Regards

asked 7 months ago518 views
1 Answer
1
Accepted Answer

Hello.

The "pending Transform" state typically occurs when you are using AWS SAM (Serverless Application Model) to define and deploy your AWS Lambda functions and other serverless resources. SAM uses CloudFormation under the hood to manage your serverless application, and during deployment, SAM may transform your SAM template into a CloudFormation stack.

Here are some steps you can take to troubleshoot and resolve this issue:

Check SAM Template: Review your SAM template (usually template.yaml or template.yml) for any errors or issues. Ensure that all resources, properties, and references are correctly defined.

Check Dependencies: If your SAM template includes references to other AWS resources or services (e.g., DynamoDB tables, S3 buckets), ensure that those resources are defined and available before deploying your SAM application.

Check AWS CLI/SDK Version: Ensure that you are using an up-to-date version of the AWS CLI or SDK. Sometimes, using an outdated version can lead to unexpected errors.

Check for Failed Stacks: It's possible that a previous deployment attempt failed and left a stack in a "pending Transform" state. Check your AWS CloudFormation console for any failed or incomplete stacks and delete them if necessary.

Best regards, Andrii

profile picture
EXPERT
answered 7 months ago
  • Thank you! It was a stuck stack in Cloud Formation. After its deletion, everything went fine

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.

Guidelines for Answering Questions