You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(cli): aws-cdk bundle is now targeting node18 (#610)
Editorial changes to the CLI readme to ensure this will end-up in the
correct release notes.
---
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache-2.0 license
Copy file name to clipboardExpand all lines: packages/aws-cdk/README.md
+43-35Lines changed: 43 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -9,14 +9,14 @@
9
9
10
10
<!--END STABILITY BANNER-->
11
11
12
-
The AWS CDK Toolkit provides the `cdk` command-line interface that can be used to work with AWS CDK applications.
12
+
The AWS CDK Toolkit provides the `cdk` command-line interface that can be used to work with AWS CDK applications. This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.
|[`cdk docs`](#cdk-docs)| Access the online documentation |
17
17
|[`cdk init`](#cdk-init)| Start a new CDK project (app or library) |
18
18
|[`cdk list`](#cdk-list)| List stacks and their dependencies in an application |
19
-
|[`cdk synth`](#cdk-synthesize)| Synthesize a CDK app to CloudFormation template(s) |
19
+
|[`cdk synth`](#cdk-synth)| Synthesize a CDK app to CloudFormation template(s) |
20
20
|[`cdk diff`](#cdk-diff)| Diff stacks against current state |
21
21
|[`cdk deploy`](#cdk-deploy)| Deploy a stack into an AWS account |
22
22
|[`cdk rollback`](#cdk-rollback)| Roll back a failed deployment |
@@ -32,29 +32,22 @@ The AWS CDK Toolkit provides the `cdk` command-line interface that can be used t
32
32
|[`cdk refactor`](#cdk-refactor)| Moves resources between stacks or within the same stack |
33
33
|[`cdk drift`](#cdk-drift)| Detect drifts in the given CloudFormation stack(s) |
34
34
35
-
-[Bundling](#bundling)
36
-
-[MFA Support](#mfa-support)
37
-
-[SSO Support](#sso-support)
35
+
## Common topics
36
+
37
+
- Usage
38
+
-[Asset bundling](#bundling)
39
+
-[Preview features](#unstable)
40
+
- Authentication
41
+
-[MFA Support](#mfa-support)
42
+
-[SSO Support](#sso-support)
38
43
-[Configuration](#configuration)
39
44
-[Running in CI](#running-in-ci)
40
45
46
+
## Requirements
41
47
42
-
This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.
43
-
44
-
## Global Options
45
-
46
-
### `unstable`
47
-
48
-
The `--unstable` flag indicates that the scope and API of a feature might still change.
49
-
Otherwise the feature is generally production ready and fully supported. For example,
50
-
`cdk gc` is gated behind an `--unstable` flag:
51
-
52
-
```bash
53
-
cdk gc --unstable=gc
54
-
```
55
-
56
-
The command will fail if `--unstable=gc` is not passed in, which acknowledges that the user
57
-
is aware of the caveats in place for the feature.
48
+
You need [Node.js](https://nodejs.org/en/download) or another JavaScript runtime to use the AWS CDK Toolkit CLI. We recommend using the [Node.js version in Active LTS](https://nodejs.org/en/about/previous-releases).
49
+
The minimal supported version is **Node.js v18**.
50
+
See our [Support Policy](https://docs.aws.amazon.com/cdk/v2/guide/node-versions.html) for full details.
58
51
59
52
## Commands
60
53
@@ -124,7 +117,7 @@ $ cdk list --app='node bin/main.js' --long
124
117
region: bermuda-triangle-3
125
118
```
126
119
127
-
### `cdk synthesize`
120
+
### `cdk synth`
128
121
129
122
Synthesizes the CDK app and produces a cloud assembly to a designated output (defaults to `cdk.out`)
130
123
@@ -525,11 +518,11 @@ Hotswapping is currently supported for the following changes
525
518
526
519
You can optionally configure the behavior of your hotswap deployments. Currently you can only configure ECS hotswap behavior:
| minimumHealthyPercent | Lower limit on the number of your service's tasks that must remain in the RUNNING state during a deployment, as a percentage of the desiredCount |**REPLICA:** 100, **DAEMON:** 0 |
531
-
| maximumHealthyPercent | Upper limit on the number of your service's tasks that are allowed in the RUNNING or PENDING state during a deployment, as a percentage of the desiredCount|**REPLICA:** 200, **DAEMON:**: N/A |
532
-
| stabilizationTimeoutSeconds | Number of seconds to wait for a single service to reach stable state, where the desiredCount is equal to the runningCount | 600 |
| minimumHealthyPercent | Lower limit on the number of your service's tasks that must remain in the RUNNING state during a deployment, as a percentage of the desiredCount |**REPLICA:** 100, **DAEMON:** 0|
524
+
| maximumHealthyPercent | Upper limit on the number of your service's tasks that are allowed in the RUNNING or PENDING state during a deployment, as a percentage of the desiredCount |**REPLICA:** 200, **DAEMON:**: N/A |
525
+
| stabilizationTimeoutSeconds | Number of seconds to wait for a single service to reach stable state, where the desiredCount is equal to the runningCount | 600|
533
526
534
527
##### cdk.json
535
528
@@ -860,13 +853,13 @@ before deploying the generated application.
860
853
861
854
In practice this is how CDK Migrate generated applications will operate in the following scenarios:
| Provided template + stack-name is from a deployed stack in the account/region | The CDK application will deploy as a changeset to the existing stack |
866
-
| Provided template has no overlap with resources already in the account/region | The CDK application will deploy a new stack successfully |
867
-
| Provided template has overlap with Cloudformation managed resources already in the account/region | The CDK application will not be deployable unless those resources are removed |
868
-
| Provided template has overlap with un-managed resources already in the account/region | The CDK application will not be deployable until those resources are adopted with [`cdk import`](#cdk-import)|
869
-
| No template has been provided and resources exist in the region the scan is done | The CDK application will be immediatly deployable and will import those resources into a new cloudformation stack upon deploy |
| Provided template + stack-name is from a deployed stack in the account/region | The CDK application will deploy as a changeset to the existing stack |
859
+
| Provided template has no overlap with resources already in the account/region | The CDK application will deploy a new stack successfully |
860
+
| Provided template has overlap with Cloudformation managed resources already in the account/region | The CDK application will not be deployable unless those resources are removed |
861
+
| Provided template has overlap with un-managed resources already in the account/region | The CDK application will not be deployable until those resources are adopted with [`cdk import`](#cdk-import)|
862
+
| No template has been provided and resources exist in the region the scan is done | The CDK application will be immediatly deployable and will import those resources into a new cloudformation stack upon deploy |
870
863
871
864
##### **The provided template is already deployed to CloudFormation in the account/region**
872
865
@@ -1215,6 +1208,21 @@ $ # Detect drift against the currently-deployed stack with the verbose flag enab
1215
1208
$ cdk drift --verbose
1216
1209
```
1217
1210
1211
+
## Global Options
1212
+
1213
+
### `unstable`
1214
+
1215
+
The `--unstable` flag indicates that the scope and API of a feature might still change.
1216
+
Otherwise the feature is generally production ready and fully supported. For example,
1217
+
`cdk gc` is gated behind an `--unstable` flag:
1218
+
1219
+
```bash
1220
+
cdk gc --unstable=gc
1221
+
```
1222
+
1223
+
The command will fail if `--unstable=gc` is not passed in, which acknowledges that the user
1224
+
is aware of the caveats in place for the feature.
1225
+
1218
1226
## Notices
1219
1227
1220
1228
CDK Notices are important messages regarding security vulnerabilities, regressions, and usage of unsupported
0 commit comments