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

[Networking] Updating to 2019-09-01 / fixing azurerm_virtual_hub / VPN Resources #5004

Merged
merged 33 commits into from Nov 29, 2019

Conversation

tombuildsstuff
Copy link
Member

@tombuildsstuff tombuildsstuff commented Nov 27, 2019

We ultimately ended up pulling the azurerm_virtual_hub Data Source & Resource from v1.37 since the resource design didn't match how the API worked. As such this PR reintroduces the azurerm_virtual_hub resource by introducing the dependencies necessary to use it.

Whilst it's unfortunate this PR is so large - due to the fact that this is already merged it makes sense to bundle these together - however traditionally we'd split these apart, in particular the SDK upgrade.

This PR includes:

  • updating the network API to 2019-09-01
  • re-introducing the azurerm_virtual_hub Data Source / Resources:
    • removing the express_route_gateway_id field from the Data Source & Resource
    • removing the p2s_vpn_gateway_id field from the Data Source & Resource
    • removing the s2s_vpn_gateway_id field from the Data Source & Resource
    • removing the route block from the Data Source
    • removing the virtual_network_connection block from the Data Source & Resource
  • removing the security_provider_name field from the azurerm_virtual_wan resource since this is no longer available in the API
  • New Resource: azurerm_point_to_site_vpn_gateway
  • New Resource: azurerm_vpn_gateway
  • New Resource: azurerm_vpn_server_configuration

Acceptance Test Results:

Data Source: azurerm_virtual_hub:

Screenshot 2019-11-27 at 16 15 49

Data Source: azurerm_virtual_wan:

Screenshot 2019-11-27 at 11 47 54

Resource: azurerm_point_to_site_vpn_gateway:

Screenshot 2019-11-28 at 17 44 15

Resource: azurerm_virtual_hub:

Screenshot 2019-11-27 at 11 47 33

Resource: azurerm_virtual_hub_connection:

Screenshot 2019-11-28 at 14 23 24

Resource: azurerm_vpn_gateway:

Screenshot 2019-11-28 at 14 23 24

Resource: azurerm_vpn_server_configuration:

Screenshot 2019-11-27 at 11 47 06

Resource: azurerm_virtual_wan:

Screenshot 2019-11-27 at 12 10 53

Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

Aside from some minor comments LGTM 👍

azurerm/resource_arm_point_to_site_vpn_gateway.go Outdated Show resolved Hide resolved
azurerm/resource_arm_virtual_hub.go Outdated Show resolved Hide resolved
azurerm/resource_arm_virtual_hub.go Outdated Show resolved Hide resolved
azurerm/resource_arm_vpn_gateway.go Show resolved Hide resolved
azurerm/resource_arm_vpn_gateway.go Show resolved Hide resolved
azurerm/resource_arm_vpn_gateway_test.go Outdated Show resolved Hide resolved
azurerm/resource_arm_vpn_server_configuration.go Outdated Show resolved Hide resolved
azurerm/resource_arm_vpn_server_configuration_test.go Outdated Show resolved Hide resolved
@tombuildsstuff
Copy link
Member Author

Acceptance Tests still pass after PR updates 👍

@tombuildsstuff tombuildsstuff merged commit a39d909 into master Nov 29, 2019
@tombuildsstuff tombuildsstuff deleted the f/networking branch November 29, 2019 15:43
tombuildsstuff added a commit that referenced this pull request Nov 29, 2019
@neil-yechenwei
Copy link
Contributor

neil-yechenwei commented Dec 3, 2019

Hi @tombuildsstuff , thanks for this PR. However, I have a question about this. I remember you wanna make the property "virtual_network_connection" as separate resource. But in this PR, I didn't find the separate resource for this property. Seems that this property has been removed from the resource. Maybe I missed something. Can I know the reason why this property should be removed?

@tombuildsstuff
Copy link
Member Author

@neil-yechenwei it turns out the API doesn't work so we had to pull it

@ghost
Copy link

ghost commented Dec 7, 2019

This has been released in version 1.38.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 1.38.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Dec 30, 2019

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@hashicorp hashicorp locked and limited conversation to collaborators Dec 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants