Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

Commit

Permalink
Use 'env_vars' instead of 'config_vars'
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwlchan committed Dec 13, 2017
1 parent 6e74693 commit 0edf088
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
5 changes: 1 addition & 4 deletions service/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ module "my_service" {
cluster_id = "${var.cluster_id}"
vpc_id = "${var.vpc_id}"
infra_bucket = "${var.infra_bucket}"
config_key = "${var.config_key}"
config_vars = {
env_vars = {
IP_ADDRESS = "192.0.2.6"
HOST = "localhost"
...
Expand Down
2 changes: 1 addition & 1 deletion service/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module "task" {
NGINX_PORT = "${var.primary_container_port}"
}

config_vars = "${var.config_vars}"
config_vars = "${var.env_vars}"

log_group_name_prefix = "${var.log_group_name_prefix}"
}
2 changes: 1 addition & 1 deletion service/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ variable "container_path" {
default = "/tmp"
}

variable "config_vars" {
variable "env_vars" {
description = "Environment variables to pass to the container"
type = "map"
default = {}
Expand Down
2 changes: 1 addition & 1 deletion sqs_autoscaling_service/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module "service" {
deployment_minimum_healthy_percent = "0"
deployment_maximum_percent = "200"

config_vars = "${var.config_vars}"
env_vars = "${var.env_vars}"

loadbalancer_cloudwatch_id = "${var.alb_cloudwatch_id}"
server_error_alarm_topic_arn = "${var.alb_server_error_alarm_arn}"
Expand Down
2 changes: 1 addition & 1 deletion sqs_autoscaling_service/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ variable "memory" {
default = 1024
}

variable "config_vars" {
variable "env_vars" {
description = "Environment variables to pass to the container"
type = "map"
}
Expand Down

0 comments on commit 0edf088

Please sign in to comment.