Skip to content

Commit caf86e0

Browse files
authored
Merge branch 'main' into DOCSP-53434
2 parents b555bc8 + aed9178 commit caf86e0

File tree

10 files changed

+45
-31
lines changed

10 files changed

+45
-31
lines changed

.github/workflows/code-health.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
ref: ${{ github.event.pull_request.head.ref }}
1919
repository: ${{ github.event.pull_request.head.repo.full_name }}
2020
- name: Setup Node.js
21-
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
21+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
2222
with:
2323
node-version: 18.x
2424
- name: Install dependencies
@@ -36,7 +36,7 @@ jobs:
3636
./actionlint -color
3737
shell: bash
3838
- name: Setup Node.js
39-
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
39+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
4040
with:
4141
node-version: 18.x
4242
- name: Install dependencies
@@ -56,7 +56,7 @@ jobs:
5656
contents: write
5757
steps:
5858
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
59-
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
59+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
6060
with:
6161
node-version: 18.x
6262
- run: yarn install --check-files
@@ -85,7 +85,7 @@ jobs:
8585
permissions: {}
8686
steps:
8787
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
88-
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
88+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
8989
with:
9090
node-version: 18.x
9191
- run: yarn install --check-files

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ jobs:
1212
- name: Checkout Repository
1313
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
1414
- name: Dependency Review
15-
uses: actions/dependency-review-action@bc41886e18ea39df68b1b1245f4184881938e050
15+
uses: actions/dependency-review-action@595b5aeba73380359d98a5e087f648dbb0edce1b

.github/workflows/package.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
ref: ${{ github.event.pull_request.head.ref }}
1414
repository: ${{ github.event.pull_request.head.repo.full_name }}
1515
- name: Setup Node.js
16-
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
16+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
1717
with:
1818
node-version: 18.x
1919
- name: Install dependencies
@@ -25,7 +25,7 @@ jobs:
2525
runs-on: ubuntu-latest
2626
permissions: {}
2727
steps:
28-
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
28+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
2929
with:
3030
node-version: 18.x
3131
- name: Checkout
@@ -46,7 +46,7 @@ jobs:
4646
with:
4747
distribution: temurin
4848
java-version: 11.x
49-
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
49+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
5050
with:
5151
node-version: 18.x
5252
- name: Checkout
@@ -63,10 +63,10 @@ jobs:
6363
runs-on: ubuntu-latest
6464
permissions: {}
6565
steps:
66-
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
66+
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c
6767
with:
6868
python-version: 3.x
69-
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
69+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
7070
with:
7171
node-version: 18.x
7272
- name: Checkout
@@ -86,7 +86,7 @@ jobs:
8686
- uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9
8787
with:
8888
dotnet-version: 9.0.x
89-
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
89+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
9090
with:
9191
node-version: 18.x
9292
- name: Checkout
@@ -107,7 +107,7 @@ jobs:
107107
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5
108108
with:
109109
go-version: ^1.16.0
110-
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
110+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
111111
with:
112112
node-version: 18.x
113113
- name: Checkout

.github/workflows/release.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ jobs:
2020
git config user.name "github-actions"
2121
git config user.email "[email protected]"
2222
- name: Setup Node.js
23-
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
23+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
2424
with:
2525
node-version: 18.x
2626
- uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165
2727
name: Setup Java
2828
with:
2929
distribution: temurin
3030
java-version: 11.x
31-
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
31+
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c
3232
name: Setup Python
3333
with:
3434
python-version: 3.x
@@ -63,7 +63,7 @@ jobs:
6363
contents: read
6464
issues: write
6565
steps:
66-
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
66+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
6767
with:
6868
node-version: 18.x
6969
- name: Download build artifacts
@@ -103,7 +103,7 @@ jobs:
103103
with:
104104
distribution: temurin
105105
java-version: 11.x
106-
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
106+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
107107
with:
108108
node-version: 18.x
109109
- name: Download build artifacts
@@ -142,10 +142,10 @@ jobs:
142142
contents: read
143143
issues: write
144144
steps:
145-
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
145+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
146146
with:
147147
node-version: 18.x
148-
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
148+
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c
149149
with:
150150
python-version: 3.x
151151
- name: Download build artifacts
@@ -195,7 +195,7 @@ jobs:
195195
contents: read
196196
issues: write
197197
steps:
198-
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
198+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
199199
with:
200200
node-version: 18.x
201201
- uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9
@@ -246,7 +246,7 @@ jobs:
246246
contents: read
247247
issues: write
248248
steps:
249-
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
249+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
250250
with:
251251
node-version: 18.x
252252
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5
@@ -285,7 +285,7 @@ jobs:
285285
contents: write
286286
issues: write
287287
steps:
288-
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
288+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
289289
with:
290290
node-version: 18.x
291291
- name: Download build artifacts
@@ -363,7 +363,7 @@ jobs:
363363
echo "No changes to commit."
364364
fi
365365
- name: Upload SBOM as release artifact
366-
uses: softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8
366+
uses: softprops/action-gh-release@6cbd405e2c4e67a21c47fa9e383d020e4e28b836
367367
with:
368368
files: compliance/sbom.json
369369
tag_name: ${{ steps.extract-version.outputs.VERSION }}

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
stale:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639
12+
- uses: actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f
1313
id: stale
1414
with:
1515
stale-issue-message: 'This issue has gone 30 days without any activity and meets the project’s definition of "stale". This will be auto-closed if there is no new activity over the next 30 days. If the issue is still relevant and active, you can simply comment with a "bump" to keep it open, or add the label "not_stale". Thanks for keeping our repository healthy!'

.github/workflows/upgrade-main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Checkout
1616
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
1717
- name: Setup Node.js
18-
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
18+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
1919
with:
2020
node-version: 18.x
2121
- name: Install dependencies

API.md

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

TESTING.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ npx projen test
3838

3939
## Testing the resource in a CFN stack:
4040
1. Build the construct by running `npx projen build`.
41-
2. Navigate inside `/dist/js` and copy the`.tgz` file. You will use this in the next steps.
41+
2. It will generate a `.tgz` file in `dist/js` that we will reference later.
4242
3. Create a CDK test app: We will be using a CDK app to test our construct by using the app to create, update and delete AWS CloudFormation stacks.
4343
Create the CDK app by running the following in a terminal: ([refer AWS walkthrough for details](https://docs.aws.amazon.com/cdk/v2/guide/hello_world.html#hello_world_tutorial_create_app)):
4444
```
@@ -48,10 +48,12 @@ cdk init app --language typescript
4848
# build the app:
4949
npm run build
5050
```
51-
4. Copy the .tgz file from step #2 inside the node_modules folder in your CDK test app.
51+
4. Add a reference to the previous file in the `dependencies` section in `package.json` instead of using a published version, for example:
52+
```
53+
"awscdk-resources-mongodbatlas": "file:../dist/js/[email protected]"
54+
```
5255
5. Import your CDK construct in a testing project.
5356
6. Use the construct in your app with appropriate parameters.
54-
- [Optional, not applicable for L2/L3 constructs] If you need help getting test parameters to use with the constructs you can use `./cfn-resources/cfn-testing-helper.sh`. Refer “Getting test parameters” for creating a stack here for details.
5557
7. Build your app again.
5658

5759
#### Create a stack:
@@ -79,4 +81,4 @@ cdk deploy
7981
2. Stack **Outputs** should show required data correctly.
8082
3. **Create** - Stack should complete successfully and resource should be created and correctly configured in Atlas account.
8183
4. **Update** - Stack should complete successfully and resource should be updated and correctly configured in Atlas account.
82-
5. **Delete** - Stack should complete successfully and resource should be deleted from your Atlas account.
84+
5. **Delete** - Stack should complete successfully and resource should be deleted from your Atlas account.

src/l1-resources/cluster/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ const clusterRes = new CfnCluster(this, 'ClusterResource', {
9090

9191
```
9292

93+
9394
## Flex Clusters
9495

9596
You can create a flex cluster using ``CfnCluster``, as the following example shows:
@@ -112,6 +113,7 @@ const flexClusterRes = new CfnCluster(this, 'FlexClusterResource', {
112113
});
113114
```
114115

116+
115117
*Note:* Upgrades to or from flex clusters are currently unavailable. We expect to support upgrades to or from flex clusters in the forseeable future.
116118

117119
*Important:* Use the `CfnCluster` resource instead of the [CfnFlexCluster](https://github.com/mongodb/awscdk-resources-mongodbatlas/blob/main/src/l1-resources/flex-cluster/README.md) resource to create and manage flex clusters. `CfnCluster` supports flex clusters and future upgrades will only be available through this resource.
@@ -128,4 +130,4 @@ This library is auto-generated and published to all supported programming langua
128130

129131
## License
130132

131-
Distributed under the Apache-2.0 License.
133+
Distributed under the Apache-2.0 License.

src/l1-resources/cluster/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,14 +579,14 @@ export interface Tag {
579579
*
580580
* @schema tag#Key
581581
*/
582-
readonly key?: string;
582+
readonly key: string;
583583

584584
/**
585585
* Variable that belongs to the set of the tag. For example, production in the environment : production tag.
586586
*
587587
* @schema tag#Value
588588
*/
589-
readonly value?: string;
589+
readonly value: string;
590590
}
591591

592592
/**
@@ -747,6 +747,8 @@ export enum AdvancedRegionConfigProviderName {
747747
AZURE = "AZURE",
748748
/** TENANT */
749749
TENANT = "TENANT",
750+
/** FLEX */
751+
FLEX = "FLEX",
750752
}
751753

752754
/**

0 commit comments

Comments
 (0)