-
Notifications
You must be signed in to change notification settings - Fork 37
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
Support for multiple subnet IDs #38
Comments
Just as for AWS' NAT Gateway service, this module only spans across one availability zone. You might want to use multiple instance types within your ASG to mitigate the issue of instance shortage when using spot instances |
I would agree, but this is a problem unique to spot instances, which does not apply to NAT gateways and I think this module can solve it easily. While launching an EC2 instance requires a subnet, In HA mode specifically, the ASG can and should be created to include multiple subnets. I had this error today on my fck-nat instance that was already running and was interupted:
Because of the way this module creates the ASG, it was not able to replace the instance in another subnet.
It doesn't seem like there is an option to specify more than 1 instance type for the ASG in this module. The only other option that I can think of would be to create multiple instances of this module with a different instance type/subnet id, therefore creating multiple NAT instances. This means higher cost. I think multiple subnets should be an option when using an ASG (HA mode). If you want to limit to a single subnet, then you should also have that option. |
Currently it appears the module supports only a single subnet ID. This means if you're using spot instances in an ASG, you can get denied provisioning an instance due to limited capacity in that specific Availability zone you've allocated the subnet to.
The exact error for more context:
I don't see a good way to address this at the moment since the whole thing relies on a single network interface/subnet.
The text was updated successfully, but these errors were encountered: