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

已提問 7 個月前檢視次數 542 次
1 個回答
1
已接受的答案

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
專家
已回答 7 個月前
  • Thank you! It was a stuck stack in Cloud Formation. After its deletion, everything went fine

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南