cds-snc / cds-snc/terraform-modules

Add alarms for NAT Gateway when BytesOutToDestination is large

Open
#355 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HCL
Stars
20
Forks
8
Avg merge
2d 21h
Merged PRs (30d)
10

Description

A legitimate attack vector consists of causing our applications to produce large payload responses that generate egress charges. Currently NAT Gateways in ca-central charge $0.05 per GB egressed. 1TB costs $50. Constantly generating that much traffic would accumulate costs over time. A simple solution is to package the VPC module with an alarm that measures the total BytesOutToDestination for the NAT in a 24 hour period and alerts if it goes over a reasonable amount (ex. 1 TB).

Contributor guide

Open the contributing guide

Research direction

Locate the VPC module and its NAT Gateway resources, then review how existing alarms or metrics are configured. Determine how to measure total BytesOutToDestination over 24 hours and define the requested threshold; this is done when the module alerts after the specified egress amount is exceeded.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, terraform
Domain
cloud, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.