AWS CodeDeploy
User Guide (API Version 2014-10-06)

 AWS Documentation » AWS CodeDeploy » User Guide » AWS CodeDeploy AppSpec File Reference » Validate Your AppSpec File and File Location

The procedures in this guide support the new console design. If you choose to use the older version of the console, you will find many of the concepts and basic procedures in this guide still apply. To access help in the new console, choose the information icon.

# Validate Your AppSpec File and File Location

File syntax

AWS CodeDeploy does not provide a tool for validating the contents of an AppSpec File. Instead, consider using a browser-based tool such as YAML Lint or Online YAML Parser to help you check your YAML syntax.

File location

To verify that you have placed your AppSpec file in the root directory of the application's source content's directory structure, run one of the following commands:

On local Linux, macOS, or Unix instances:

ls path/to/root/directory/appspec.yml

If the AppSpec file is not located there, a "No such file or directory" error is displayed.

On local Windows instances:

dir path\to\root\directory\appspec.yml

If the AppSpec file is not located there, a "File Not Found" error is displayed.