Skip to content

Commit

Permalink
Chores: unique name for instance profile in both environments
Browse files Browse the repository at this point in the history
  • Loading branch information
IrezD committed Jan 8, 2024
1 parent a39288b commit cf3b220
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion terraform/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ resource "aws_ecs_task_definition" "task_definition" {
"name": "${var.env}_FastAPI_image",
"image": "${aws_ecrpublic_repository.fastapi-ecr-public.repository_uri}:${var.image_tag}",
"cpu": 256,
"memory": 512,
"memory": 256,
"essential": true,
"portMappings": [
{
Expand Down
2 changes: 1 addition & 1 deletion terraform/iam_role.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ data "aws_iam_role" "ecs_role" {

resource "aws_iam_instance_profile" "instance_profile" {
role = data.aws_iam_role.ecs_role.id
name = "InstanceRoleForECS"
name = "InstanceRoleForECS_${var.env}"
}

0 comments on commit cf3b220

Please sign in to comment.