Project DSL

You define the CodeBuild project in .cody/project.rb. Here’s an example of the DSL used to create a codebuild project.

.cody/project.rb:

# name("demo") # recommended to leave unset and use the conventional name that cody setsgithub_url("https://github.com/tongueroo/demo-ufo")linux_image("aws/codebuild/amazonlinux2-x86_64-standard:2.0")environment_variables(UFO_ENV:"development",API_KEY:"ssm:/codebuild/demo/api_key"# ssm param example)

Here’s a list of some of the convenience shorthand DSL methods:

github_url(url)

github_source(options={})

linux_image(name)

linux_environment(options={})

environment_variables(vars)

local_cache(enable=true)

Refer to the dsl/project.rb source code for the most updated list of methods.