Skip to content

Commit

Permalink
Fix Terraform 0.12 update
Browse files Browse the repository at this point in the history
  • Loading branch information
scholzj committed Jul 27, 2019
1 parent be2fd95 commit 3b822f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions main.tf
Expand Up @@ -389,8 +389,8 @@ resource "aws_autoscaling_group" "nodes" {
desired_capacity = var.min_worker_count
launch_configuration = aws_launch_configuration.nodes.name

tags = merge(
{
tags = concat(
[{
key = "kubernetes.io/cluster/${var.cluster_name}"
value = "owned"
propagate_at_launch = true
Expand All @@ -399,7 +399,7 @@ resource "aws_autoscaling_group" "nodes" {
key = "Name"
value = "${var.cluster_name}-node"
propagate_at_launch = true
},
}],
var.tags2,
)

Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Expand Up @@ -14,7 +14,7 @@ variable "tags" {

variable "tags2" {
description = "Tags in format used for the AWS Autoscaling Group"
type = list(string)
type = list(object({key = string, value = string, propagate_at_launch = bool}))
}

variable "addons" {
Expand Down

0 comments on commit 3b822f4

Please sign in to comment.