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

demandé il y a 7 mois541 vues
1 réponse
1
Réponse acceptée

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
répondu il y a 7 mois
  • Thank you! It was a stuck stack in Cloud Formation. After its deletion, everything went fine

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions