Skip to content

Commit

Permalink
[container_definiations.yaml update]
Browse files Browse the repository at this point in the history
  • Loading branch information
alvo254 committed Jun 10, 2024
1 parent 184d5d5 commit c866c38
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 17 deletions.
40 changes: 24 additions & 16 deletions modules/ecs/container_definitions.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
[
{
"name": "app",
"image": "fitnesshero",
"cpu": 256,
"memory": 512,
"essential": true,
"portMappings": [
{
"containerPort": 3000,
"hostPort": 3000,
"protocol": "tcp"
}
]
}
]
{
"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"
}
]
}
]
}
3 changes: 2 additions & 1 deletion modules/ecs/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
output "ecs_task_definition_arn" {
value = aws_ecs_task_definition.cloudific.arn
description = "The ARN of the ECS task definition"
}
}

0 comments on commit c866c38

Please sign in to comment.