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

Getting expected ip_address to contain a valid IPv4 address error with AWS provider >= 2.65.0 #44

Closed
zephinzer opened this issue Jun 24, 2020 · 2 comments · Fixed by #55
Labels
bug Something isn't working

Comments

@zephinzer
Copy link

zephinzer commented Jun 24, 2020

Found a bug? Maybe our Slack Community can help.

Slack Community

Describe the Bug

The AWS provider 2.65.0 introduces additional validation for the ip_address property used in the aws_efs_mount_target resource, previously a blank string will leave it to AWS, but it's now returning an error:

Error: expected ip_address to contain a valid IPv4 address, got: 

  on .terraform/modules/efs/terraform-aws-efs-0.16.0/main.tf line 34, in resource "aws_efs_mount_target" "default":
  34: resource "aws_efs_mount_target" "default" {

See hashicorp/terraform-provider-aws#13626 for more info

Expected Behavior

Not specifying the mount_target_ip_address should work as before.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Attempt to provision a new EFS without setting the mount_target_ip_address variable

Screenshots

NA

Environment (please complete the following information):

# terraform version 
> Terraform v0.12.26

# terragrunt --version
> terragrunt version v0.23.7

# terragrunt version
> Terraform v0.12.26
> + provider.aws v2.67.0
> + provider.local v1.4.0
> + provider.null v2.1.2

Additional Context

The solution will be to set the default for mount_target_ip_address to null instead of an empty string, this seems backward compatible too-

@zephinzer zephinzer added the bug Something isn't working label Jun 24, 2020
@abdennour
Copy link

same issue as well :

Error: expected ip_address to contain a valid IPv4 address, got: 

  on .terraform/modules/external_storage.efs/main.tf line 34, in resource "aws_efs_mount_target" "default":
  34: resource "aws_efs_mount_target" "default" {

abdennour added a commit to kubernetes-tn/terraform-aws-efs that referenced this issue Jul 2, 2020
@abdennour
Copy link

abdennour commented Aug 5, 2020

I've opened new PR #49 which must fix the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants