Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
DrFaust92 committed Apr 7, 2020
1 parent 3f54291 commit a5ae37b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 62 deletions.
15 changes: 0 additions & 15 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -1123,21 +1123,6 @@ output "vpc_endpoint_auto_scaling_plans_dns_entry" {
value = flatten(aws_vpc_endpoint.auto_scaling_plans.*.dns_entry)
}

output "vpc_endpoint_application_auto_scaling_id" {
description = "The ID of VPC endpoint for Application Auto Scaling"
value = concat(aws_vpc_endpoint.application_auto_scaling.*.id, [""])[0]
}

output "vpc_endpoint_application_auto_scaling_network_interface_ids" {
description = "One or more network interfaces for the VPC Endpoint for Application Auto Scaling."
value = flatten(aws_vpc_endpoint.application_auto_scaling.*.network_interface_ids)
}

output "vpc_endpoint_application_auto_scaling_dns_entry" {
description = "The DNS entries for the VPC Endpoint for Application Auto Scaling."
value = flatten(aws_vpc_endpoint.application_auto_scaling.*.dns_entry)
}

output "vpc_endpoint_ebs_id" {
description = "The ID of VPC endpoint for EBS"
value = concat(aws_vpc_endpoint.ebs.*.id, [""])[0]
Expand Down
24 changes: 0 additions & 24 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -1323,30 +1323,6 @@ variable "cloud_directory_endpoint_private_dns_enabled" {
default = false
}

variable "enable_application_auto_scaling_endpoint" {
description = "Should be true if you want to provision an Application Auto Scaling endpoint to the VPC"
type = bool
default = false
}

variable "application_auto_scaling_endpoint_security_group_ids" {
description = "The ID of one or more security groups to associate with the network interface for Application Auto Scaling endpoint"
type = list(string)
default = []
}

variable "application_auto_scaling_endpoint_subnet_ids" {
description = "The ID of one or more subnets in which to create a network interface for Application Auto Scaling endpoint. Only a single subnet within an AZ is supported. Ifomitted, private subnets will be used."
type = list(string)
default = []
}

variable "application_auto_scaling_endpoint_private_dns_enabled" {
description = "Whether or not to associate a private hosted zone with the specified VPC for Application Auto Scaling endpoint"
type = bool
default = false
}

variable "enable_auto_scaling_plans_endpoint" {
description = "Should be true if you want to provision an Auto Scaling Plans endpoint to the VPC"
type = bool
Expand Down
23 changes: 0 additions & 23 deletions vpc-endpoints.tf
Original file line number Diff line number Diff line change
Expand Up @@ -1027,29 +1027,6 @@ resource "aws_vpc_endpoint" "cloud_directory" {
tags = local.vpce_tags
}

#######################
# VPC Endpoint for Application Auto Scaling
#######################
data "aws_vpc_endpoint_service" "application_auto_scaling" {
count = var.create_vpc && var.enable_application_auto_scaling_endpoint ? 1 : 0

service = "application-autoscaling"
}

resource "aws_vpc_endpoint" "application_auto_scaling" {
count = var.create_vpc && var.enable_application_auto_scaling_endpoint ? 1 : 0

vpc_id = local.vpc_id
service_name = data.aws_vpc_endpoint_service.application_auto_scaling[0].service_name
vpc_endpoint_type = "Interface"

security_group_ids = var.application_auto_scaling_endpoint_security_group_ids
subnet_ids = coalescelist(var.application_auto_scaling_endpoint_subnet_ids, aws_subnet.private.*.id)
private_dns_enabled = var.application_auto_scaling_endpoint_private_dns_enabled

tags = local.vpce_tags
}

#######################
# VPC Endpoint for Auto Scaling Plans
#######################
Expand Down

0 comments on commit a5ae37b

Please sign in to comment.