Skip to content

Commit c290261

Browse files
author
Aaron Steers
authored
AWS security harding, allow disabling internet gateway (#141)
* add bastion host source ip restrictions * rename: dev-box->bastion-host * allow disabling internet gateway * misc cleanup
1 parent aaa7358 commit c290261

File tree

47 files changed

+292
-511
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+292
-511
lines changed

Diff for: catalog/README.md

+22-20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: catalog/aws/bastion-host/main.tf

+10-9
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
/*
2-
* The `dev-box` catalog module deploys an ECS-backed container which can be used to remotely test
3-
* or develop using the native cloud environment. Applicable use cases include:
2+
* The `bastion-host` module deploys an ECS-backed container which can be used to remotely test
3+
* or develop using the native cloud environment.
44
*
5-
* * Debugging network firewall and routing rules
6-
* * Debugging components which can only be run from whitelisted IP ranges
7-
* * Offloading heavy processing from the developer's local laptop
8-
* * Mitigating network relability issues when working from WiFi or home networks
5+
* Applicable use cases include:
6+
*
7+
* - Debugging network firewall and routing rules
8+
* - Debugging components which can only be run from whitelisted IP ranges
9+
* - Offloading heavy processing from the developer's local laptop
10+
* - Mitigating network relability issues when working from WiFi or home networks
911
*
1012
*/
1113

12-
data "aws_availability_zones" "az_list" {}
13-
1414
locals {
1515
name_prefix = "${var.name_prefix}devbox-"
1616
# container_command = ()
@@ -40,8 +40,9 @@ module "ecs_bastion_task" {
4040
SSH_PUBLIC_KEY_BASE64 = local.ssh_public_key_base64
4141
})
4242
environment_secrets = var.secrets
43-
app_ports = ["22"]
43+
app_ports = []
4444
admin_ports = ["22"]
45+
admin_cidr = var.admin_cidr
4546
}
4647

4748
module "ecr_image" {

Diff for: catalog/aws/bastion-host/variables.tf

+5
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,8 @@ variable "aws_credentials_file" {
9090
description = "Path to the AWS credentials file, used to ensure that the correct credentials are used during upload of the ECR image."
9191
type = string
9292
}
93+
variable "admin_cidr" {
94+
description = "List of source IP CIDR blocks which should be allowed to connect to the bastion host."
95+
type = list(string)
96+
default = null
97+
}

Diff for: catalog/aws/data-lake-users/README.md

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: catalog/aws/data-lake/README.md

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: catalog/aws/dbt/README.md

+1-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: catalog/aws/dbt/main.tf

-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
*
55
*/
66

7-
data "aws_availability_zones" "az_list" {}
8-
data "aws_region" "current" {}
9-
107
locals {
118
name_prefix = "${var.name_prefix}DBT-"
129
admin_cidr = var.admin_cidr

Diff for: catalog/aws/dev-box/README.md

-166
This file was deleted.

Diff for: catalog/aws/dev-box/main.tf

-60
This file was deleted.

0 commit comments

Comments
 (0)