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 terraform 0.12 #49

Closed
wants to merge 1 commit into from
Closed

Conversation

hyww
Copy link
Contributor

@hyww hyww commented Jun 27, 2019

Changes

  • use terraform 0.12upgrade command of terraform 0.12.3 to upgrade syntax of this module
  • fix type constraint of variable backends (the above command set it to map(string), which is not correct)

Reference

Fixes #49

@morgante
Copy link
Contributor

The examples also need to be updated to support Terraform v0.12.

@ivankorn Please go ahead and start a new PR which incorporates this one but also updates examples.

@morgante morgante closed this Aug 16, 2019
@ivankorn
Copy link
Contributor

@ivankorn Please go ahead and start a new PR which incorporates this one but also updates examples.

sure, I'll start it as #51 on Monday then

name = "${var.name}-http-proxy"
url_map = "${element(compact(concat(list(var.url_map), google_compute_url_map.default.*.self_link)), 0)}"
url_map = element(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe compact(concat(list(var.url_map), google_compute_url_map.default.*.self_link))[0]

project = var.project
count = var.ssl ? 1 : 0
name = "${var.name}-https-proxy"
url_map = element(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe compact(concat(list(var.url_map), google_compute_url_map.default.*.self_link))[0]

description = "Map backend indices to list of backend maps."
type = "map"
type = map
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO, this should become a list as backend_params is a list, but this is not what this PR is about :)

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.

None yet

4 participants