'AWS CDK deploy' variables - Amazon CodeCatalyst

'AWS CDK deploy' variables

The AWS CDK deploy action produces and sets the following variables at run time. These are known as predefined variables.

For information about referencing these variables in a workflow, see Using predefined variables.

Key Value

stack-id

The Amazon Resource Name (ARN) of the AWS CDK application stack that was deployed to during the workflow run.

Example: arn:aws:cloudformation:us-west-2:111122223333:stack/codecatalyst-cdk-app-stack/6aad4380-100a-11ec-a10a-03b8a84d40df

deployment-platform

The name of the deployment platform.

Hardcoded to AWS:CloudFormation.

region

The region code of the AWS Region that was deployed to during the workflow run.

Example: us-west-2

SKIP-DEPLOYMENT

A value of true indicates that deployment of your AWS CDK application stack was skipped during the workflow run. A stack deployment will be skipped if there is no change in the stack since the last deployment.

This variable is only produced if its value is true.

Hardcoded to true.

AWS CloudFormation variables

In addition to generating the variables listed previously, the AWS CDK deploy action also exposes CloudFormation output variables as workflow variables for use in subsequent workflow actions. By default, the action only exposes the first four (or fewer) CloudFormation variables that it finds. To determine which ones are exposed, run the AWS CDK deploy action once, and then look in the Variables tab of the run details page. If the variables listed on the Variables tab are not what you want, you can configure different ones using the CfnOutputVariables YAML property. For more information, see the CfnOutputVariables property description in the 'AWS CDK deploy' action YAML.