Skip to content

Commit

Permalink
require http tokens, make db non-public
Browse files Browse the repository at this point in the history
  • Loading branch information
roncitrus committed Mar 27, 2024
1 parent 9799ca6 commit 21d3d90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion terraform/environments/cdpt-ifs/database.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ resource "aws_db_instance" "database" {
snapshot_identifier = local.application_data.accounts[local.environment].db_snapshot_identifier
db_subnet_group_name = aws_db_subnet_group.db.id
final_snapshot_identifier = "final-snapshot-${formatdate("YYYYMMDDhhmmss", timestamp())}"
publicly_accessible = true
publicly_accessible = false
}

resource "aws_db_instance_role_association" "database" {
Expand Down
2 changes: 1 addition & 1 deletion terraform/environments/cdpt-ifs/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ resource "aws_launch_template" "ec2-launch-template" {

metadata_options {
http_endpoint = "enabled"
http_tokens = "optional"
http_tokens = "required"
}

iam_instance_profile {
Expand Down

0 comments on commit 21d3d90

Please sign in to comment.