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

Commit

Permalink
feat(example/combined_vmseries_and_autoscale): Additional tfvars for …
Browse files Browse the repository at this point in the history
…deployment without NAT Gateway (#302)

Co-authored-by: Migara Ekanayake <[email protected]>
  • Loading branch information
sebastianczech and migara authored Apr 13, 2023
1 parent 8b7cd8c commit 7b30afc
Show file tree
Hide file tree
Showing 4 changed files with 600 additions and 3 deletions.
7 changes: 6 additions & 1 deletion examples/combined_vmseries_and_autoscale/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ Code was prepared according to presented below diagram for *combined model*.

![](https://user-images.githubusercontent.com/9674179/230622195-dba54106-24be-42aa-bce8-411487d46528.png)

There are two use cases supported in this example. You can select your preferred use case by using the applicable `tfvar` file for your use case.

- `example-natgw-lambda-vpc.tfvars` - with NAT Gateway presented in topology, where NAT Gateway is used for Lambda working in VPC for autoscaling group and for VM-Series instances, which for untrust interfaces don't have public IP
- `example-no-natgw-lambda-no-vpc.tfvars` - without NAT Gateway, where Lambda is not working in VPC and each VM-Series instance in autoscaling group has untrust interface with public IP

## Prerequisites

1. Deploy Panorama e.g. by using [standalone Panorama example](../../examples/standalone_panorama)
Expand Down Expand Up @@ -53,7 +58,7 @@ Below there is shown example of VR configuration with static routes and path mon

## Usage

1. Copy `example.tfvars` into `terraform.tfvars`
1. Copy `example-no-natgw-lambda-no-vpc.tfvars` or `example-natgw-lambda-vpc.tfvars` into `terraform.tfvars`
2. Review `terraform.tfvars` file, especially with lines commented by ` # TODO: update here`
3. Initialize Terraform: `terraform init`
5. Prepare plan: `terraform plan`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ vpcs = {
### TRANSIT GATEWAY
tgw = {
create = true
id = "tgw-0336ea16d20d6761c"
id = null
name = "tgw"
asn = "64512"
route_tables = {
Expand Down
Loading

0 comments on commit 7b30afc

Please sign in to comment.