Skip to content

Commit

Permalink
uncomment deletion_protection_enabled, add Version to ingestion_bucke… (
Browse files Browse the repository at this point in the history
#209)

* uncomment deletion_protection_enabled, add Version to ingestion_bucket_policy

* run terraform fmt
  • Loading branch information
joefong-nhs authored Jul 24, 2024
1 parent f00fffc commit dad9d96
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions terraform/dynamodb.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
resource "aws_dynamodb_table" "suspensions" {
name = "${var.environment}-${var.component_name}-dynamodb"
billing_mode = "PAY_PER_REQUEST"
hash_key = "nhs_number"
# deletion_protection_enabled = true
name = "${var.environment}-${var.component_name}-dynamodb"
billing_mode = "PAY_PER_REQUEST"
hash_key = "nhs_number"
deletion_protection_enabled = true

server_side_encryption {
enabled = true
Expand Down
2 changes: 1 addition & 1 deletion terraform/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
provider "aws" {
region = var.region
region = var.region
}

terraform {
Expand Down
1 change: 1 addition & 0 deletions terraform/modules/suspension-service/s3.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ resource "aws_s3_bucket_public_access_block" "ingestion_bucket" {
resource "aws_s3_bucket_policy" "ingestion_bucket_policy" {
bucket = aws_s3_bucket.ingestion_bucket.id
policy = jsonencode({
"Version": "2008-10-17",
"Statement" : [
{
Effect : "Deny",
Expand Down

0 comments on commit dad9d96

Please sign in to comment.