Skip to content

Commit 35e8a88

Browse files
authored
adds cluster tagging (#24)
1 parent 2b6d9f5 commit 35e8a88

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

env/dev/cicd.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,4 @@ output "cicd_keys" {
7878
# The URL for the docker image repo in ECR
7979
output "docker_registry" {
8080
value = "${data.aws_ecr_repository.ecr.repository_url}"
81-
}
81+
}

env/dev/ecs.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ variable "ecs_autoscale_max_instances" {
3838

3939
resource "aws_ecs_cluster" "app" {
4040
name = "${var.app}-${var.environment}"
41+
tags = "${var.tags}"
4142
}
4243

4344
# The default docker image to deploy with the infrastructure.

env/dev/lb.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,4 @@ POLICY
127127
# The load balancer DNS name
128128
output "lb_dns" {
129129
value = "${aws_alb.main.dns_name}"
130-
}
130+
}

env/dev/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ terraform {
1313
variable "aws_profile" {}
1414

1515
provider "aws" {
16+
version = ">= 1.46.0"
1617
region = "${var.region}"
1718
profile = "${var.aws_profile}"
1819
}

0 commit comments

Comments
 (0)