Amazon CodeCatalyst will no longer be open to new customers starting on November
7, 2025. If you would like to use the service, please sign up prior to November 7, 2025. For
more information, see How to migrate from CodeCatalyst.
Adding the 'AWS CDK deploy' action
Use the following instructions to add the AWS CDK deploy action to
your workflow.
Before you begin
Before you can add the AWS CDK deploy action to your workflow, complete
the following tasks:
-
Have an AWS CDK app ready. You can write your AWS CDK app
using AWS CDK v1 or v2, in any programming language supported by the AWS CDK. Make sure your
AWS CDK app files are available in:
-
Bootstrap your AWS environment. To bootstrap, you
can:
-
Use one of the methods described in How to bootstrap
in the AWS Cloud Development Kit (AWS CDK) Developer Guide.
-
Use the AWS CDK bootstrap action. You can add this action in
the same workflow as your AWS CDK deploy, or in a different one.
Just make sure the bootstrap action runs at least once prior to running the
AWS CDK deploy action so that the necessary resources are in
place. For more information about theAWS CDK bootstrap action, see
Bootstrapping an AWS CDK app with a workflow.
For more information about bootstrapping, see Bootstrapping in the
AWS Cloud Development Kit (AWS CDK) Developer Guide.
- Visual
-
To add the 'AWS CDK deploy' action using the visual editor
Open the CodeCatalyst console at https://codecatalyst.aws/.
-
Choose your project.
-
In the navigation pane, choose CI/CD, and then choose Workflows.
-
Choose the name of your workflow. You can filter by the source repository or
branch name where the workflow is defined, or filter by workflow name or
status.
-
Choose Edit.
-
Choose Visual.
-
At the top-left, choose + Actions to open the action
catalog.
-
From the drop-down list, choose Amazon CodeCatalyst.
-
Search for the AWS CDK deploy action, and do one of the
following:
-
In the Inputs and Configuration tabs,
complete the fields according to your needs. For a description of each field, see
the 'AWS CDK deploy' action YAML. This
reference provides detailed information about each field (and corresponding YAML
property value) as it appears in both the YAML and visual editors.
-
(Optional) Choose Validate to validate the workflow's YAML
code before committing.
-
Choose Commit, enter a commit message, and then choose
Commit again.
- YAML
-
To add the 'AWS CDK deploy' action using the YAML editor
Open the CodeCatalyst console at https://codecatalyst.aws/.
-
Choose your project.
-
In the navigation pane, choose CI/CD, and then choose Workflows.
-
Choose the name of your workflow. You can filter by the source repository or
branch name where the workflow is defined, or filter by workflow name or
status.
-
Choose Edit.
-
Choose YAML.
-
At the top-left, choose + Actions to open the action
catalog.
-
From the drop-down list, choose Amazon CodeCatalyst.
-
Search for the AWS CDK deploy action, and do one of the
following:
-
Modify the properties in the YAML code according to your needs. An explanation
of each available property is provided in the 'AWS CDK deploy' action YAML.
-
(Optional) Choose Validate to validate the workflow's YAML
code before committing.
-
Choose Commit, enter a commit message, and then choose
Commit again.