Skip to content

Commit

Permalink
Update main.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
georgepstaylor committed Mar 13, 2024
1 parent 4242669 commit 20cda60
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions container/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
locals {
container_definition = jsonencode({
container_definition = {
name = var.name,
image = var.image,
portMappings = var.port_mappings,
Expand All @@ -10,5 +10,7 @@ locals {
logConfiguration = var.log_configuration,
secrets = var.secrets,
environment = var.environment
})
}
container_definition_json = jsonencode(local.container_definition)
container_definition_list = jsonencode([local.container_definition])
}

0 comments on commit 20cda60

Please sign in to comment.