Skip to content

Commit

Permalink
Merge pull request #13 from rgangaderan/feat__rds-instance
Browse files Browse the repository at this point in the history
moved image variable from ECS configurations
  • Loading branch information
rgangaderan authored Sep 4, 2022
2 parents 89d4e4f + 3153a95 commit f4af679
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aws/ecs-service/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ resource "aws_ecs_task_definition" "task_df" {
[
{
"name": "${local.name_prefix}-container",
"image": "${var.ecs_configuration.general_configuration.image}",
"image": "${var.image}",
"logConfiguration": {
"logDriver": "awslogs",
"options": {
Expand Down
5 changes: 4 additions & 1 deletion aws/ecs-service/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ variable "ecs_configuration" {
general_configuration = object({
cpu = number
memory = number
image = string
desired_count = number
launch_type = string

Expand All @@ -30,6 +29,10 @@ variable "ecs_configuration" {
# description = "The environment variables to pass to the container. This is a list of maps"
# }

variable "image" {
type = string
description = "Container image to be added to taskdefiniton."
}

variable "stage" {
description = "The application deployment stage."
Expand Down

0 comments on commit f4af679

Please sign in to comment.