@@ -193,31 +193,11 @@ output "igw_id" {
193193 value = " ${ element (concat (aws_internet_gateway. this . * . id , list (" " )), 0 )} "
194194}
195195
196- output "vpc_endpoint_s3_id" {
197- description = " The ID of VPC endpoint for S3"
198- value = " ${ element (concat (aws_vpc_endpoint. s3 . * . id , list (" " )), 0 )} "
199- }
200-
201- output "vpc_endpoint_s3_pl_id" {
202- description = " The prefix list for the S3 VPC endpoint."
203- value = " ${ element (concat (aws_vpc_endpoint. s3 . * . prefix_list_id , list (" " )), 0 )} "
204- }
205-
206- output "vpc_endpoint_dynamodb_id" {
207- description = " The ID of VPC endpoint for DynamoDB"
208- value = " ${ element (concat (aws_vpc_endpoint. dynamodb . * . id , list (" " )), 0 )} "
209- }
210-
211196output "vgw_id" {
212197 description = " The ID of the VPN Gateway"
213198 value = " ${ element (concat (aws_vpn_gateway. this . * . id , aws_vpn_gateway_attachment. this . * . vpn_gateway_id , list (" " )), 0 )} "
214199}
215200
216- output "vpc_endpoint_dynamodb_pl_id" {
217- description = " The prefix list for the DynamoDB VPC endpoint."
218- value = " ${ element (concat (aws_vpc_endpoint. dynamodb . * . prefix_list_id , list (" " )), 0 )} "
219- }
220-
221201output "default_vpc_id" {
222202 description = " The ID of the VPC"
223203 value = " ${ element (concat (aws_default_vpc. this . * . id , list (" " )), 0 )} "
@@ -278,3 +258,59 @@ output "default_vpc_main_route_table_id" {
278258// value = "${element(concat(aws_default_vpc.this.*.ipv6_cidr_block, list("")), 0)}"
279259// }
280260
261+ # VPC Endpoints
262+ output "vpc_endpoint_s3_id" {
263+ description = " The ID of VPC endpoint for S3"
264+ value = " ${ element (concat (aws_vpc_endpoint. s3 . * . id , list (" " )), 0 )} "
265+ }
266+
267+ output "vpc_endpoint_s3_pl_id" {
268+ description = " The prefix list for the S3 VPC endpoint."
269+ value = " ${ element (concat (aws_vpc_endpoint. s3 . * . prefix_list_id , list (" " )), 0 )} "
270+ }
271+
272+ output "vpc_endpoint_dynamodb_id" {
273+ description = " The ID of VPC endpoint for DynamoDB"
274+ value = " ${ element (concat (aws_vpc_endpoint. dynamodb . * . id , list (" " )), 0 )} "
275+ }
276+
277+ output "vpc_endpoint_dynamodb_pl_id" {
278+ description = " The prefix list for the DynamoDB VPC endpoint."
279+ value = " ${ element (concat (aws_vpc_endpoint. dynamodb . * . prefix_list_id , list (" " )), 0 )} "
280+ }
281+
282+ output "vpc_endpoint_ssm_id" {
283+ description = " The ID of VPC endpoint for SSM"
284+ value = " ${ element (concat (aws_vpc_endpoint. ssm . * . id , list (" " )), 0 )} "
285+ }
286+
287+ output "vpc_endpoint_ssm_network_interface_ids" {
288+ description = " One or more network interfaces for the VPC Endpoint for SSM."
289+ value = " ${ flatten (aws_vpc_endpoint. ssm . * . network_interface_ids )} "
290+ }
291+
292+ output "vpc_endpoint_ssm_dns_entry" {
293+ description = " The DNS entries for the VPC Endpoint for SSM."
294+ value = " ${ flatten (aws_vpc_endpoint. ssm . * . dns_entry )} "
295+ }
296+
297+ output "vpc_endpoint_ec2_id" {
298+ description = " The ID of VPC endpoint for EC2"
299+ value = " ${ element (concat (aws_vpc_endpoint. ec2 . * . id , list (" " )), 0 )} "
300+ }
301+
302+ output "vpc_endpoint_ec2_network_interface_ids" {
303+ description = " One or more network interfaces for the VPC Endpoint for EC2"
304+ value = " ${ flatten (aws_vpc_endpoint. ec2 . * . network_interface_ids )} "
305+ }
306+
307+ output "vpc_endpoint_ec2_dns_entry" {
308+ description = " The DNS entries for the VPC Endpoint for EC2."
309+ value = " ${ flatten (aws_vpc_endpoint. ec2 . * . dns_entry )} "
310+ }
311+
312+ # Static values (arguments)
313+ output "azs" {
314+ description = " A list of availability zones specified as argument to this module"
315+ value = " ${ var . azs } "
316+ }
0 commit comments