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

InvalidParameterCombination - The request must contain a modification to the ipam pool #65

Open
kverstr opened this issue Jan 26, 2024 · 0 comments

Comments

@kverstr
Copy link

kverstr commented Jan 26, 2024

Hi,
Trying to do an IPv6 setup in ipam. However after an initial deploy, whatever I try to update, I get the error
InvalidParameterCombination - The request must contain a modification to the ipam pool

`

module "ipv6_aws" {
  source  = "aws-ia/ipam/aws"
  version = "~> 2.0"

  top_name                  = "AWS public IPv6 pool"
  top_netmask_length        = "52"
  address_family            = "ipv6"
  ipam_scope_type           = "public"
  top_aws_service           = "ec2"
  top_publicly_advertisable = true
  top_public_ip_source      = "amazon"
  top_locale                = "eu-central-1"

  pool_configurations = {
    eu-central-1 = {
      name                  = "AWS public IPv6 pool eu-central-1"
      description           = "Pool for ipv6 eu-central-1"
      netmask_length        = "53"
      locale                = "eu-central-1"
      aws_service           = "ec2"
      public_ip_source      = "amazon"

    sub_pools = {
      lab = {
        name                  = "AWS public IPv6 pool eu-central-1 lab"
        netmask_length        = "55"
        aws_service           = "ec2"
        ram_share_principals  = ["arn:aws:organizations::xxxxxxxxxxxxx:ou/o-xxxxxx/ou-xxxx-xxxxxx"]
        public_ip_source      = "amazon"
      }
      nprd = {
        name                  = "AWS public IPv6 pool eu-central-1 nprd"
        netmask_length        = "55"
        aws_service           = "ec2"
        ram_share_principals  = ["arn:aws:organizations::xxxxxxxxxxxxx:ou/o-xxxxxxxx/ou-xxxx-xxxxxxxxx"]
        public_ip_source      = "amazon"
      }
      #prod = {
      #  name                  = "AWS public IPv6 pool eu-central-1 prod"
      #  netmask_length        = "55"
      #  aws_service           = "ec2"
      #  ram_share_principals  = ["arn:aws:organizations::xxxxxxxxxxxxx:ou/o-xxxxxxxx/ou-xxxx-xxxxxxxxx"]
      #  public_ip_source      = "amazon"
      #}
    }
  }
  eu-west-1 = {
    name                  = "AWS public IPv6 pool eu-west-1"
    description           = "Pool for ipv6 eu-west-1"
    netmask_length        = "53"
    locale                = "eu-west-1"
    aws_service           = "ec2"
    public_ip_source      = "amazon"

    sub_pools = {
      lab = {
        name                  = "AWS public IPv6 pool eu-west-1 lab"
        netmask_length        = "55"
        aws_service           = "ec2"
        ram_share_principals  = ["arn:aws:organizations::xxxxxxxxxxxxx:ou/o-xxxxxxxx/ou-xxxx-xxxxxxxx"]
        public_ip_source      = "amazon"
      }
      nprd = {
        name                  = "AWS public IPv6 pool eu-west-1 nprd"
        netmask_length        = "55"
        aws_service           = "ec2"
        ram_share_principals  = ["arn:aws:organizations::xxxxxxxxxxxxx:ou/o-xxxxxxxx/ou-xxxx-xxxxxxxxx"]
        public_ip_source      = "amazon"
      }
      #prod = {
      #  name                  = "AWS public IPv6 pool eu-west-1 prod"
      #  netmask_length        = "55"
      #  aws_service           = "ec2"
      #  ram_share_principals  = ["arn:aws:organizations::xxxxxxxxxxxxx:ou/o-xxxxxxxx/ou-xxxx-xxxxxxxxx"]
      #  public_ip_source      = "amazon"
      #}
      }
    }
  }
}

`
(using TF version v1.6.4)

If for example I try to create eu-central-1 first and after deploy eu-west-1, it fails with that error.
if I try to deploy everything except prod and deploy prod later, it fails with that error.
If I try to add RAM shares later, fails with that error.

Am I missing something? variables? I don't immediately see what could cause this.

Thanks in advance

Kr

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