Terraform: aws_eip resource missing support for tags

Created on 27 Dec 2017  ยท  9Comments  ยท  Source: hashicorp/terraform

Terraform Version

Terraform v0.11.1
+ provider.aws v1.6.0

Terraform Configuration Files

resource "aws_eip" "example" {
  vpc      = true
  instance = "i1234567890abcdef"

  tags {
    Name = "EIP for my favourite instance
  }
}

Expected Behavior


EIP created and and tags added

Actual Behavior


Error: aws_eip.example: : invalid or unknown key: tags

Steps to Reproduce

  • terraform init
  • terraform apply
  • Important Factoids


    Tested in us-east-2 region

    References


    Couldn't find any existing issue covering the lack of support for tags on EIP resources. Manual page for aws_eip resource supports finding that 'tags' is not supported.

    Most helpful comment

    Support for search by tags is needed as well, so that we can find and re-attach eips to things like private VPN instances, etc. I encountered this today when realizing the data source aws_eip does not support the tags block:

    RE: "invalid or unknown key: tags" from:

    data "aws_eip" "get_eip" {
    tags = {
    "mytag_name" = "mytag_value"
    }
    }
    output "eip_output" { value = "${data.aws_eip.get_eip.id}" }

    All 9 comments

    Hey @whereisaaron According to this post, this feature was released nine days ago >> https://aws.amazon.com/about-aws/whats-new/2017/12/amazon-virtual-private-cloud-vpc-now-allows-customers-to-tag-their-elastic-ip-addresses/ Not sure whether the latest version of the terraform AWS provider already supports it.

    Thanks @arnoldokoth I didn't realize EIP tags were that new, but either way, be great to add support for them. I've been waiting so long for EIP tags (and SG rule descriptions), I want to use them immediately! :-)

    v1.6.0 is the latest version of the AWS provider, but that was 12 days ago, so no chance they could be included. And I guess my feature request is best posted over on the provider repo.

    I've moved this issue over to the AWS provider repo, so I'll close it here.

    terraform-providers/terraform-provider-aws#2805

    Haha, yeah @whereisaaron We've waited for that feature for too long! :-)

    Moving it over to the provider repo makes perfect sense.

    @arnoldokoth - EIP tags are going to be in the next AWS provider release in the New Year.

    terraform-providers/terraform-provider-aws#2768

    @whereisaaron Awesome! Thanks.

    Support for search by tags is needed as well, so that we can find and re-attach eips to things like private VPN instances, etc. I encountered this today when realizing the data source aws_eip does not support the tags block:

    RE: "invalid or unknown key: tags" from:

    data "aws_eip" "get_eip" {
    tags = {
    "mytag_name" = "mytag_value"
    }
    }
    output "eip_output" { value = "${data.aws_eip.get_eip.id}" }

    @BlaineBradbury, I created a separate ticket for that: #17361

    I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.

    If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

    Was this page helpful?
    0 / 5 - 0 ratings