Skip to content

Commit

Permalink
Create new vpc instead of lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
jada-slalom committed Feb 12, 2024
1 parent 4b6d41b commit c555287
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const app = new cdk.App();

const stack = new cdk.Stack(app, 'aws-cdk-docdb-integ-cluster-retain');

const vpc = ec2.Vpc.fromLookup(stack, 'VPC', { isDefault: true });
const vpc = new ec2.Vpc(stack, 'VPC', { maxAzs: 2, restrictDefaultSecurityGroup: false });
new DatabaseCluster(stack, 'Database', {
masterUser: { username: 'clusteradmin' },
instanceType: ec2.InstanceType.of(
Expand Down

0 comments on commit c555287

Please sign in to comment.