Don't tag shared VPCs

Fix #4265
This commit is contained in:
Justin Santa Barbara 2018-03-18 15:03:16 -04:00
parent 98ba08f496
commit 7f855b28c7
1 changed files with 6 additions and 2 deletions

View File

@ -44,13 +44,17 @@ func (b *NetworkModelBuilder) Build(c *fi.ModelBuilderContext) error {
// VPC that holds everything for the cluster
{
vpcTags := tags
if sharedVPC {
// We don't tag a shared VPC - we can identify it by its ID anyway. Issue #4265
vpcTags = nil
}
t := &awstasks.VPC{
Name: s(vpcName),
Lifecycle: b.Lifecycle,
Shared: fi.Bool(sharedVPC),
EnableDNSSupport: fi.Bool(true),
Tags: tags,
Tags: vpcTags,
}
if sharedVPC && b.IsKubernetesGTE("1.5") {