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

Support for Terraform 0.12 (fixes #55) #56

Merged

Conversation

eliasdorneles
Copy link
Contributor

Hello,

I tried upgrading the module to Terraform 0.12, the automated upgrade command terraform 0.12upgrade) does a good job.
I only had to solve manually one section (which had a comment explaining with the proper context).

I've also added a few lines to README pointing people to use the v1.10.0 version if they're on Terraform 0.11.

Does this look good?

@eliasdorneles
Copy link
Contributor Author

@Gazler
Copy link

Gazler commented Jun 26, 2019

I have tried this out and get the following error when I don't include an eip value:

Error: bastion: invalid tag attributes: value missing

If I make this change:

  tags = concat(
    [
      {
        "key"                 = "Name"
        "value"               = var.name
        "propagate_at_launch" = true
      },
-      {
-        "key"                 = "EIP"
-        "value"               = var.eip
-        "propagate_at_launch" = true
-      },
    ],
    var.extra_tags,
  )

Then it works.

Here's the plan with the missing value:

      + tags                      = [
          + {
              + "key"                 = "Name"
              + "propagate_at_launch" = "true"
              + "value"               = "bastion"
            },
          + {
              + "key"                 = "EIP"
              + "propagate_at_launch" = "true"
            },
        ]

@CarpathianUA
Copy link

I would like to this merged :)

@allan-simon
Copy link

@eliasdorneles ping :) , I think with @Gazler modification it should be good ?

@eliasdorneles
Copy link
Contributor Author

@allan-simon if i do that, then i'll break the behavior documented in the README:

eip - EIP to put into EC2 tag (can be used with scripts like https://github.com/skymill/aws-ec2-assign-elastic-ip, default - empty value)

... because the var.eip wouldn't be used anywhere.

I dunno what's best to do here, tbh.

@antonbabenko antonbabenko merged commit febd1f4 into terraform-community-modules:master Jan 7, 2020
@antonbabenko
Copy link
Member

v2.0.0 of this module is Terraform 0.12 ready.

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

Successfully merging this pull request may close these issues.

5 participants