I am working on a CI/CD project(Using circleci pipeline) and currently, I am stuck on getting my "create_infrastructure" job to work. Below is the job
# AWS infrastructure
create_infrastructure:
docker:
- image: amazon/aws-cli
steps:
- checkout
- run:
name: Ensure backend infrastructure exist
command: |
aws cloudformation deploy \
--template-file template.yml \
--stack-name my-stack
When I run the job above, it returns Invalid template path template.yml
- Where am I suppose to keep the
template.ymlfile? - I placed it in the same location as the
config.ymlin the project's GitHub repository(Is this right?) - Could the problem on the line
--template-file template.ymlin my job? (I am a beginner here). Please I need help.