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
4 changes: 2 additions & 2 deletions .github/workflows/go-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ on:
pull_request:
paths:
- "cmd/lambda/**"
- ".github/workflows/go-tests.yml"
push:
branches: [main]
paths:
- "cmd/lambda/**"
- ".github/workflows/go-tests.yml"

permissions:
contents: read

jobs:
go-test:
# Skip for release-please PRs (skipped jobs report as "success" for required checks)
if: github.event_name == 'push' || !startsWith(github.head_ref, 'release-please--')
runs-on: ubuntu-latest
defaults:
run:
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ permissions:

jobs:
integration-test:
# Skip for release-please PRs; only run on label or manual dispatch
if: >-
!startsWith(github.head_ref || '', 'release-please--') &&
(github.event_name == 'workflow_dispatch' ||
github.event.label.name == 'integration-test')
github.event_name == 'workflow_dispatch' ||
github.event.label.name == 'integration-test'
runs-on: ubuntu-latest
timeout-minutes: 15
environment: integration
Expand Down
9 changes: 0 additions & 9 deletions .github/workflows/precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,12 @@ name: Pre-commit

on:
pull_request:
push:
branches: [main]
paths:
- "*.tf"
- "cmd/lambda/**"
- ".pre-commit-config.yaml"
- ".terraform-docs.yml"

permissions:
contents: read

jobs:
precommit:
# Skip for release-please PRs (skipped jobs report as "success" for required checks)
if: github.event_name == 'push' || !startsWith(github.head_ref, 'release-please--')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# nat-zero

[![Go Tests](https://github.com/MachineDotDev/nat-zero/actions/workflows/go-tests.yml/badge.svg?branch=main)](https://github.com/MachineDotDev/nat-zero/actions/workflows/go-tests.yml)

**Scale-to-zero NAT instances for AWS.** Stop paying for NAT when nothing is running.

nat-zero is a Terraform module that replaces always-on NAT with on-demand NAT instances. When a workload launches in a private subnet, a NAT instance starts automatically. When the last workload stops, the NAT shuts down and its Elastic IP is released. Idle cost: ~$0.80/month per AZ.
Expand Down
Loading