diff --git a/outputs.tf b/outputs.tf index c3dbb3199..6e8e75755 100644 --- a/outputs.tf +++ b/outputs.tf @@ -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] diff --git a/variables.tf b/variables.tf index 1cb09882d..295b83105 100644 --- a/variables.tf +++ b/variables.tf @@ -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 diff --git a/vpc-endpoints.tf b/vpc-endpoints.tf index e6924b7a3..fcb61f296 100644 --- a/vpc-endpoints.tf +++ b/vpc-endpoints.tf @@ -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 #######################