-
Notifications
You must be signed in to change notification settings - Fork 46
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
feat: (IAC-367) Allow Ability To Specify Which Availability Zones the Subnets Get Created In #240
Conversation
Co-authored-by: David Houck <[email protected]>
Co-authored-by: David Houck <[email protected]>
Co-authored-by: David Houck <[email protected]>
@dhoucgitter good catch on the vars/docs, applied those suggestions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am ok with the update here as long as we check to ensure the same number of elements for each subnet match the cidr and azs. We can at least ensure they have matching items.
@thpang see latest commit, validation added. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Tests ran fine, did a minor doc update as well for the variable. Merging. |
… Subnets Get Created In (#240)
Changes
Allows users the ability to specify which AZs that the subnet gets created in with the new
subnet_azs
variable.Similar to the existing
subnets
the map lets to set the name of the subnet along with zones will be used during creationSo if your defined subnets as so in your .tfvars
for
"control_plane" : ["192.168.130.0/28", "192.168.130.16/28"]
, the first subnet will be created inus-east-2c
and the second inus-east-2b
This variable is entirely optional, and if not defined the code will perform a lookup to populate the zones just like the behavior in
viya4-iac-aws:7.2.1
and prior. If entire keys are not defined, the lookup will be used to populate those.Tests
Validation Scenarios
In all cases subnet was left as the default value: https://github.com/sassoftware/viya4-iac-aws/blob/staging/variables.tf#L371