Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error creating EIP tags #502

Closed
adaniline-traderev opened this issue Mar 14, 2019 · 0 comments
Closed

Error creating EIP tags #502

adaniline-traderev opened this issue Mar 14, 2019 · 0 comments

Comments

@adaniline-traderev
Copy link

Pulumi version: v0.17.1
Plugin aws [resource] version: 0.17.1

Creating a vpc stack with EIP and nat gateway:

const eipTags = Object.assign({
                Name: `${inputs.description} NAT EIP ${index + 1}`,
            }, {
            'my:automation': 'pulumi',
            'my:environment': 'QA',
            'my:region': 'CA'
        });

            // Elastic IP
            const eip = new aws.ec2.Eip(`${baseName}-nat-eip-${index + 1}`, {
                tags: eipTags,
            }, subnetParent);

            // Create the NAT Gateway in the corresponding indexed PUBLIC subnet
            const natGatewayTags = Object.assign({
                Name: `${inputs.description} NAT GW ${index + 1}`,
            }, inputs.baseTags);
            const natGateway = new aws.ec2.NatGateway(`${baseName}-nat-gw-${index + 1}`, {
                allocationId: eip.allocationId,
                subnetId: publicSubnets[index].id,
                tags: natGatewayTags,
            }, subnetParent);

Got terraform error:

    * creating urn:pulumi:devops1::devops-eks-network::operator-error:aws:Vpc$aws:ec2/vpc:Vpc$aws:ec2/subnet:Subnet$aws:ec2/eip:Eip::eks-qa1-nat-eip-1: Error creating EIP tags: InvalidID: The ID '107.20.243.249' is not valid
        status code: 400, request id: 1af9f413-3424-4b0f-83b1-8000eebb8124
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant