Skip to content

Commit fe51b81

Browse files
author
Maharaj Haider
committed
add feature flag to vpc dual stack change
merged with main rebased with main
1 parent 95d48c7 commit fe51b81

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

packages/aws-cdk-lib/cx-api/lib/features.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ export const S3_TRUST_KEY_POLICY_FOR_SNS_SUBSCRIPTIONS = '@aws-cdk/s3-notificati
140140
export const EC2_REQUIRE_PRIVATE_SUBNETS_FOR_EGRESSONLYINTERNETGATEWAY = '@aws-cdk/aws-ec2:requirePrivateSubnetsForEgressOnlyInternetGateway';
141141
export const USE_RESOURCEID_FOR_VPCV2_MIGRATION = '@aws-cdk/aws-ec2-alpha:useResourceIdForVpcV2Migration';
142142
export const S3_PUBLIC_ACCESS_BLOCKED_BY_DEFAULT = '@aws-cdk/aws-s3:publicAccessBlockedByDefault';
143+
export const ENABLE_E2_REMOVE_EGRESSONLYGATEWAY_FROM_PUBLIC_SUBNET_VPC = '@aws-cdk/ec2:removeEgressOnlyGatewayFromPublicSubnetVPC';
143144

144145
export const FLAGS: Record<string, FlagInfo> = {
145146
//////////////////////////////////////////////////////////////////////
@@ -1618,6 +1619,18 @@ export const FLAGS: Record<string, FlagInfo> = {
16181619
introducedIn: { v2: 'V2NEXT' },
16191620
recommendedValue: true,
16201621
},
1622+
1623+
//////////////////////////////////////////////////////////////////////
1624+
[ENABLE_E2_REMOVE_EGRESSONLYGATEWAY_FROM_PUBLIC_SUBNET_VPC]: {
1625+
type: FlagType.BugFix,
1626+
summary: 'Remove EgressOnlyGateway resource when a a double stack vpc has only public subnets',
1627+
detailsMd: `
1628+
When this feature flag is enabled, EgressOnlyGateway resource will not be created when you create a vpc with only public subnets. A
1629+
`,
1630+
introducedIn: { v2: '2.196.0' },
1631+
defaults: { v2: false },
1632+
recommendedValue: true,
1633+
},
16211634
};
16221635

16231636
const CURRENT_MV = 'v2';

0 commit comments

Comments
 (0)