Skip to content

Commit

Permalink
Merge pull request #11 from geekcell/feat/container-override
Browse files Browse the repository at this point in the history
feat: add container override to basic example
  • Loading branch information
janvt authored Jul 17, 2023
2 parents 51737d6 + 3b19eca commit 6be6227
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
```
<!-- END_TF_DOCS -->
4 changes: 3 additions & 1 deletion examples/basic-example/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
15 changes: 14 additions & 1 deletion examples/basic-example/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 6be6227

Please sign in to comment.