.ufo/resources/task_definitions/web.yml has access to helper methods. These helper methods provide useful information to help you build different Task Definitions with the same code.
|acm_cert(domain)||Get cert arn by domain. Returns first match.|
|docker_image||The Docker image that ufo builds. This is the full image name, including the added timestamp. IE:
|dockerfile_port||Exposed port extracted from the Dockerfile. If the
|ecr_repo(name)||Get repository uri arn by name. Returns first match.|
|env_file(paths=nil)||This method takes a
|env_vars(text)||This method takes a block of text that contains the env values in
|family||The family name of the task_definition. The default is
|role||The role. IE: web, worker, clock|
|secrets_file(paths=nil)||This method takes a
|secrets_vars(text)||This method takes a block of text that contains the secrets values in
|ssm(name)||Get ssm value.|
|stack_output(name)||Get stack output value. Note: Cannot use :APP in the expansion pattern. Can use :ENV though.
The helper methods generally defined in task_definition/helpers.
Note: The helpers can be used in config files as well as the Task Definition template
web.yml. However, config files are loaded super early in the boot process. So when helpers are used in config files, they cannot use
:APP as part of pattern expansion since
config.app is assigned in the config files themselves.