Skip to content

Commit

Permalink
Set file systems to be read only, rely on mounted volume for any writ…
Browse files Browse the repository at this point in the history
…e needs
  • Loading branch information
A-Ashiq committed Dec 16, 2024
1 parent 8fd17b8 commit 478cee6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion terraform/20-app/ecs.service.cms-admin.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module "ecs_service_cms_admin" {
cpu = local.use_prod_sizing ? 2048 : 512
memory = local.use_prod_sizing ? 4096 : 1024
essential = true
readonly_root_filesystem = false
readonly_root_filesystem = true
image = module.ecr_back_end_ecs.image_uri
mount_points = [
{
Expand Down
2 changes: 1 addition & 1 deletion terraform/20-app/ecs.service.feedback-api.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module "ecs_service_feedback_api" {
cpu = local.use_prod_sizing ? 1024 : 512
memory = local.use_prod_sizing ? 2048 : 1024
essential = true
readonly_root_filesystem = false
readonly_root_filesystem = true
image = module.ecr_back_end_ecs.image_uri
mount_points = [
{
Expand Down
2 changes: 1 addition & 1 deletion terraform/20-app/ecs.service.private-api.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module "ecs_service_private_api" {
cpu = local.use_prod_sizing ? 2048 : 512
memory = local.use_prod_sizing ? 4096 : 1024
essential = true
readonly_root_filesystem = false
readonly_root_filesystem = true
image = module.ecr_back_end_ecs.image_uri
mount_points = [
{
Expand Down

0 comments on commit 478cee6

Please sign in to comment.