Skip to content

Commit 8acb33e

Browse files
committed
Change Security Group ValidationError for allowAllOubound from ipv6 to ipv4
1 parent 689c661 commit 8acb33e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/aws-cdk-lib/aws-ec2/lib/security-group.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ export class SecurityGroup extends SecurityGroupBase {
627627
// to "allOutbound=true" mode, because we might have already emitted
628628
// EgressRule objects (which count as rules added later) and there's no way
629629
// to recall those. Better to prevent this for now.
630-
throw new ValidationError(lit`CannotAddTrafficEgressRule`, 'Cannot add an "all traffic" egress rule in this way; set allowAllOutbound=true (for ipv6) or allowAllIpv6Outbound=true (for ipv6) on the SecurityGroup instead.', this);
630+
throw new ValidationError(lit`CannotAddTrafficEgressRule`, 'Cannot add an "all traffic" egress rule in this way; set allowAllOutbound=true (for ipv4) or allowAllIpv6Outbound=true (for ipv6) on the SecurityGroup instead.', this);
631631
}
632632

633633
this.addDirectEgressRule(rule);

0 commit comments

Comments
 (0)