Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

feat(module/vnet): add possibility to re-use existing subnets #219

Merged
merged 5 commits into from
Dec 13, 2022

Conversation

FoSix
Copy link
Contributor

@FoSix FoSix commented Dec 5, 2022

Description

Extend brownfield deployments by re-using not only existing VNET but also existing Subnets.

Motivation and Context

Based on real life examples where deployment is done in an already existing VNET + Subnets. This module allowed only to re-use an existing VNET and forced creation of Subnets. With this change only NSGs and UDRs are being created and assigned to already existing Subnets. Subnet definition structure does not change.

How Has This Been Tested?

A modified VNET example was used to test the code.

Screenshots (if appropriate)

Types of changes

  • New feature (non-breaking change which adds functionality)

Checklist

  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes if appropriate.
  • All new and existing tests passed.

@FoSix FoSix requested a review from a team as a code owner December 5, 2022 11:28
@FoSix FoSix linked an issue Dec 5, 2022 that may be closed by this pull request
@FoSix FoSix marked this pull request as draft December 6, 2022 08:50
modules/vnet/main.tf Outdated Show resolved Hide resolved
@FoSix FoSix marked this pull request as ready for review December 6, 2022 10:29
@FoSix FoSix merged commit 5355404 into main Dec 13, 2022
@FoSix FoSix deleted the 217-vnet-module-add-option-to-re-use-subnets branch December 13, 2022 10:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vnet module - add option to re-use subnets
2 participants