Takomo
GitHub
API
Deployment targets
Organizations
Search…
What is Takomo?
Getting started
Installation
Quick start
Tutorial
Configuration
AWS credentials
Directory structure
Stacks and stack groups
Project configuration
Stack properties
Name
Regions
Template
Template bucket
Command role
Account ids
Depends
Parameters
Tags
Inherit tags
Termination protection
Timeout
Capabilities
Stack policy
Ignore
Obsolete
Hooks
Data
Schemas
Variables and templating
Introduction
Handlebars syntax
Environment variables
Command-line variables
Partials
Helpers
Available variables
Parameter resolvers
Built-in parameter resolvers
Custom parameter resolvers
Hooks
Built-in hooks
Custom hooks
Sharing data between hooks
Validation schemas
Custom validation schemas
Command-line usage
Common options
Deploy stacks
Undeploy stacks
Prune stacks
List stacks
Detect drift
Generate IAM policies
Inspect stack configuration
Inspect stack dependencies
Support
Getting help
Troubleshooting
Development
Change log
Powered By
GitBook
Available variables
You can use variables in stack and stack group configuration files and stack template files. Each of them has a different set of variables available.
Stack group configuration files
Here are variables available in stack group configuration files:
Key
Type
Description
env
object
Environment variables.
context
object
An object containing context variables.
context.projectDir
string
Current project directory.
stackGroup
object
An object representing the current stack group.
stackGroup.name
string
Name of the stack group.
stackGroup.path
string
Path of the stack group.
stackGroup.pathSegments
string[]
Path of the stack group split into an array using
/
as a separator.
parent
object
An object representing the parent stack group where the stack group belongs to.
parent.accountIds
string[]
Account ids of the parent stack group.
parent.capabilities
string[]
Capabilities of the parent stack group.
parent.commandRole
string
Command role of the parent stack group.
parent.data
object
Data object of the parent stack group.
parent.isRoot
boolean
Is the parent stack group the root.
parent.name
string
Name of the parent stack group.
parent.path
string
Path of the parent stack group.
parent.pathSegments
string[]
Path of the parent stack group split into an array using
/
as a separator.
parent.project
string
Project of the parent stack group.
parent.regions
string
Regions of the parent stack group.
parent.tags
object[]
Stack tags of the parent stack group.
Stack configuration files
Here are variables available in stack configuration files:
Key
Type
Description
context
object
An object containing context variables.
context.projectDir
string
Current project directory.
env
object
Environment variables.
stackGroup
object
An object representing the stack group where the stack belongs to.
stackGroup.accountIds
string[]
Account ids of the stack group.
stackGroup.capabilities
string[]
Capabilities of the stack group.
stackGroup.commandRole
string
Command role of the stack group.
stackGroup.data
object
Data object of the stack group.
stackGroup.isRoot
boolean
Is the stack group the root.
stackGroup.name
string
Name of the stack group.
stackGroup.path
string
Path of the stack group.
stackGroup.pathSegments
string[]
Path of the stack group split into an array using
/
as a separator.
stackGroup.project
string
Project of the stack group.
stackGroup.regions
string
Regions of the stack group.
stackGroup.tags
object[]
Stack tags of the stack group.
stackGroup.tags[].key
string
Tag key.
stackGroup.tags[].value
string
Tag value.
stackGroup.templateBucket
object
Template bucket configuration of the stack group.
stackGroup.templateBucket.name
string
Name of the template bucket.
Stack template files
Here are variables available in stack template files:
Key
Type
Description
context
object
An object containing context variables.
context.projectDir
string
Current project directory.
env
object
Environment variables.
hooks
object
An object containing values returned by hooks
stack
object
An object representing the current stack
stack.accountIds
string[]
Account ids of the stack.
stack.commandRole
string
Command role of the stack.
stack.configFile
object
An object representing configuration file of the stack.
stack.configFile.basename
string
Name of the stack configuration file including the file extension
stack.configFile.dirPath
string
File path to the directory containing the stack configuration file relative to stack directory.
stack.configFile.filePath
string
File path of the stack configuration file relative to stack directory.
stack.configFile.name
string
Name of the stack configuration file without the file extension.
stack.data
object
Data object of the stack.
stack.depends
string[]
Dependencies of the stack.
stack.name
string
Name of the stack.
stack.path
string
Path of the stack.
stack.pathSegments
string[]
Path of the stack split into an array using
/
as a separator.
stack.parameters
object[]
Parameters of the stack
stack.parameters[].key
string
Parameters key
Variables and templating - Previous
Helpers
Next - Parameter resolvers
Built-in parameter resolvers
Last modified
1yr ago
Export as PDF
Copy link
Outline
Stack group configuration files
Stack configuration files
Stack template files