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 个月前541 查看次数
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

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容