Skip to content

Conversation

@SokiKawashima
Copy link

Issue # (if applicable)

Closes #33469

Reason for this change

The current implementation of CfnEIP for NAT Gateway in ec2-alpha uses props.vpc?.vpcId for the domain property. However, per the AWS CloudFormation Documentation, the domain must be set to the string "vpc" for VPC Elastic IPs.

Description of changes

  • Code Changes:
let eip = new CfnEIP(this, 'EIP', {
  domain: 'vpc',
});
  • Design Decisions:
    • Followed AWS documentation standards to ensure compatibility.
    • Maintained backward compatibility by limiting the fix to VPC-associated EIPs only.
  • AWS Use Cases Enabled:
    • Supports proper NAT Gateway creation with VPC EIPs.
    • Aligns ec2-alpha module with AWS CloudFormation standards.

Describe any new or updated permissions being added

No new permissions are required.

Description of how you validated changes

No additional tests were introduced.

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@github-actions github-actions bot added feature-request A feature should be added or improved. p2 beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK labels Feb 16, 2025
@aws-cdk-automation aws-cdk-automation requested a review from a team February 16, 2025 16:55
Copy link
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pull request linter fails with the following errors:

❌ Fixes must contain a change to a test file.
❌ Fixes must contain a change to an integration test file and the resulting snapshot.

If you believe this pull request should receive an exemption, please comment and provide a justification. A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed, add Clarification Request to a comment.

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: f3eccfe
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@github-actions
Copy link
Contributor

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK feature-request A feature should be added or improved. p2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ec2-alpha: Incorrect 'domain' property for CfnEIP in NAT Gateway creation

2 participants