Skip to content

Commit

Permalink
fix(ec2): allow NAT instance to associate public IP
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinZZ committed Oct 18, 2024
1 parent 8208774 commit 46409f1
Show file tree
Hide file tree
Showing 13 changed files with 1,986 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class NatInstanceStack extends cdk.Stack {
// Configure the `natGatewayProvider` when defining a Vpc
const natGatewayProvider = ec2.NatProvider.instanceV2({
instanceType: new ec2.InstanceType('t3.small'),
associatePublicIpAddress: true,
});

const vpc = new ec2.Vpc(this, 'MyVpc', {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 46409f1

Please sign in to comment.