Skip to content

Commit

Permalink
[fix CI/CD pipeline]
Browse files Browse the repository at this point in the history
  • Loading branch information
alvo254 committed Jun 10, 2024
1 parent ae5afeb commit 785c4c8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ module "ecs" {
source = "./modules/ecs"
security_group = module.sg.security_group
pub_sub1 = module.vpc.pub_sub1
container_image = "fitnesshero"
}
2 changes: 1 addition & 1 deletion modules/ecs/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ resource "aws_ecs_task_definition" "cloudific" {
container_definitions = jsonencode([
{
name = "app"
image = "fitnesshero"
image = var.container_image
cpu = 256
memory = 512
essential = true
Expand Down
3 changes: 3 additions & 0 deletions modules/ecs/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ variable "security_group" {
type = string
}

variable "container_image" {
type = string
}
3 changes: 3 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
variable "container_image" {
type = string
}

0 comments on commit 785c4c8

Please sign in to comment.