Skip to content

Commit 583d5f2

Browse files
authored
feat(rds): allow to specify availability zone for Aurora instances (#33515)
### Issue # (if applicable) Closes #33503. Closes #30618. ### Reason for this change When creating a single-zone Aurora cluster and an EC2 instance in development purpose, I want to *pin* the Aurora instance and the EC2 instance in a same availability zone. We can specify `AvailabilityZone` in Aurora's `AWS::RDS::DBInstance` as same as standalone RDS instances. ### Description of changes Added `availabilityZone` prop in `ClusterInstanceOptions` ### Describe any new or updated permissions being added N/A ### Description of how you validated changes Unit test and integ test. The integ test also verifies created instances are placed in expected availability zone. ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 4886a3e commit 583d5f2

File tree

13 files changed

+37279
-0
lines changed

13 files changed

+37279
-0
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-availability-zone.js.snapshot/asset.d389e273abc3a151d7ee50a64dfd8c1d10d6e72117ca68f7f241f4ba2672484c.bundle/index.js

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

packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-availability-zone.js.snapshot/cdk.out

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

packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-availability-zone.js.snapshot/clusterwithavailabilityzoneintegDefaultTestDeployAssertFDC52DFE.assets.json

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

packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-availability-zone.js.snapshot/clusterwithavailabilityzoneintegDefaultTestDeployAssertFDC52DFE.template.json

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

packages/@aws-cdk-testing/framework-integ/test/aws-rds/test/integ.cluster-availability-zone.js.snapshot/integ.json

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

0 commit comments

Comments
 (0)