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

fix(module/subnet_set): Added VPC selector to match existing subnets in VPC #292

Merged
merged 2 commits into from
Apr 12, 2023

Conversation

mariuszgebala
Copy link
Contributor

Description

Added a VPC selector to the subnet_set module to avoid problems with identical names of subnets belonging to different VPCs.

Motivation and Context

If there are multiple subnets in the region that match the selected name, we will get the multiple EC2 subnets matched error: use additional restrictions to reduce the matches to a single EC2 subnet.

How Has This Been Tested?

The check was based on a region where there were about a dozen subnets with the same name. After adding the vpc_id parameter, the expected subnet ID was obtained.

Types of changes

  • Bug fix

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.

@mariuszgebala mariuszgebala requested a review from a team as a code owner March 17, 2023 15:02
@welcome-to-palo-alto-networks

🎉 Thanks for opening this pull request! We really appreciate contributors like you! 🙌

@mariuszgebala mariuszgebala changed the title fix(modules/subnet_set): Added VPC selector to match existing subnets in VPC fix(module/subnet_set): Added VPC selector to match existing subnets in VPC Mar 17, 2023
Copy link
Contributor

@pimielowski pimielowski left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@sebastianczech sebastianczech left a comment

Choose a reason for hiding this comment

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

LGTM

@migara migara merged commit c994aa0 into main Apr 12, 2023
@migara migara deleted the subnet_set_vpc_selector_fix branch April 12, 2023 10:08
@welcome-to-palo-alto-networks

🎉 Congrats on getting your first pull request merged! We here at Palo Alto Networks are so grateful! ❤️

@github-actions
Copy link
Contributor

🎉 This PR is included in version 0.4.2 🎉

The release is available on Terraform Registry and GitHub release

Posted by semantic-release bot

mariuszgebala added a commit that referenced this pull request Jul 5, 2023
…in VPC (#292)

* Added VPC selector to match existing subnets in VPC

* Improved terraform format

---------

Co-authored-by: Mariusz Gebala <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants