-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
139 additions
and
2 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
.../@aws-cdk-testing/framework-integ/test/aws-ec2/test/integ.vpc-endpoint-ip-address-type.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { App, Stack } from 'aws-cdk-lib/core'; | ||
import * as ec2 from 'aws-cdk-lib/aws-ec2'; | ||
import { IntegTest } from '@aws-cdk/integ-tests-alpha'; | ||
|
||
const app = new App(); | ||
const stack = new Stack(app, 'VpcEndpointIpAddressTypeStack'); | ||
|
||
const vpc = new ec2.Vpc(stack, 'DualStackVpc', { | ||
ipProtocol: ec2.IpProtocol.DUAL_STACK, | ||
}); | ||
|
||
vpc.addInterfaceEndpoint('IPv4', { | ||
privateDnsEnabled: false, | ||
service: ec2.InterfaceVpcEndpointAwsService.BEDROCK, | ||
subnets: { subnetType: ec2.SubnetType.PUBLIC }, | ||
ipAddressType: ec2.IpAddressType.IPV4, | ||
}); | ||
|
||
vpc.addInterfaceEndpoint('IPv6', { | ||
privateDnsEnabled: false, | ||
service: ec2.InterfaceVpcEndpointAwsService.S3_TABLES, | ||
subnets: { subnetType: ec2.SubnetType.PUBLIC }, | ||
ipAddressType: ec2.IpAddressType.IPV6, | ||
}); | ||
|
||
new IntegTest(app, 'VpcEndpointIpAddressTypeTest', { | ||
testCases: [stack], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters