1. AWS CodeBuild User Guide
Buildspec syntax
env section: The documentation explicitly states
"We recommend you use Parameter Store for storing large numbers of environment variables." It details the parameter-store syntax within the env block of a buildspec.yml file for this purpose.
Reference: AWS CodeBuild User Guide
"Buildspec syntax"
section on env
subsection parameter-store.
2. AWS CodeBuild User Guide
Quotas for AWS CodeBuild: This document confirms that there are limits on environment variables. Specifically
"Maximum size of all environment variables in a build (including environment variables in a build project
and those in a buildspec file)
in characters" is a defined quota.
Reference: AWS CodeBuild User Guide
"Quotas for AWS CodeBuild"
table entry for environment variable size.
3. AWS Systems Manager User Guide
AWS Systems Manager Parameter Store: This guide describes Parameter Store as a capability that "provides secure
hierarchical storage for configuration data management and secrets management." This aligns with its use case for storing build-time variables.
Reference: AWS Systems Manager User Guide
"AWS Systems Manager Parameter Store"
introduction section.