-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
WIP: Add ipv4_ipam_pool_id & ipv4_netmask_length #102
Conversation
Signed-off-by: Jeremy T. Bouse <Jeremy.Bouse@UnderGrid.net>
@Nuru this is a modification I was working on locally and mentioned in last weeks office hours. Was suggested I run past you to get your thoughts. |
/test all |
@jbouse sorry for the late review. Tests are failing because of conflicting arguments at the provider level: TestExamplesComplete 2022-02-10T17:42:02Z logger.go:66:
TestExamplesComplete 2022-02-10T17:42:02Z logger.go:66: Error: Conflicting configuration arguments
TestExamplesComplete 2022-02-10T17:42:02Z logger.go:66:
TestExamplesComplete 2022-02-10T17:42:02Z logger.go:66: on ../../main.tf line 17, in resource "aws_vpc" "default":
TestExamplesComplete 2022-02-10T17:42:02Z logger.go:66: 17: cidr_block = var.cidr_block
TestExamplesComplete 2022-02-10T17:42:02Z logger.go:66:
TestExamplesComplete 2022-02-10T17:42:02Z logger.go:66: "cidr_block": conflicts with ipv4_netmask_length
TestExamplesComplete 2022-02-10T17:42:02Z logger.go:66:
TestExamplesComplete 2022-02-10T17:42:02Z logger.go:66:
TestExamplesComplete 2022-02-10T17:42:02Z logger.go:66: Error: Missing required argument
TestExamplesComplete 2022-02-10T17:42:02Z logger.go:66:
TestExamplesComplete 2022-02-10T17:42:02Z logger.go:66: on ../../main.tf line 19, in resource "aws_vpc" "default":
TestExamplesComplete 2022-02-10T17:42:02Z logger.go:66: 19: ipv4_netmask_length = var.ipv4_netmask_length
TestExamplesComplete 2022-02-10T17:42:02Z logger.go:66:
TestExamplesComplete 2022-02-10T17:42:02Z logger.go:66: "ipv4_netmask_length": all of `ipv4_ipam_pool_id,ipv4_netmask_length` must be
TestExamplesComplete 2022-02-10T17:42:02Z logger.go:66: specified |
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.
See comment
main.tf
Outdated
ipv4_ipam_pool_id = var.ipv4_ipam_pool_id | ||
ipv4_netmask_length = var.ipv4_netmask_length |
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.
Seems to conflict with cidr_block
https://github.com/cloudposse/actions/actions/runs/1825260398
TestExamplesComplete 2022-02-10T17:42:02Z logger.go:66:
TestExamplesComplete 2022-02-10T17:42:02Z logger.go:66: Error: Conflicting configuration arguments
TestExamplesComplete 2022-02-10T17:42:02Z logger.go:66:
TestExamplesComplete 2022-02-10T17:42:02Z logger.go:66: on ../../main.tf line 17, in resource "aws_vpc" "default":
TestExamplesComplete 2022-02-10T17:42:02Z logger.go:66: 17: cidr_block = var.cidr_block
TestExamplesComplete 2022-02-10T17:42:02Z logger.go:66:
TestExamplesComplete 2022-02-10T17:42:02Z logger.go:66: "cidr_block": conflicts with ipv4_netmask_length
TestExamplesComplete 2022-02-10T17:42:02Z logger.go:66:
TestExamplesComplete 2022-02-10T17:42:02Z logger.go:66:
TestExamplesComplete 2022-02-10T17:42:02Z logger.go:66: Error: Missing required argument
TestExamplesComplete 2022-02-10T17:42:02Z logger.go:66:
TestExamplesComplete 2022-02-10T17:42:02Z logger.go:66: on ../../main.tf line 19, in resource "aws_vpc" "default":
TestExamplesComplete 2022-02-10T17:42:02Z logger.go:66: 19: ipv4_netmask_length = var.ipv4_netmask_length
TestExamplesComplete 2022-02-10T17:42:02Z logger.go:66:
TestExamplesComplete 2022-02-10T17:42:02Z logger.go:66: "ipv4_netmask_length": all of `ipv4_ipam_pool_id,ipv4_netmask_length` must be
TestExamplesComplete 2022-02-10T17:42:02Z logger.go:66: specified
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 believe I've updated to execute examples/complete
without regression... I still need to put together an example to validate the use of IPAM instead of using cidr_block
as examples/complete
does. I'll remove WIP:
from the PR title when I believe it's fully ready with testing completed.
@korenyoni I'll go back and take another look at this... The use case I'm working on is being able to use AWS IPAM when deploying out the VPC so it would either use |
As `cidr_block` and `ipv4_ipam_pool_id` are mutually exclusive, ensure that `ipv4_netmask_length` is null if `ipv4_ipam_pool_id` is null. Signed-off-by: Jeremy T. Bouse <Jeremy.Bouse@UnderGrid.net>
This Pull Request has been updated, so we're dismissing all reviews.
/test all |
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.
@jbouse IPv6 and IPAM support released in v1.1.0. Please try it out and report any issues. |
what
ipv4_ipam_pool_id
&ipv4_netmask_length
variablescidr_block
with default value ofnull
cidr_block
is mutually exclusive to usingipv4_ipam_pool_id
andipv4_netmask_length
why
cidr_block
auto-assignment for a VPC provided from an AWS VPC IPAM pool