Example 1 create an Aws code commit pipeline with Aws cloudformation

0

Am trying to complete that tutorial on codepipeline and when I create a stack in cloud formation , using the provided appspec.yaml file, i get the error that says “ Template format error: at least one resources member must be defined” and it won’t let me upload the file. What did I miss ? How can I resolve it please ?

  • Could you share a link to the tutorial you're following?

1 réponse
1

AppSpec files aren't CloudFormation deployables, they're for the CodeDeploy service/agent to process. See https://docs.aws.amazon.com/codedeploy/latest/userguide/application-specification-files.html for more information on AppSpec files.

If the tutorial is directing you to launch a template with CloudFormation, check you're using the right file; a CloudFormation template will have AWSTemplateFormatVersion specified near the top of the file, and Resources will be a map rather than a list.

profile pictureAWS
EXPERT
James_S
répondu il y a 2 ans

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