Skip to content

Commit

Permalink
ignore changes to tags
Browse files Browse the repository at this point in the history
as k8s adds tags to some resources
  • Loading branch information
Daniel Ciaglia committed Aug 28, 2019
1 parent 40821bb commit c13ddd5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ resource "aws_vpc" "this" {
var.tags,
var.vpc_tags,
)

lifecycle {
ignore_changes = [
tags,
]
}
}

resource "aws_vpc_ipv4_cidr_block_association" "this" {
Expand Down Expand Up @@ -289,6 +295,12 @@ resource "aws_subnet" "private" {
var.tags,
var.private_subnet_tags,
)

lifecycle {
ignore_changes = [
tags,
]
}
}

##################
Expand Down

0 comments on commit c13ddd5

Please sign in to comment.