Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Terraform

on:
pull_request:
push:
branches:
- main

jobs:
validate:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ matrix.path }}
strategy:
matrix:
path: [".", "examples/nat-gateway"]
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0

- uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2

- run: terraform fmt -check -recursive
- run: terraform init -backend=false
- run: terraform validate
1 change: 1 addition & 0 deletions examples/nat-gateway/dummy.pub
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILMZ+zJ1L8a7gYJb2dsFmEDxcRXgV3Tqj5WoAB4nZ9rb dummy@example.com
4 changes: 2 additions & 2 deletions examples/nat-gateway/main.tf
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Change these to match your environment
locals {
location = "East US"
admin_ssh_key = file("~/.ssh/id_rsa.azure.pub")
admin_ssh_key = file("./dummy.pub")
firezone_token = "YOUR_FIREZONE_TOKEN"
}

module "gateway" {
source = "firezone/gateway/azurerm"
source = "../../" # Replace with `firezone/gateway/azurerm`

###################
# Required inputs #
Expand Down