Skip to content

Nat instances not created when using pre existing eips #101

@krystan

Description

@krystan

Found a bug? Maybe our Slack Community can help.

Slack Community

Describe the Bug

Upon enabling the use of nat instances, disabling nat gateways and specifying the correct number of pre-existing eips the. nat instances are not created, this is NOT the case if you do not supply exiting eips, nat instances are created correctly in that instance.

Expected Behavior

Create a VPC
Attach an internet gateway.
Create eips
Standup module for dynamic subnets and. specify nat instances and eips to be used.

Subnets should be created with nat instances in public subnets using the pre existing eips

Steps to Reproduce

Steps to reproduce the behavior:

  1. Get test code from this gist
  2. create three eips
  3. alter tfvars file to have your own eips in.
  4. run terraform init and run
  5. Observe that nat instances were not. created.

Environment (please complete the following information):

Anything that will help us triage the bug will help. Here are some ideas:

  • OS: Linux
  • Terraform 12.x

Additional Context

Tried both. manual vpc creation and using a module

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug🐛 An issue with the system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions