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

Expose network_type field to allow dual stack networking #166

Open
OzoneChris opened this issue Dec 22, 2023 · 0 comments
Open

Expose network_type field to allow dual stack networking #166

OzoneChris opened this issue Dec 22, 2023 · 0 comments

Comments

@OzoneChris
Copy link

Describe the Feature

The relatively new network-type field isn't broken out, or even used in the module, which means dual stack (IPv6) networking cannot be enabled.

Expected Behavior

Optional input network_type = DUAL would create the instance in dual stack networking mode.

Use Case

I have observed odd behaviour with RDS Postgres, creating an instance (via this module) in a dual stack VPC leads to the DB getting DNS records for both IPv4 and IPv6, even though the networking mode is set to IPv4 only.

This seems to lead to certain pq libraries favouring IPv6. This fails to connect, causing a timeout. The library then tries the IPv4 address and connects. The practical demonstration of this is psql taking 2 minutes to open a connection.

By making the DB dual stack, this problem is eliminated.

Describe Ideal Solution

Optional input network_type = DUAL would create the instance in dual stack networking mode.

Alternatives Considered

  • Avoid using dual stack VPCs

Additional Context

No response

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