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

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠