Adding the 'AWS CDK bootstrap' action
Use the following instructions to add the AWS CDK bootstrap action to your workflow.
Before you begin
Before you can use the AWS CDK bootstrap action, make sure you have an AWS CDK app ready. The bootstrap action will synthesize the AWS CDK app before bootstrapping. You can write your app in any programming language supported by the AWS CDK.
Make sure your AWS CDK app files are available in:
-
A CodeCatalyst source repository, or
-
A CodeCatalyst output artifact generated by another workflow action
- Visual
-
To add the 'AWS CDK bootstrap' 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 bootstrap action, and do one of the following:
-
Choose the plus sign (+) to add the action to the workflow diagram and open its configuration pane.
Or
-
Choose AWS CDK bootstrap. The action details dialog box appears. On this dialog box:
-
(Optional) Choose View source to view the action's source code.
-
Choose Add to workflow to add the action to the workflow diagram and open its configuration pane.
-
-
-
In the Inputs, Configuration, and Outputs tabs, complete the fields according to your needs. For a description of each field, see the 'AWS CDK bootstrap' 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.
Note
If your AWS CDK bootstrap action fails with an
npm install
error, see How do I fix "npm install" errors? for information about how to fix the error.
- YAML
-
To add the 'AWS CDK bootstrap' 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 bootstrap action, and choose + to add it to the workflow diagram and open its configuration pane.
-
Modify the properties in the YAML code according to your needs. An explanation of each available property is provided in the 'AWS CDK bootstrap' 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.
Note
If your AWS CDK bootstrap action fails with an
npm install
error, see How do I fix "npm install" errors? for information about how to fix the error.