What does the next major release mean? #25900
-
ContextCDK Version:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
Hi @yukinakanaka - did you try the We were able to use it, and update without recreating the database. See PR here: medplum/medplum#2211 |
Beta Was this translation helpful? Give feedback.
-
Yes!
A v3 is not currently on our radar 🙂 |
Beta Was this translation helpful? Give feedback.
-
This doesn't seem to do it for me. I specified the parameter to true, yet still when I run a diff against current account it will tell me:
Any help would be greatly appreciated. Old CDK code: private buildRdsCluster(): DatabaseCluster {
const rdsCluster = new DatabaseCluster(
this,
RdsUtils.RDS_CLUSTER,
{
clusterIdentifier: RdsUtils.RDS_CLUSTER,
engine: DatabaseClusterEngine.auroraPostgres(
{
version: AuroraPostgresEngineVersion.VER_14_6,
}
),
port: RdsUtils.RDS_PORT,
credentials: Credentials.fromSecret(this.rdsPostgresSecret),
storageEncrypted: true,
instanceProps: {
instanceType: InstanceType.of(InstanceClass.T3, InstanceSize.MEDIUM),
vpcSubnets: {
subnetType: SubnetType.PRIVATE_ISOLATED,
},
vpc: this.vpc,
securityGroups: [
this.rdsSecurityGroup,
],
},
backup: {
preferredWindow: '00:00-01:00',
retention: Duration.days(
this.props.isProduction ? 30 : 7
),
},
preferredMaintenanceWindow: 'Wed:01:00-Wed:02:00',
removalPolicy: RemovalPolicy.RETAIN,
}
);
new CfnOutput(
this,
`${RdsUtils.RDS_CLUSTER_ENDPOINT}-output`,
{
exportName: RdsUtils.getRdsClusterEndpointExportName(),
description: 'The RDS cluster endpoint',
value: `${rdsCluster.clusterEndpoint.socketAddress}`,
}
);
return rdsCluster;
} New CDK code: private buildRdsCluster(): DatabaseCluster {
const instanceProps: ProvisionedClusterInstanceProps = {
instanceType: InstanceType.of(InstanceClass.T3, InstanceSize.MEDIUM),
isFromLegacyInstanceProps: true,
};
const rdsCluster = new DatabaseCluster(this, RdsUtils.RDS_CLUSTER, {
vpc: this.vpc,
securityGroups: [this.rdsSecurityGroup],
vpcSubnets: { subnetType: SubnetType.PRIVATE_ISOLATED },
clusterIdentifier: RdsUtils.RDS_CLUSTER,
engine: DatabaseClusterEngine.auroraPostgres({
version: AuroraPostgresEngineVersion.VER_14_6,
}),
port: RdsUtils.RDS_PORT,
credentials: Credentials.fromSecret(this.rdsPostgresSecret),
storageEncrypted: true,
writer: ClusterInstance.provisioned("Instance1", instanceProps),
readers: [ClusterInstance.provisioned("Instance2", instanceProps)],
backup: {
preferredWindow: "00:00-01:00",
retention: Duration.days(this.props.isProduction ? 30 : 7),
},
preferredMaintenanceWindow: "Wed:01:00-Wed:02:00",
removalPolicy: RemovalPolicy.RETAIN,
});
new CfnOutput(this, `${RdsUtils.RDS_CLUSTER_ENDPOINT}-output`, {
exportName: RdsUtils.getRdsClusterEndpointExportName(),
description: "The RDS cluster endpoint",
value: `${rdsCluster.clusterEndpoint.socketAddress}`,
});
return rdsCluster;
} |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Yes!
A v3 is not currently on our radar 🙂