Skip to content

Commit

Permalink
[update]
Browse files Browse the repository at this point in the history
  • Loading branch information
alvo254 committed Jun 10, 2024
1 parent 1d24512 commit dce891f
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 25 deletions.
41 changes: 17 additions & 24 deletions modules/ecs/container_definitions.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,17 @@
{
"family": "app",
"networkMode": "awsvpc",
"requiresCompatibilities": ["FARGATE"],
"executionRoleArn": "arn:aws:iam::your_account_id:role/ecsExecRole",
"cpu": "256",
"memory": "512",
"containerDefinitions": [
{
"name": "app",
"image": "alvin254/fitnesshero",
"cpu": 256,
"memory": 512,
"essential": true,
"portMappings": [
{
"containerPort": 3000,
"hostPort": 3000,
"protocol": "tcp"
}
]
}
]
}
[
{
"name": "app",
"image": "alvin254/fitnesshero",
"cpu": 256,
"memory": 512,
"essential": true,
"portMappings": [
{
"containerPort": 3000,
"hostPort": 3000,
"protocol": "tcp"
}
]
}
]

27 changes: 26 additions & 1 deletion modules/ecs/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,29 @@ resource "aws_ecs_service" "app_service" {
security_groups = [var.security_group]
assign_public_ip = true
}
}
}

// {
// "family": "app",
// "networkMode": "awsvpc",
// "requiresCompatibilities": ["FARGATE"],
// "executionRoleArn": "arn:aws:iam::your_account_id:role/ecsExecRole",
// "cpu": "256",
// "memory": "512",
// "containerDefinitions": [
// {
// "name": "app",
// "image": "alvin254/fitnesshero",
// "cpu": 256,
// "memory": 512,
// "essential": true,
// "portMappings": [
// {
// "containerPort": 3000,
// "hostPort": 3000,
// "protocol": "tcp"
// }
// ]
// }
// ]
// }

0 comments on commit dce891f

Please sign in to comment.