Commit 3c7a1036 authored by Ilia Lazebnik's avatar Ilia Lazebnik Committed by Anton Babenko

Added tags to VPC Endpoints (#292)

* Add tags to VPC Endpoints

* Update variables.tf

add new line between variables

* centralize vpce tag param

* fix s3 tags

* Updated README

* Updated README

* Updated README
parent b38034a0
...@@ -437,6 +437,7 @@ Sometimes it is handy to have public access to Redshift clusters (for example if ...@@ -437,6 +437,7 @@ Sometimes it is handy to have public access to Redshift clusters (for example if
| transferserver\_endpoint\_private\_dns\_enabled | Whether or not to associate a private hosted zone with the specified VPC for Transfer Server endpoint | bool | `"false"` | no | | transferserver\_endpoint\_private\_dns\_enabled | Whether or not to associate a private hosted zone with the specified VPC for Transfer Server endpoint | bool | `"false"` | no |
| transferserver\_endpoint\_security\_group\_ids | The ID of one or more security groups to associate with the network interface for Transfer Server endpoint | list(string) | `[]` | no | | transferserver\_endpoint\_security\_group\_ids | The ID of one or more security groups to associate with the network interface for Transfer Server endpoint | list(string) | `[]` | no |
| transferserver\_endpoint\_subnet\_ids | The ID of one or more subnets in which to create a network interface for Transfer Server endpoint. Only a single subnet within an AZ is supported. If omitted, private subnets will be used. | list(string) | `[]` | no | | transferserver\_endpoint\_subnet\_ids | The ID of one or more subnets in which to create a network interface for Transfer Server endpoint. Only a single subnet within an AZ is supported. If omitted, private subnets will be used. | list(string) | `[]` | no |
| vpc\_endpoint\_tags | Additional tags for the VPC Endpoints | map(string) | `{}` | no |
| vpc\_tags | Additional tags for the VPC | map(string) | `{}` | no | | vpc\_tags | Additional tags for the VPC | map(string) | `{}` | no |
| vpn\_gateway\_id | ID of VPN Gateway to attach to the VPC | string | `""` | no | | vpn\_gateway\_id | ID of VPN Gateway to attach to the VPC | string | `""` | no |
| vpn\_gateway\_tags | Additional tags for the VPN gateway | map(string) | `{}` | no | | vpn\_gateway\_tags | Additional tags for the VPN gateway | map(string) | `{}` | no |
......
...@@ -97,5 +97,10 @@ module "vpc" { ...@@ -97,5 +97,10 @@ module "vpc" {
Environment = "staging" Environment = "staging"
Name = "complete" Name = "complete"
} }
vpc_endpoint_tags = {
Project = "Secret"
Endpoint = "true"
}
} }
...@@ -16,6 +16,11 @@ locals { ...@@ -16,6 +16,11 @@ locals {
), ),
0, 0,
) )
vpce_tags = merge(
var.tags,
var.vpc_endpoint_tags,
)
} }
###### ######
......
...@@ -1177,6 +1177,12 @@ variable "vpn_gateway_tags" { ...@@ -1177,6 +1177,12 @@ variable "vpn_gateway_tags" {
default = {} default = {}
} }
variable "vpc_endpoint_tags" {
description = "Additional tags for the VPC Endpoints"
type = map(string)
default = {}
}
variable "enable_dhcp_options" { variable "enable_dhcp_options" {
description = "Should be true if you want to specify a DHCP options set with a custom domain name, DNS servers, NTP servers, netbios servers, and/or netbios server type" description = "Should be true if you want to specify a DHCP options set with a custom domain name, DNS servers, NTP servers, netbios servers, and/or netbios server type"
type = bool type = bool
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment