We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3f05f51 + e8a62c4 commit 50cf200Copy full SHA for 50cf200
2 files changed
infrastructure/modules/dynamodb/dynamodb.tf
@@ -2,6 +2,7 @@ resource "aws_dynamodb_table" "dynamodb_table" {
2
name = "${terraform.workspace == "default" ? "" : "${terraform.workspace}-"}${var.project_name}-${var.environment}-${var.table_name_suffix}"
3
billing_mode = "PAY_PER_REQUEST"
4
hash_key = var.partition_key
5
+ deletion_protection_enabled = var.environment == "prod"
6
7
attribute {
8
name = var.partition_key
infrastructure/stacks/networking/vpc.tf
@@ -21,3 +21,8 @@ resource "aws_default_security_group" "default_vpc" {
21
}
22
)
23
24
+
25
+# EC2.172 - block internet gateway access at the account level
26
+resource "aws_vpc_block_public_access_options" "default_vpc" {
27
+ internet_gateway_block_mode = "block-bidirectional"
28
+}
0 commit comments