Deploy Stack

Deploying a CloudFormation stack means instructing AWS CloudFormation to create, update, or delete a collection of AWS resources defined in a CloudFormation template.

To deploy the stack with the CDK4j maven plugin type mvn cdk4j:deploy.

While deploying your stack the plugin will log messages as follows

[INFO] Deploying to region eu-north-1
[INFO] Deploying 'GettingStartedStack' stack
[INFO] Waiting until 'GettingStartedStack' reaches stable state
[INFO] +----------------------+----------------------------------+----------------------------------+------------------------------------------------------------------+
[INFO] | Timestamp            | Logical ID                       | Status                           | Status Reason                                                    |
[INFO] +----------------------+----------------------------------+----------------------------------+------------------------------------------------------------------+
[INFO] | 2026-03-18 15:48:11  | GettingStartedStack              | CREATE_IN_PROGRESS               | User Initiated                                                   |
[INFO] +----------------------+----------------------------------+----------------------------------+------------------------------------------------------------------+
[INFO] | 2026-03-18 15:48:13  | MyFirstBucketB8884501            | CREATE_IN_PROGRESS               |                                                                  |
[INFO] +----------------------+----------------------------------+----------------------------------+------------------------------------------------------------------+
[INFO] | 2026-03-18 15:48:14  | MyFirstBucketB8884501            | CREATE_IN_PROGRESS               | Resource creation Initiated                                      |
[INFO] +----------------------+----------------------------------+----------------------------------+------------------------------------------------------------------+
[INFO] | 2026-03-18 15:48:33  | MyFirstBucketB8884501            | CREATE_COMPLETE                  |                                                                  |
[INFO] +----------------------+----------------------------------+----------------------------------+------------------------------------------------------------------+
[INFO] | 2026-03-18 15:48:33  | GettingStartedStack              | CREATE_COMPLETE                  |                                                                  |
[INFO] +----------------------+----------------------------------+----------------------------------+------------------------------------------------------------------+
[INFO] The stack 'GettingStartedStack' has been successfully deployed

Once the plugin is done, you can go to the CloudFormation console and check the infrastructure.