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

Remove 'azurerm_resource_group' & upgrade azurerm 2.0 #35

Merged
merged 6 commits into from
Mar 11, 2020

Conversation

yupwei68
Copy link
Contributor

@yupwei68 yupwei68 commented Mar 3, 2020

fix #34

@yupwei68 yupwei68 requested a review from mybayern1974 March 3, 2020 07:56
@@ -47,36 +28,6 @@ module "network" {
}
}

resource "azurerm_subnet" "subnet" {
Copy link
Collaborator

Choose a reason for hiding this comment

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

The reason of deleting these examples is? Given the purpose of this README includes showing a runnable example of how to leveraging this module, as it said "This Terraform module deploys a Virtual Network in Azure with a subnet or a set of subnets passed in as input parameters.". So we need to figure out a way to keep the example?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I find it wield to create a new subnet and a new nsg, while the subnets created in the module can not associate with this nsg. If users want to get their subnets assigned a nsg, they could use another module "vnet"

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd like to comment that applying NSG + rules to a VNet + Subnets is a common practice. So it would be very helpful to add an example of how to do that: i.e. Step 1: use this module to create VNet + Subnet. Step 2: Use normal TF resources to create NSG + Rules and apply them to the subnets/one-subnet provisioned in Step 1.

I do not regard being lack of this example is a blocking to the current issue fix, and would suggest you could possibly supplement it in following PRs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

On fact, "vnet" create "virtual network" and "subnet" itself. In addition, it could assign the subnets the nsg. "network" could not support "nsg" well, so I deleted the example. So I should add one description in README, or just leave it empty?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have changed the description to declare it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Re "So I should add one description in README, or just leave it empty". No need to describe a non existing thing, if I understood your meanings correctly.

Copy link
Collaborator

@mybayern1974 mybayern1974 left a comment

Choose a reason for hiding this comment

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

@yupwei68, I made some comments and pls take a look. thank you.

@yupwei68 yupwei68 requested a review from mybayern1974 March 11, 2020 03:16
@mybayern1974 mybayern1974 merged commit de81a95 into Azure:master Mar 11, 2020
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.

Broken with new provider
2 participants