Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ec2): allow NAT instance to associate public IP #31812

Merged
merged 7 commits into from
Oct 22, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add comma
  • Loading branch information
GavinZZ committed Oct 21, 2024
commit a9871600bd687bdb7f5d697f6d5357046bb7ae78
7 changes: 3 additions & 4 deletions packages/aws-cdk-lib/aws-ec2/test/vpc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {
InterfaceVpcEndpointService,
NatProvider,
NatGatewayProvider,
NatInstanceProviderV2,
NatInstanceProvider,
NatTrafficDirection,
NetworkAcl,
Expand Down Expand Up @@ -1787,10 +1786,10 @@ describe('vpc', () => {
Template.fromStack(stack).hasResource('AWS::EC2::Instance', Match.objectLike({
Properties: {
NetworkInterfaces: [{
AssociatePublicIpAddress: value
AssociatePublicIpAddress: value,
}],
}
}))
},
}));
});

test('Can instantiate NatInstanceProvider directly with new', () => {
Expand Down