what
- Added S3 bucket for CodeBuild caching
- Cache enabled by default with cache expiry default of 7 days.
- Two new variables:
cache_enabled and cache_expiration_days
cache_expiration_days is how many days until the cache expires.
cache_enabled can be "true" or "false"
cache_enabled set to "false" means that buildspec doesn't use the s3 bucket for caching and no bucket is created.
- Added the ability for new environment variables to be dynamically added.
new environment variable called environment_variables which can take a list of map values in the module like so:
environment_variables = [{
name = "JENKINS_URL"
value = "https://jenkins.example.com"
},
{
name = "COMPANY_NAME"
value = "Amazon"
},
{
name = "TIME_ZONE"
value = "Pacific/Auckland"
}]
why
- Allows the
buildspec to use the cache section
- Allows additional build time environment variables to be added without changing the module
references