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

feat(MAJOR): Refactor module vpc, remove module subnet_set #68

Merged
merged 38 commits into from
Aug 29, 2024

Conversation

sebastianczech
Copy link
Contributor

@sebastianczech sebastianczech commented Aug 5, 2024

Description

Resolves #62 by:

  • remove subnet_set module
  • extend vpc module to create subnets and route tables
  • simplify subnets creation (not using complex locals from subnet_set module)
  • adjust the variables in variables.tf and outputs inoutputs.tf in order that makes sense
  • refactor variables e.g. create new variable internet_gateway, which defines object with attributes for IGW creation/usage
  • adjust variables description to standard from Major refactor for modules and examples #53
  • add a comment with a link to Terraform Registry before a resource block
  • adjust all examples to new approach with vpc module
  • adjust CloudNGFW examples to changes delivered for other examples in fix(examples): Refactor examples for reference architectures #49
  • change approach for CloudWatch logs group in CloudNGFW (as the same name PaloAltoCloudNGFW has to be used for both examples, groups was created on account used in workflows and in TFVARS we are not creating new log group, we are reusing existing one)
  • enables pre-releases from rc branch

This PR is first iteration of vpc refactor - still needs to be done in another PR e.g.:

  • added support for all possible attributes for every resource used in module
  • README changed to new standard with new file .header.md

Motivation and Context

#53

How Has This Been Tested?

Code was tested locally and via ChatOps.

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.

…te tables, adjust combined_design to new approach
…each resource, simplify locals, remove comments
@sebastianczech sebastianczech requested a review from a team as a code owner August 5, 2024 12:14
@sebastianczech sebastianczech requested review from a team and removed request for a team August 5, 2024 12:14
@sebastianczech sebastianczech linked an issue Aug 5, 2024 that may be closed by this pull request
@sebastianczech
Copy link
Contributor Author

sebastianczech commented Aug 5, 2024

/plan paths="examples/centralized_design examples/centralized_design_autoscale examples/combined_design examples/combined_design_autoscale examples/isolated_design examples/isolated_design_autoscale examples/panorama_standalone examples/vmseries_standalone examples/cloudngfw_combined_design examples/cloudngfw_isolated_design"

Testing job ID: 10248610526
Job result: SUCCESS

@sebastianczech
Copy link
Contributor Author

All idempotence tests were executed also in #63

@sebastianczech
Copy link
Contributor Author

sebastianczech commented Aug 5, 2024

/idempotence paths="examples/centralized_design examples/centralized_design_autoscale examples/combined_design examples/combined_design_autoscale examples/isolated_design examples/isolated_design_autoscale"

Testing job ID: 10248963837
Job result: SUCCESS

@sebastianczech
Copy link
Contributor Author

sebastianczech commented Aug 5, 2024

/idempotence paths="examples/panorama_standalone examples/vmseries_standalone"

Testing job ID: 10249380073
Job result: SUCCESS

@sebastianczech
Copy link
Contributor Author

sebastianczech commented Aug 5, 2024

/idempotence paths="examples/cloudngfw_combined_design examples/cloudngfw_isolated_design"

Testing job ID: 10249711908
Job result: SUCCESS

@sebastianczech
Copy link
Contributor Author

sebastianczech commented Aug 9, 2024

/plan paths="examples/centralized_design examples/centralized_design_autoscale examples/combined_design examples/combined_design_autoscale examples/isolated_design examples/isolated_design_autoscale examples/panorama_standalone examples/vmseries_standalone examples/cloudngfw_combined_design examples/cloudngfw_isolated_design"

Testing job ID: 10315918212
Job result: SUCCESS

@sebastianczech
Copy link
Contributor Author

sebastianczech commented Aug 9, 2024

/plan paths="examples/centralized_design examples/centralized_design_autoscale examples/combined_design examples/combined_design_autoscale examples/isolated_design examples/isolated_design_autoscale examples/panorama_standalone examples/vmseries_standalone examples/cloudngfw_combined_design examples/cloudngfw_isolated_design"

Testing job ID: 10316032087
Job result: FAILURE

@sebastianczech
Copy link
Contributor Author

sebastianczech commented Aug 9, 2024

/plan paths="examples/centralized_design examples/centralized_design_autoscale examples/combined_design examples/combined_design_autoscale examples/isolated_design examples/isolated_design_autoscale examples/panorama_standalone examples/vmseries_standalone examples/cloudngfw_combined_design examples/cloudngfw_isolated_design"

Testing job ID: 10316201752
Job result: SUCCESS

@sebastianczech sebastianczech changed the title feat(MAJOR): Refactor module vpc, remove module subnet_set feat(MAJOR): Refactor module vpc, remove module subnet_set Aug 13, 2024
@sebastianczech
Copy link
Contributor Author

sebastianczech commented Aug 14, 2024

/plan paths="examples/centralized_design examples/centralized_design_autoscale examples/combined_design examples/combined_design_autoscale examples/isolated_design examples/isolated_design_autoscale examples/panorama_standalone examples/vmseries_standalone examples/cloudngfw_combined_design examples/cloudngfw_isolated_design"

Testing job ID: 10387029860
Job result: SUCCESS

modules/vpc/main.tf Outdated Show resolved Hide resolved
modules/vpc/main.tf Outdated Show resolved Hide resolved
modules/vpc/main.tf Outdated Show resolved Hide resolved
modules/vpc/main.tf Outdated Show resolved Hide resolved
modules/vpc/variables.tf Outdated Show resolved Hide resolved
@sebastianczech
Copy link
Contributor Author

sebastianczech commented Aug 27, 2024

/plan paths="examples/centralized_design examples/centralized_design_autoscale examples/combined_design examples/combined_design_autoscale examples/isolated_design examples/isolated_design_autoscale examples/panorama_standalone examples/vmseries_standalone examples/cloudngfw_combined_design examples/cloudngfw_isolated_design"

Testing job ID: 10579837805
Job result: SUCCESS

@migara migara merged commit 1c4112b into rc Aug 29, 2024
@migara migara deleted the refactor_vpc_subnet branch August 29, 2024 09:11
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.

Refactor subnet_set and vpc modules
3 participants