Skip to content

Commit

Permalink
feat: add map_public_ip_on_launch
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanoolala committed Oct 13, 2021
1 parent 650d25f commit 1ca8869
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ module "vpc" {
enable_dns_hostnames = true

# others
# tags = merge(var.tags, var.folder, local.vpc_tags)
tags = merge(var.tags, local.vpc_tags)
map_public_ip_on_launch = var.map_public_ip_on_launch
tags = merge(var.tags, local.vpc_tags)
}

#######################
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -204,3 +204,9 @@ variable "ssm_endpoint_security_group_ids" {
type = list(string)
default = []
}

variable "map_public_ip_on_launch" {
description = "Should be false if you do not want to auto-assign public IP on launch"
type = bool
default = true
}

0 comments on commit 1ca8869

Please sign in to comment.