From 62b5c4d31aad564f75e35e2f82f60c7870b10ab8 Mon Sep 17 00:00:00 2001 From: janvt Date: Mon, 17 Jul 2023 20:02:25 +0200 Subject: [PATCH 1/2] add container override to basic example --- examples/basic-example/main.tf | 4 +++- examples/basic-example/variables.tf | 15 ++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/examples/basic-example/main.tf b/examples/basic-example/main.tf index fe065f0..05ee064 100644 --- a/examples/basic-example/main.tf +++ b/examples/basic-example/main.tf @@ -7,5 +7,7 @@ module "basic-example" { vpc_private_subnets = var.vpc_private_subnets vpc_public_subnets = var.vpc_public_subnets - container_port = var.container_port + container_port = var.container_port + container_name = var.container_name + container_image = var.container_image } diff --git a/examples/basic-example/variables.tf b/examples/basic-example/variables.tf index a81a82f..940c30a 100644 --- a/examples/basic-example/variables.tf +++ b/examples/basic-example/variables.tf @@ -18,8 +18,21 @@ variable "vpc_private_subnets" { type = list(string) } +variable "container_name" { + default = "nginx" + description = "Name of container to create task definition with." + type = string +} + +variable "container_image" { + default = "public.ecr.aws/docker/library/nginx:1.23-alpine" + description = "Image to create task definition with." + type = string +} + variable "container_port" { - description = "Port that the app container listens on." + default = 80 + description = "Port to create task definition with." type = number } From 3b19ecaeea3af234f9181be860ccc3817ecd6b4e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 17 Jul 2023 18:02:56 +0000 Subject: [PATCH 2/2] terraform-docs: automated action --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a9041da..ed66a00 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,9 @@ module "basic-example" { vpc_private_subnets = var.vpc_private_subnets vpc_public_subnets = var.vpc_public_subnets - container_port = var.container_port + container_port = var.container_port + container_name = var.container_name + container_image = var.container_image } ```