Skip to content

Commit a4ebe8e

Browse files
authored
chore(rds): bump the parameter group name versions (#29192)
### Issue # (if applicable) Closes #29184 ### Reason for this change As described in the issue, the example in the README can't be deployed. ### Description of changes Bump from `default.aurora-postgresql10` to `default.aurora-postgresql11` ### Description of how you validated changes No. ### 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 97e1cef commit a4ebe8e

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

packages/aws-cdk-lib/aws-backup/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const myDatabaseCluster = new rds.DatabaseCluster(this, 'DatabaseCluster', {
3939
});
4040
const myServerlessCluster = new rds.ServerlessCluster(this, 'ServerlessCluster', {
4141
engine: rds.DatabaseClusterEngine.AURORA_POSTGRESQL,
42-
parameterGroup: rds.ParameterGroup.fromParameterGroupName(this, 'ParameterGroup', 'default.aurora-postgresql10'),
42+
parameterGroup: rds.ParameterGroup.fromParameterGroupName(this, 'ParameterGroup', 'default.aurora-postgresql11'),
4343
vpc,
4444
});
4545
const myCoolConstruct = new Construct(this, 'MyCoolConstruct');

packages/aws-cdk-lib/aws-backup/test/selection.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ test('fromConstruct', () => {
176176

177177
new rds.ServerlessCluster(this, 'ServerlessCluster', {
178178
engine: rds.DatabaseClusterEngine.AURORA_POSTGRESQL,
179-
parameterGroup: rds.ParameterGroup.fromParameterGroupName(stack, 'ParameterGroup', 'default.aurora-postgresql10'),
179+
parameterGroup: rds.ParameterGroup.fromParameterGroupName(stack, 'ParameterGroup', 'default.aurora-postgresql11'),
180180
vpc,
181181
});
182182
}
@@ -611,7 +611,7 @@ test('fromRdsServerlessCluster', () => {
611611
const vpc = new ec2.Vpc(stack, 'Vpc');
612612
const newCluster = new rds.ServerlessCluster(stack, 'New', {
613613
engine: rds.DatabaseClusterEngine.AURORA_POSTGRESQL,
614-
parameterGroup: rds.ParameterGroup.fromParameterGroupName(stack, 'ParameterGroup', 'default.aurora-postgresql10'),
614+
parameterGroup: rds.ParameterGroup.fromParameterGroupName(stack, 'ParameterGroup', 'default.aurora-postgresql11'),
615615
vpc,
616616
});
617617
const existingCluster = rds.ServerlessCluster.fromServerlessClusterAttributes(stack, 'Existing', {

packages/aws-cdk-lib/aws-rds/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ declare const vpc: ec2.Vpc;
11221122
const cluster = new rds.ServerlessCluster(this, 'AnotherCluster', {
11231123
engine: rds.DatabaseClusterEngine.AURORA_POSTGRESQL,
11241124
copyTagsToSnapshot: true, // whether to save the cluster tags when creating the snapshot. Default is 'true'
1125-
parameterGroup: rds.ParameterGroup.fromParameterGroupName(this, 'ParameterGroup', 'default.aurora-postgresql10'),
1125+
parameterGroup: rds.ParameterGroup.fromParameterGroupName(this, 'ParameterGroup', 'default.aurora-postgresql11'),
11261126
vpc,
11271127
scaling: {
11281128
autoPause: Duration.minutes(10), // default is to pause after 5 minutes of idle time

packages/aws-cdk-lib/aws-rds/test/database-secretmanager.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ describe('database secret manager', () => {
1616
engine: DatabaseClusterEngine.AURORA_POSTGRESQL,
1717
vpc,
1818
credentials: Credentials.fromSecret(existingSecret),
19-
parameterGroup: ParameterGroup.fromParameterGroupName(stack, 'ParameterGroup', 'default.aurora-postgresql10'),
19+
parameterGroup: ParameterGroup.fromParameterGroupName(stack, 'ParameterGroup', 'default.aurora-postgresql11'),
2020
});
2121

2222
// THEN
2323
Template.fromStack(stack).hasResource('AWS::RDS::DBCluster', {
2424
Properties: {
2525
Engine: 'aurora-postgresql',
26-
DBClusterParameterGroupName: 'default.aurora-postgresql10',
26+
DBClusterParameterGroupName: 'default.aurora-postgresql11',
2727
DBSubnetGroupName: {
2828
Ref: 'ServerlessDatabaseSubnets5643CD76',
2929
},

packages/aws-cdk-lib/aws-rds/test/serverless-cluster.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ describe('serverless cluster', () => {
2020
username: 'admin',
2121
password: cdk.SecretValue.unsafePlainText('tooshort'),
2222
},
23-
parameterGroup: ParameterGroup.fromParameterGroupName(stack, 'ParameterGroup', 'default.aurora-postgresql10'),
23+
parameterGroup: ParameterGroup.fromParameterGroupName(stack, 'ParameterGroup', 'default.aurora-postgresql11'),
2424
});
2525

2626
// THEN
2727
Template.fromStack(stack).hasResource('AWS::RDS::DBCluster', {
2828
Properties: {
2929
Engine: 'aurora-postgresql',
3030
CopyTagsToSnapshot: true,
31-
DBClusterParameterGroupName: 'default.aurora-postgresql10',
31+
DBClusterParameterGroupName: 'default.aurora-postgresql11',
3232
DBSubnetGroupName: {
3333
Ref: 'ServerlessDatabaseSubnets5643CD76',
3434
},
@@ -113,13 +113,13 @@ describe('serverless cluster', () => {
113113
engine: DatabaseClusterEngine.AURORA_POSTGRESQL,
114114
vpc,
115115
securityGroups: [sg],
116-
parameterGroup: ParameterGroup.fromParameterGroupName(stack, 'ParameterGroup', 'default.aurora-postgresql10'),
116+
parameterGroup: ParameterGroup.fromParameterGroupName(stack, 'ParameterGroup', 'default.aurora-postgresql11'),
117117
});
118118

119119
// THEN
120120
Template.fromStack(stack).hasResourceProperties('AWS::RDS::DBCluster', {
121121
Engine: 'aurora-postgresql',
122-
DBClusterParameterGroupName: 'default.aurora-postgresql10',
122+
DBClusterParameterGroupName: 'default.aurora-postgresql11',
123123
EngineMode: 'serverless',
124124
DBSubnetGroupName: { Ref: 'DatabaseSubnets56F17B9A' },
125125
MasterUsername: {
@@ -892,7 +892,7 @@ describe('serverless cluster', () => {
892892
// WHEN
893893
new ServerlessCluster(stack, 'Database', {
894894
engine: DatabaseClusterEngine.AURORA,
895-
parameterGroup: ParameterGroup.fromParameterGroupName(stack, 'ParameterGroup', 'default.aurora-postgresql10'),
895+
parameterGroup: ParameterGroup.fromParameterGroupName(stack, 'ParameterGroup', 'default.aurora-postgresql11'),
896896
});
897897

898898
// THEN
@@ -909,7 +909,7 @@ describe('serverless cluster', () => {
909909
new ServerlessCluster(stack, 'Database', {
910910
engine: DatabaseClusterEngine.AURORA_POSTGRESQL,
911911
copyTagsToSnapshot: false,
912-
parameterGroup: ParameterGroup.fromParameterGroupName(stack, 'ParameterGroup', 'default.aurora-postgresql10'),
912+
parameterGroup: ParameterGroup.fromParameterGroupName(stack, 'ParameterGroup', 'default.aurora-postgresql11'),
913913
});
914914

915915
// THEN
@@ -926,7 +926,7 @@ describe('serverless cluster', () => {
926926
new ServerlessCluster(stack, 'Database', {
927927
engine: DatabaseClusterEngine.AURORA_POSTGRESQL,
928928
copyTagsToSnapshot: true,
929-
parameterGroup: ParameterGroup.fromParameterGroupName(stack, 'ParameterGroup', 'default.aurora-postgresql10'),
929+
parameterGroup: ParameterGroup.fromParameterGroupName(stack, 'ParameterGroup', 'default.aurora-postgresql11'),
930930
});
931931

932932
// THEN

0 commit comments

Comments
 (0)