Understanding buildspec files
A buildspec.yml
file is a YAML file that contains a set of commands and additional information to be used at build time. You can specify a buildspec.yml
file during the build project creation or you can include it as part of the source code.
Note
YAML Ain’t Markup Language (YAML) is a configuration file syntax. YAML is a human-friendly data serialization language for all programming languages. YAML files are mostly used for configuring applications where data is being transmitted or stored. You can read more about YAML and its syntax at https://yaml.org/.
By default, the buildspec.yml
file should be created in the root directory of the source code and specifically named buildspec.yml
. However, you can override the name and location of the buildspec.yml
file and specify your own values in the build project settings if required. In order to successfully create and work with our buildspec.yaml
file in our project, we need to understand the...