@gradientedge/cdk-utils 8.156.1 → 8.158.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -19,8 +19,11 @@ class Ipv6Vpc extends aws_ec2_1.Vpc {
|
|
|
19
19
|
lodash_1.default.forEach([...this.publicSubnets, ...this.privateSubnets, ...this.isolatedSubnets], (subnet, index) => {
|
|
20
20
|
subnet.node.addDependency(cfnVpcCidrBlock);
|
|
21
21
|
const cfnSubnet = subnet.node.defaultChild;
|
|
22
|
+
cfnSubnet.cidrBlock = undefined;
|
|
23
|
+
cfnSubnet.mapPublicIpOnLaunch = false;
|
|
22
24
|
cfnSubnet.ipv6CidrBlock = aws_cdk_lib_1.Fn.select(index, subnetIpv6CidrBlocks);
|
|
23
25
|
cfnSubnet.assignIpv6AddressOnCreation = true;
|
|
26
|
+
cfnSubnet.ipv6Native = true;
|
|
24
27
|
});
|
|
25
28
|
const addDefaultIpv6Routes = (subnets, gatewayId, routerType) => subnets.forEach(subnet => subnet.addRoute(`${id}-default-route`, {
|
|
26
29
|
destinationIpv6CidrBlock: '::/0',
|
package/package.json
CHANGED
|
@@ -28,8 +28,11 @@ export class Ipv6Vpc extends Vpc {
|
|
|
28
28
|
_.forEach([...this.publicSubnets, ...this.privateSubnets, ...this.isolatedSubnets], (subnet, index) => {
|
|
29
29
|
subnet.node.addDependency(cfnVpcCidrBlock)
|
|
30
30
|
const cfnSubnet = subnet.node.defaultChild as CfnSubnet
|
|
31
|
+
cfnSubnet.cidrBlock = undefined
|
|
32
|
+
cfnSubnet.mapPublicIpOnLaunch = false
|
|
31
33
|
cfnSubnet.ipv6CidrBlock = Fn.select(index, subnetIpv6CidrBlocks)
|
|
32
34
|
cfnSubnet.assignIpv6AddressOnCreation = true
|
|
35
|
+
cfnSubnet.ipv6Native = true
|
|
33
36
|
})
|
|
34
37
|
|
|
35
38
|
const addDefaultIpv6Routes = (subnets: ISubnet[], gatewayId: string, routerType: RouterType) =>
|