|
Variables are substituted in all Task configuration text fields (e.g. Stack Name, Template URL, Instance ID, Volume ID etc.).
Please note the following feature:
Variables are defined by all Tasks for reuse in subsequent Tasks as follows:
bamboo.custom.aws.*
, with *
being a task specific prefix, e.g. bamboo.custom.aws.cfn.stack
${bamboo.custom.aws.ec2.image.resources}
with values ami-985b21f1;ami-9a5b21f3
${bamboo.custom.aws.cfn.stack.sampleStackOutputKey}
$bamboo_custom_aws_cfn_stack_StringWithRegex
(Unix) or %bamboo_custom_aws_cfn_stack_StringWithRegex%
(Windows)
|
The following variables are available in the various tasks:
bamboo.custom.aws.cloudformation.stack.resources=SampleStack-42
relevant resource values for each affected stack, e.g. custom.
aws.cloudformation.stack.resources.
=CREATE_COMPLETESampleStack-42
.StackStatus
bamboo.custom.aws.cloudformation
.stack.resources.SampleStack-42
.parameters=NumberWithRange;StringWithLength...
bamboo.custom.aws.cloudformation
.stack.resources.SampleStack-42
.
parameters
.NumberWithRange
=2
bamboo.custom.aws.cloudformation
.stack.resources.SampleStack-42
.outputs=sampleStackOutputKey;StringWithRegex;...
bamboo.custom.aws.cloudformation
.stack.resources.SampleStack-42
.outputs
.StringWithRegex=Hello
bamboo.custom.aws.cloudformation.stack.resources
.SampleStack-42
.resources=i-3280997f;vol-e1debbcd;test-stack-SecurityGroup-KZWPADIUPCL6
relevant resource values for each affected stack resource, e.g. custom.
aws.cloudformation.stack.resources.
=CREATE_COMPLETESampleStack-42
.resources.i-3280997f
.ResourceStatus
bamboo.custom.aws.cloudformation
.stack.i-3280997f=CREATE_COMPLETE
CloudFormation Variables had been named inconsistently in previous versions of this add-on - the following names are deprecated, but remain available for compatibility reasons for the time being:
|
bamboo.custom.aws.elasticbeanstalk.environment.resources=e-3rcffs78rn
relevant resource values for each affected environment, e.g. custom.
aws.cloudformation.stack.resources.
=CREATE_COMPLETESampleStack-42
.StackStatus
bamboo.custom.aws.ec2.instance.resources=i-fa7b4596;i-080eec64
relevant resource values for each affected instance, e.g. custom.aws.ec2.image.resources.
i-fa7b4596
.State=running
bamboo.custom.aws.ec2.image.resources=ami-985b21f1;ami-9a5b21f3
custom.aws.ec2.image.resources.ami-985b21f1
.State=available
bamboo.custom.aws.ec2.snapshots.resources=snap-f4dc35a1
custom.aws.ec2.snapshot
.resources.snap-f4dc35a1
.State=completed