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 Answer
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
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions