-
Notifications
You must be signed in to change notification settings - Fork 33
Conversation
Signed-off-by: skylerto <[email protected]>
TypeMaps with Elem TypeMap is no longer supported by terraform 12. We now are using TypeMap with Elem TypeString. Signed-off-by: skylerto <[email protected]>
@@ -97,21 +97,13 @@ func resourceVra7Deployment() *schema.Resource { | |||
"deployment_configuration": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was the only file pertaining to business logic that needed to be changed to support 12.
Signed-off-by: skylerto <[email protected]>
Signed-off-by: skylerto <[email protected]>
@skylerto thank you for the PR to upgrade to 0.12. I've had those changes as well. But when using resource_specification I see this:
I believe this has to do with the way 0.12 handles expressions differently from 0.11. Are you seeing this same thing with your changes? |
Ahhh, looking at the README changes in your PR I see you were going a similar path as I was, which was to quote the resource config value.
Likely all the examples will need to be changed. And verification of backwards compatibility with 0.11. |
@markpeek indeed, this was the only way I was able to get it working and passing vRA the correct values. I went down the route of trying to get the Maps working, but with terraform 12 a Map with a Elem value of Map is not valid. ref |
@markpeek, @sudomateo is there any next steps that I can take here to get this merged and released? |
Signed-off-by: skylerto <[email protected]>
Signed-off-by: skylerto <[email protected]>
@skylerto my apologies for the delay in getting this PR merged. Because this change is more than just updating the code for 0.12, we're being cautious. We are in the process of verifying/updating the unit and acceptance tests along with validating backwards compatibility with terraform 0.11. We will then work with HashiCorp on how best to roll out to our users. Thank you for your patience. |
Let me know how things go, would love to get this merged as opposed to managing our own release and fork. Also have some other changes that we're working on that might be useful upstream. |
Thanks @skylerto! I'm going to follow up with a PR to get the acceptance tests working and then work with HashiCorp on the right way to release (versioning, etc.). |
@markpeek thanks! I'm by no means a vRA expert, I'm working with a client on an internal fork and figure I would contribute these back upstream; stay tuned from some more ideas. :) |
Hi all, please forgive my ignorance, but how do we pull down this new version? There's no new release version since May 7. And currently, when i run |
@mcascone that's a great question! There is no official release of this provider with terraform 12 support. There are options to build and use a copy of that artifact locally (which is what I do). If you have a look at HashiCorps documentation (https://www.terraform.io/docs/plugins/basics.html) there you will find where to place built providers. This one is as simple as running ( As for when the release will be available, that's a question for @markpeek. |
Great, thanks for the update @markpeek! |
This PR adds support for terraform 0.12.0.
The support was added following the guidelines provided by terraform (https://www.terraform.io/docs/extend/terraform-0.12-compatibility.html)
Most of what was done was for adding the vendor dependencies (go modules) as per the docs.
resolves #13