This is a mirror of the official AWS VPC module from github. (Prevents failed clones happening frequently when using github).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1441 lines
50KB

  1. output "vpc_id" {
  2. description = "The ID of the VPC"
  3. value = concat(aws_vpc.this.*.id, [""])[0]
  4. }
  5. output "vpc_arn" {
  6. description = "The ARN of the VPC"
  7. value = concat(aws_vpc.this.*.arn, [""])[0]
  8. }
  9. output "vpc_cidr_block" {
  10. description = "The CIDR block of the VPC"
  11. value = concat(aws_vpc.this.*.cidr_block, [""])[0]
  12. }
  13. output "default_security_group_id" {
  14. description = "The ID of the security group created by default on VPC creation"
  15. value = concat(aws_vpc.this.*.default_security_group_id, [""])[0]
  16. }
  17. output "default_network_acl_id" {
  18. description = "The ID of the default network ACL"
  19. value = concat(aws_vpc.this.*.default_network_acl_id, [""])[0]
  20. }
  21. output "default_route_table_id" {
  22. description = "The ID of the default route table"
  23. value = concat(aws_vpc.this.*.default_route_table_id, [""])[0]
  24. }
  25. output "vpc_instance_tenancy" {
  26. description = "Tenancy of instances spin up within VPC"
  27. value = concat(aws_vpc.this.*.instance_tenancy, [""])[0]
  28. }
  29. output "vpc_enable_dns_support" {
  30. description = "Whether or not the VPC has DNS support"
  31. value = concat(aws_vpc.this.*.enable_dns_support, [""])[0]
  32. }
  33. output "vpc_enable_dns_hostnames" {
  34. description = "Whether or not the VPC has DNS hostname support"
  35. value = concat(aws_vpc.this.*.enable_dns_hostnames, [""])[0]
  36. }
  37. output "vpc_main_route_table_id" {
  38. description = "The ID of the main route table associated with this VPC"
  39. value = concat(aws_vpc.this.*.main_route_table_id, [""])[0]
  40. }
  41. output "vpc_ipv6_association_id" {
  42. description = "The association ID for the IPv6 CIDR block"
  43. value = concat(aws_vpc.this.*.ipv6_association_id, [""])[0]
  44. }
  45. output "vpc_ipv6_cidr_block" {
  46. description = "The IPv6 CIDR block"
  47. value = concat(aws_vpc.this.*.ipv6_cidr_block, [""])[0]
  48. }
  49. output "vpc_secondary_cidr_blocks" {
  50. description = "List of secondary CIDR blocks of the VPC"
  51. value = aws_vpc_ipv4_cidr_block_association.this.*.cidr_block
  52. }
  53. output "vpc_owner_id" {
  54. description = "The ID of the AWS account that owns the VPC"
  55. value = concat(aws_vpc.this.*.owner_id, [""])[0]
  56. }
  57. output "private_subnets" {
  58. description = "List of IDs of private subnets"
  59. value = aws_subnet.private.*.id
  60. }
  61. output "private_subnet_arns" {
  62. description = "List of ARNs of private subnets"
  63. value = aws_subnet.private.*.arn
  64. }
  65. output "private_subnets_cidr_blocks" {
  66. description = "List of cidr_blocks of private subnets"
  67. value = aws_subnet.private.*.cidr_block
  68. }
  69. output "private_subnets_ipv6_cidr_blocks" {
  70. description = "List of IPv6 cidr_blocks of private subnets in an IPv6 enabled VPC"
  71. value = aws_subnet.private.*.ipv6_cidr_block
  72. }
  73. output "public_subnets" {
  74. description = "List of IDs of public subnets"
  75. value = aws_subnet.public.*.id
  76. }
  77. output "public_subnet_arns" {
  78. description = "List of ARNs of public subnets"
  79. value = aws_subnet.public.*.arn
  80. }
  81. output "public_subnets_cidr_blocks" {
  82. description = "List of cidr_blocks of public subnets"
  83. value = aws_subnet.public.*.cidr_block
  84. }
  85. output "public_subnets_ipv6_cidr_blocks" {
  86. description = "List of IPv6 cidr_blocks of public subnets in an IPv6 enabled VPC"
  87. value = aws_subnet.public.*.ipv6_cidr_block
  88. }
  89. output "database_subnets" {
  90. description = "List of IDs of database subnets"
  91. value = aws_subnet.database.*.id
  92. }
  93. output "database_subnet_arns" {
  94. description = "List of ARNs of database subnets"
  95. value = aws_subnet.database.*.arn
  96. }
  97. output "database_subnets_cidr_blocks" {
  98. description = "List of cidr_blocks of database subnets"
  99. value = aws_subnet.database.*.cidr_block
  100. }
  101. output "database_subnets_ipv6_cidr_blocks" {
  102. description = "List of IPv6 cidr_blocks of database subnets in an IPv6 enabled VPC"
  103. value = aws_subnet.database.*.ipv6_cidr_block
  104. }
  105. output "database_subnet_group" {
  106. description = "ID of database subnet group"
  107. value = concat(aws_db_subnet_group.database.*.id, [""])[0]
  108. }
  109. output "redshift_subnets" {
  110. description = "List of IDs of redshift subnets"
  111. value = aws_subnet.redshift.*.id
  112. }
  113. output "redshift_subnet_arns" {
  114. description = "List of ARNs of redshift subnets"
  115. value = aws_subnet.redshift.*.arn
  116. }
  117. output "redshift_subnets_cidr_blocks" {
  118. description = "List of cidr_blocks of redshift subnets"
  119. value = aws_subnet.redshift.*.cidr_block
  120. }
  121. output "redshift_subnets_ipv6_cidr_blocks" {
  122. description = "List of IPv6 cidr_blocks of redshift subnets in an IPv6 enabled VPC"
  123. value = aws_subnet.redshift.*.ipv6_cidr_block
  124. }
  125. output "redshift_subnet_group" {
  126. description = "ID of redshift subnet group"
  127. value = concat(aws_redshift_subnet_group.redshift.*.id, [""])[0]
  128. }
  129. output "elasticache_subnets" {
  130. description = "List of IDs of elasticache subnets"
  131. value = aws_subnet.elasticache.*.id
  132. }
  133. output "elasticache_subnet_arns" {
  134. description = "List of ARNs of elasticache subnets"
  135. value = aws_subnet.elasticache.*.arn
  136. }
  137. output "elasticache_subnets_cidr_blocks" {
  138. description = "List of cidr_blocks of elasticache subnets"
  139. value = aws_subnet.elasticache.*.cidr_block
  140. }
  141. output "elasticache_subnets_ipv6_cidr_blocks" {
  142. description = "List of IPv6 cidr_blocks of elasticache subnets in an IPv6 enabled VPC"
  143. value = aws_subnet.elasticache.*.ipv6_cidr_block
  144. }
  145. output "intra_subnets" {
  146. description = "List of IDs of intra subnets"
  147. value = aws_subnet.intra.*.id
  148. }
  149. output "intra_subnet_arns" {
  150. description = "List of ARNs of intra subnets"
  151. value = aws_subnet.intra.*.arn
  152. }
  153. output "intra_subnets_cidr_blocks" {
  154. description = "List of cidr_blocks of intra subnets"
  155. value = aws_subnet.intra.*.cidr_block
  156. }
  157. output "intra_subnets_ipv6_cidr_blocks" {
  158. description = "List of IPv6 cidr_blocks of intra subnets in an IPv6 enabled VPC"
  159. value = aws_subnet.intra.*.ipv6_cidr_block
  160. }
  161. output "elasticache_subnet_group" {
  162. description = "ID of elasticache subnet group"
  163. value = concat(aws_elasticache_subnet_group.elasticache.*.id, [""])[0]
  164. }
  165. output "elasticache_subnet_group_name" {
  166. description = "Name of elasticache subnet group"
  167. value = concat(aws_elasticache_subnet_group.elasticache.*.name, [""])[0]
  168. }
  169. output "public_route_table_ids" {
  170. description = "List of IDs of public route tables"
  171. value = aws_route_table.public.*.id
  172. }
  173. output "private_route_table_ids" {
  174. description = "List of IDs of private route tables"
  175. value = aws_route_table.private.*.id
  176. }
  177. output "database_route_table_ids" {
  178. description = "List of IDs of database route tables"
  179. value = length(aws_route_table.database.*.id) > 0 ? aws_route_table.database.*.id : aws_route_table.private.*.id
  180. }
  181. output "redshift_route_table_ids" {
  182. description = "List of IDs of redshift route tables"
  183. value = length(aws_route_table.redshift.*.id) > 0 ? aws_route_table.redshift.*.id : aws_route_table.private.*.id
  184. }
  185. output "elasticache_route_table_ids" {
  186. description = "List of IDs of elasticache route tables"
  187. value = length(aws_route_table.elasticache.*.id) > 0 ? aws_route_table.elasticache.*.id : aws_route_table.private.*.id
  188. }
  189. output "intra_route_table_ids" {
  190. description = "List of IDs of intra route tables"
  191. value = aws_route_table.intra.*.id
  192. }
  193. output "public_internet_gateway_route_id" {
  194. description = "ID of the internet gateway route."
  195. value = concat(aws_route.public_internet_gateway.*.id, [""])[0]
  196. }
  197. output "public_internet_gateway_ipv6_route_id" {
  198. description = "ID of the IPv6 internet gateway route."
  199. value = concat(aws_route.public_internet_gateway_ipv6.*.id, [""])[0]
  200. }
  201. output "database_internet_gateway_route_id" {
  202. description = "ID of the database internet gateway route."
  203. value = concat(aws_route.database_internet_gateway.*.id, [""])[0]
  204. }
  205. output "database_nat_gateway_route_ids" {
  206. description = "List of IDs of the database nat gateway route."
  207. value = aws_route.database_nat_gateway.*.id
  208. }
  209. output "database_ipv6_egress_route_id" {
  210. description = "ID of the database IPv6 egress route."
  211. value = concat(aws_route.database_ipv6_egress.*.id, [""])[0]
  212. }
  213. output "private_nat_gateway_route_ids" {
  214. description = "List of IDs of the private nat gateway route."
  215. value = aws_route.private_nat_gateway.*.id
  216. }
  217. output "private_ipv6_egress_route_ids" {
  218. description = "List of IDs of the ipv6 egress route."
  219. value = aws_route.private_ipv6_egress.*.id
  220. }
  221. output "private_route_table_association_ids" {
  222. description = "List of IDs of the private route table association"
  223. value = aws_route_table_association.private.*.id
  224. }
  225. output "database_route_table_association_ids" {
  226. description = "List of IDs of the database route table association"
  227. value = aws_route_table_association.database.*.id
  228. }
  229. output "redshift_route_table_association_ids" {
  230. description = "List of IDs of the redshift route table association"
  231. value = aws_route_table_association.redshift.*.id
  232. }
  233. output "redshift_public_route_table_association_ids" {
  234. description = "List of IDs of the public redshidt route table association"
  235. value = aws_route_table_association.redshift_public.*.id
  236. }
  237. output "elasticache_route_table_association_ids" {
  238. description = "List of IDs of the elasticache route table association"
  239. value = aws_route_table_association.elasticache.*.id
  240. }
  241. output "intra_route_table_association_ids" {
  242. description = "List of IDs of the intra route table association"
  243. value = aws_route_table_association.intra.*.id
  244. }
  245. output "public_route_table_association_ids" {
  246. description = "List of IDs of the public route table association"
  247. value = aws_route_table_association.public.*.id
  248. }
  249. output "nat_ids" {
  250. description = "List of allocation ID of Elastic IPs created for AWS NAT Gateway"
  251. value = aws_eip.nat.*.id
  252. }
  253. output "nat_public_ips" {
  254. description = "List of public Elastic IPs created for AWS NAT Gateway"
  255. value = var.reuse_nat_ips ? var.external_nat_ips : aws_eip.nat.*.public_ip
  256. }
  257. output "natgw_ids" {
  258. description = "List of NAT Gateway IDs"
  259. value = aws_nat_gateway.this.*.id
  260. }
  261. output "igw_id" {
  262. description = "The ID of the Internet Gateway"
  263. value = concat(aws_internet_gateway.this.*.id, [""])[0]
  264. }
  265. output "igw_arn" {
  266. description = "The ARN of the Internet Gateway"
  267. value = concat(aws_internet_gateway.this.*.arn, [""])[0]
  268. }
  269. output "egress_only_internet_gateway_id" {
  270. description = "The ID of the egress only Internet Gateway"
  271. value = concat(aws_egress_only_internet_gateway.this.*.id, [""])[0]
  272. }
  273. output "cgw_ids" {
  274. description = "List of IDs of Customer Gateway"
  275. value = [for k, v in aws_customer_gateway.this : v.id]
  276. }
  277. output "cgw_arns" {
  278. description = "List of ARNs of Customer Gateway"
  279. value = [for k, v in aws_customer_gateway.this : v.arn]
  280. }
  281. output "this_customer_gateway" {
  282. description = "Map of Customer Gateway attributes"
  283. value = aws_customer_gateway.this
  284. }
  285. output "vgw_id" {
  286. description = "The ID of the VPN Gateway"
  287. value = concat(
  288. aws_vpn_gateway.this.*.id,
  289. aws_vpn_gateway_attachment.this.*.vpn_gateway_id,
  290. [""],
  291. )[0]
  292. }
  293. output "vgw_arn" {
  294. description = "The ARN of the VPN Gateway"
  295. value = concat(aws_vpn_gateway.this.*.arn, [""])[0]
  296. }
  297. output "default_vpc_id" {
  298. description = "The ID of the VPC"
  299. value = concat(aws_default_vpc.this.*.id, [""])[0]
  300. }
  301. output "default_vpc_arn" {
  302. description = "The ARN of the VPC"
  303. value = concat(aws_default_vpc.this.*.arn, [""])[0]
  304. }
  305. output "default_vpc_cidr_block" {
  306. description = "The CIDR block of the VPC"
  307. value = concat(aws_default_vpc.this.*.cidr_block, [""])[0]
  308. }
  309. output "default_vpc_default_security_group_id" {
  310. description = "The ID of the security group created by default on VPC creation"
  311. value = concat(aws_default_vpc.this.*.default_security_group_id, [""])[0]
  312. }
  313. output "default_vpc_default_network_acl_id" {
  314. description = "The ID of the default network ACL"
  315. value = concat(aws_default_vpc.this.*.default_network_acl_id, [""])[0]
  316. }
  317. output "default_vpc_default_route_table_id" {
  318. description = "The ID of the default route table"
  319. value = concat(aws_default_vpc.this.*.default_route_table_id, [""])[0]
  320. }
  321. output "default_vpc_instance_tenancy" {
  322. description = "Tenancy of instances spin up within VPC"
  323. value = concat(aws_default_vpc.this.*.instance_tenancy, [""])[0]
  324. }
  325. output "default_vpc_enable_dns_support" {
  326. description = "Whether or not the VPC has DNS support"
  327. value = concat(aws_default_vpc.this.*.enable_dns_support, [""])[0]
  328. }
  329. output "default_vpc_enable_dns_hostnames" {
  330. description = "Whether or not the VPC has DNS hostname support"
  331. value = concat(aws_default_vpc.this.*.enable_dns_hostnames, [""])[0]
  332. }
  333. output "default_vpc_main_route_table_id" {
  334. description = "The ID of the main route table associated with this VPC"
  335. value = concat(aws_default_vpc.this.*.main_route_table_id, [""])[0]
  336. }
  337. output "public_network_acl_id" {
  338. description = "ID of the public network ACL"
  339. value = concat(aws_network_acl.public.*.id, [""])[0]
  340. }
  341. output "public_network_acl_arn" {
  342. description = "ARN of the public network ACL"
  343. value = concat(aws_network_acl.public.*.arn, [""])[0]
  344. }
  345. output "private_network_acl_id" {
  346. description = "ID of the private network ACL"
  347. value = concat(aws_network_acl.private.*.id, [""])[0]
  348. }
  349. output "private_network_acl_arn" {
  350. description = "ARN of the private network ACL"
  351. value = concat(aws_network_acl.private.*.arn, [""])[0]
  352. }
  353. output "intra_network_acl_id" {
  354. description = "ID of the intra network ACL"
  355. value = concat(aws_network_acl.intra.*.id, [""])[0]
  356. }
  357. output "intra_network_acl_arn" {
  358. description = "ARN of the intra network ACL"
  359. value = concat(aws_network_acl.intra.*.arn, [""])[0]
  360. }
  361. output "database_network_acl_id" {
  362. description = "ID of the database network ACL"
  363. value = concat(aws_network_acl.database.*.id, [""])[0]
  364. }
  365. output "database_network_acl_arn" {
  366. description = "ARN of the database network ACL"
  367. value = concat(aws_network_acl.database.*.arn, [""])[0]
  368. }
  369. output "redshift_network_acl_id" {
  370. description = "ID of the redshift network ACL"
  371. value = concat(aws_network_acl.redshift.*.id, [""])[0]
  372. }
  373. output "redshift_network_acl_arn" {
  374. description = "ARN of the redshift network ACL"
  375. value = concat(aws_network_acl.redshift.*.arn, [""])[0]
  376. }
  377. output "elasticache_network_acl_id" {
  378. description = "ID of the elasticache network ACL"
  379. value = concat(aws_network_acl.elasticache.*.id, [""])[0]
  380. }
  381. output "elasticache_network_acl_arn" {
  382. description = "ARN of the elasticache network ACL"
  383. value = concat(aws_network_acl.elasticache.*.arn, [""])[0]
  384. }
  385. # VPC Endpoints
  386. output "vpc_endpoint_s3_id" {
  387. description = "The ID of VPC endpoint for S3"
  388. value = concat(aws_vpc_endpoint.s3.*.id, [""])[0]
  389. }
  390. output "vpc_endpoint_s3_pl_id" {
  391. description = "The prefix list for the S3 VPC endpoint."
  392. value = concat(aws_vpc_endpoint.s3.*.prefix_list_id, [""])[0]
  393. }
  394. output "vpc_endpoint_dynamodb_id" {
  395. description = "The ID of VPC endpoint for DynamoDB"
  396. value = concat(aws_vpc_endpoint.dynamodb.*.id, [""])[0]
  397. }
  398. output "vpc_endpoint_dynamodb_pl_id" {
  399. description = "The prefix list for the DynamoDB VPC endpoint."
  400. value = concat(aws_vpc_endpoint.dynamodb.*.prefix_list_id, [""])[0]
  401. }
  402. output "vpc_endpoint_sqs_id" {
  403. description = "The ID of VPC endpoint for SQS"
  404. value = concat(aws_vpc_endpoint.sqs.*.id, [""])[0]
  405. }
  406. output "vpc_endpoint_sqs_network_interface_ids" {
  407. description = "One or more network interfaces for the VPC Endpoint for SQS."
  408. value = flatten(aws_vpc_endpoint.sqs.*.network_interface_ids)
  409. }
  410. output "vpc_endpoint_sqs_dns_entry" {
  411. description = "The DNS entries for the VPC Endpoint for SQS."
  412. value = flatten(aws_vpc_endpoint.sqs.*.dns_entry)
  413. }
  414. output "vpc_endpoint_lambda_id" {
  415. description = "The ID of VPC endpoint for Lambda"
  416. value = concat(aws_vpc_endpoint.lambda.*.id, [""])[0]
  417. }
  418. output "vpc_endpoint_lambda_network_interface_ids" {
  419. description = "One or more network interfaces for the VPC Endpoint for Lambda."
  420. value = flatten(aws_vpc_endpoint.lambda.*.network_interface_ids)
  421. }
  422. output "vpc_endpoint_lambda_dns_entry" {
  423. description = "The DNS entries for the VPC Endpoint for Lambda."
  424. value = flatten(aws_vpc_endpoint.lambda.*.dns_entry)
  425. }
  426. output "vpc_endpoint_codebuild_id" {
  427. description = "The ID of VPC endpoint for codebuild"
  428. value = concat(aws_vpc_endpoint.codebuild.*.id, [""])[0]
  429. }
  430. output "vpc_endpoint_codebuild_network_interface_ids" {
  431. description = "One or more network interfaces for the VPC Endpoint for codebuild."
  432. value = flatten(aws_vpc_endpoint.codebuild.*.network_interface_ids)
  433. }
  434. output "vpc_endpoint_codebuild_dns_entry" {
  435. description = "The DNS entries for the VPC Endpoint for codebuild."
  436. value = flatten(aws_vpc_endpoint.codebuild.*.dns_entry)
  437. }
  438. output "vpc_endpoint_codecommit_id" {
  439. description = "The ID of VPC endpoint for codecommit"
  440. value = concat(aws_vpc_endpoint.codecommit.*.id, [""])[0]
  441. }
  442. output "vpc_endpoint_codecommit_network_interface_ids" {
  443. description = "One or more network interfaces for the VPC Endpoint for codecommit."
  444. value = flatten(aws_vpc_endpoint.codecommit.*.network_interface_ids)
  445. }
  446. output "vpc_endpoint_codecommit_dns_entry" {
  447. description = "The DNS entries for the VPC Endpoint for codecommit."
  448. value = flatten(aws_vpc_endpoint.codecommit.*.dns_entry)
  449. }
  450. output "vpc_endpoint_git_codecommit_id" {
  451. description = "The ID of VPC endpoint for git_codecommit"
  452. value = concat(aws_vpc_endpoint.git_codecommit.*.id, [""])[0]
  453. }
  454. output "vpc_endpoint_git_codecommit_network_interface_ids" {
  455. description = "One or more network interfaces for the VPC Endpoint for git_codecommit."
  456. value = flatten(aws_vpc_endpoint.git_codecommit.*.network_interface_ids)
  457. }
  458. output "vpc_endpoint_git_codecommit_dns_entry" {
  459. description = "The DNS entries for the VPC Endpoint for git_codecommit."
  460. value = flatten(aws_vpc_endpoint.git_codecommit.*.dns_entry)
  461. }
  462. output "vpc_endpoint_config_id" {
  463. description = "The ID of VPC endpoint for config"
  464. value = concat(aws_vpc_endpoint.config.*.id, [""])[0]
  465. }
  466. output "vpc_endpoint_config_network_interface_ids" {
  467. description = "One or more network interfaces for the VPC Endpoint for config."
  468. value = flatten(aws_vpc_endpoint.config.*.network_interface_ids)
  469. }
  470. output "vpc_endpoint_config_dns_entry" {
  471. description = "The DNS entries for the VPC Endpoint for config."
  472. value = flatten(aws_vpc_endpoint.config.*.dns_entry)
  473. }
  474. output "vpc_endpoint_secretsmanager_id" {
  475. description = "The ID of VPC endpoint for secretsmanager"
  476. value = concat(aws_vpc_endpoint.secretsmanager.*.id, [""])[0]
  477. }
  478. output "vpc_endpoint_secretsmanager_network_interface_ids" {
  479. description = "One or more network interfaces for the VPC Endpoint for secretsmanager."
  480. value = flatten(aws_vpc_endpoint.secretsmanager.*.network_interface_ids)
  481. }
  482. output "vpc_endpoint_secretsmanager_dns_entry" {
  483. description = "The DNS entries for the VPC Endpoint for secretsmanager."
  484. value = flatten(aws_vpc_endpoint.secretsmanager.*.dns_entry)
  485. }
  486. output "vpc_endpoint_ssm_id" {
  487. description = "The ID of VPC endpoint for SSM"
  488. value = concat(aws_vpc_endpoint.ssm.*.id, [""])[0]
  489. }
  490. output "vpc_endpoint_ssm_network_interface_ids" {
  491. description = "One or more network interfaces for the VPC Endpoint for SSM."
  492. value = flatten(aws_vpc_endpoint.ssm.*.network_interface_ids)
  493. }
  494. output "vpc_endpoint_ssm_dns_entry" {
  495. description = "The DNS entries for the VPC Endpoint for SSM."
  496. value = flatten(aws_vpc_endpoint.ssm.*.dns_entry)
  497. }
  498. output "vpc_endpoint_ssmmessages_id" {
  499. description = "The ID of VPC endpoint for SSMMESSAGES"
  500. value = concat(aws_vpc_endpoint.ssmmessages.*.id, [""])[0]
  501. }
  502. output "vpc_endpoint_ssmmessages_network_interface_ids" {
  503. description = "One or more network interfaces for the VPC Endpoint for SSMMESSAGES."
  504. value = flatten(aws_vpc_endpoint.ssmmessages.*.network_interface_ids)
  505. }
  506. output "vpc_endpoint_ssmmessages_dns_entry" {
  507. description = "The DNS entries for the VPC Endpoint for SSMMESSAGES."
  508. value = flatten(aws_vpc_endpoint.ssmmessages.*.dns_entry)
  509. }
  510. output "vpc_endpoint_ec2_id" {
  511. description = "The ID of VPC endpoint for EC2"
  512. value = concat(aws_vpc_endpoint.ec2.*.id, [""])[0]
  513. }
  514. output "vpc_endpoint_ec2_network_interface_ids" {
  515. description = "One or more network interfaces for the VPC Endpoint for EC2"
  516. value = flatten(aws_vpc_endpoint.ec2.*.network_interface_ids)
  517. }
  518. output "vpc_endpoint_ec2_dns_entry" {
  519. description = "The DNS entries for the VPC Endpoint for EC2."
  520. value = flatten(aws_vpc_endpoint.ec2.*.dns_entry)
  521. }
  522. output "vpc_endpoint_ec2messages_id" {
  523. description = "The ID of VPC endpoint for EC2MESSAGES"
  524. value = concat(aws_vpc_endpoint.ec2messages.*.id, [""])[0]
  525. }
  526. output "vpc_endpoint_ec2messages_network_interface_ids" {
  527. description = "One or more network interfaces for the VPC Endpoint for EC2MESSAGES"
  528. value = flatten(aws_vpc_endpoint.ec2messages.*.network_interface_ids)
  529. }
  530. output "vpc_endpoint_ec2messages_dns_entry" {
  531. description = "The DNS entries for the VPC Endpoint for EC2MESSAGES."
  532. value = flatten(aws_vpc_endpoint.ec2messages.*.dns_entry)
  533. }
  534. output "vpc_endpoint_ec2_autoscaling_id" {
  535. description = "The ID of VPC endpoint for EC2 Autoscaling"
  536. value = concat(aws_vpc_endpoint.ec2_autoscaling.*.id, [""])[0]
  537. }
  538. output "vpc_endpoint_ec2_autoscaling_network_interface_ids" {
  539. description = "One or more network interfaces for the VPC Endpoint for EC2 Autoscaling"
  540. value = flatten(aws_vpc_endpoint.ec2_autoscaling.*.network_interface_ids)
  541. }
  542. output "vpc_endpoint_ec2_autoscaling_dns_entry" {
  543. description = "The DNS entries for the VPC Endpoint for EC2 Autoscaling."
  544. value = flatten(aws_vpc_endpoint.ec2_autoscaling.*.dns_entry)
  545. }
  546. output "vpc_endpoint_transferserver_id" {
  547. description = "The ID of VPC endpoint for transferserver"
  548. value = concat(aws_vpc_endpoint.transferserver.*.id, [""])[0]
  549. }
  550. output "vpc_endpoint_transferserver_network_interface_ids" {
  551. description = "One or more network interfaces for the VPC Endpoint for transferserver"
  552. value = flatten(aws_vpc_endpoint.transferserver.*.network_interface_ids)
  553. }
  554. output "vpc_endpoint_transferserver_dns_entry" {
  555. description = "The DNS entries for the VPC Endpoint for transferserver."
  556. value = flatten(aws_vpc_endpoint.transferserver.*.dns_entry)
  557. }
  558. output "vpc_endpoint_glue_id" {
  559. description = "The ID of VPC endpoint for Glue"
  560. value = concat(aws_vpc_endpoint.glue.*.id, [""])[0]
  561. }
  562. output "vpc_endpoint_glue_network_interface_ids" {
  563. description = "One or more network interfaces for the VPC Endpoint for Glue."
  564. value = flatten(aws_vpc_endpoint.glue.*.network_interface_ids)
  565. }
  566. output "vpc_endpoint_glue_dns_entry" {
  567. description = "The DNS entries for the VPC Endpoint for Glue."
  568. value = flatten(aws_vpc_endpoint.glue.*.dns_entry)
  569. }
  570. output "vpc_endpoint_kms_id" {
  571. description = "The ID of VPC endpoint for KMS"
  572. value = concat(aws_vpc_endpoint.kms.*.id, [""])[0]
  573. }
  574. output "vpc_endpoint_kms_network_interface_ids" {
  575. description = "One or more network interfaces for the VPC Endpoint for KMS."
  576. value = flatten(aws_vpc_endpoint.kms.*.network_interface_ids)
  577. }
  578. output "vpc_endpoint_kms_dns_entry" {
  579. description = "The DNS entries for the VPC Endpoint for KMS."
  580. value = flatten(aws_vpc_endpoint.kms.*.dns_entry)
  581. }
  582. output "vpc_endpoint_kinesis_firehose_id" {
  583. description = "The ID of VPC endpoint for Kinesis Firehose"
  584. value = concat(aws_vpc_endpoint.kinesis_firehose.*.id, [""])[0]
  585. }
  586. output "vpc_endpoint_kinesis_firehose_network_interface_ids" {
  587. description = "One or more network interfaces for the VPC Endpoint for Kinesis Firehose."
  588. value = flatten(aws_vpc_endpoint.kinesis_firehose.*.network_interface_ids)
  589. }
  590. output "vpc_endpoint_kinesis_firehose_dns_entry" {
  591. description = "The DNS entries for the VPC Endpoint for Kinesis Firehose."
  592. value = flatten(aws_vpc_endpoint.kinesis_firehose.*.dns_entry)
  593. }
  594. output "vpc_endpoint_kinesis_streams_id" {
  595. description = "The ID of VPC endpoint for Kinesis Streams"
  596. value = concat(aws_vpc_endpoint.kinesis_streams.*.id, [""])[0]
  597. }
  598. output "vpc_endpoint_kinesis_streams_network_interface_ids" {
  599. description = "One or more network interfaces for the VPC Endpoint for Kinesis Streams."
  600. value = flatten(aws_vpc_endpoint.kinesis_streams.*.network_interface_ids)
  601. }
  602. output "vpc_endpoint_kinesis_streams_dns_entry" {
  603. description = "The DNS entries for the VPC Endpoint for Kinesis Streams."
  604. value = flatten(aws_vpc_endpoint.kinesis_streams.*.dns_entry)
  605. }
  606. output "vpc_endpoint_ecr_api_id" {
  607. description = "The ID of VPC endpoint for ECR API"
  608. value = concat(aws_vpc_endpoint.ecr_api.*.id, [""])[0]
  609. }
  610. output "vpc_endpoint_ecr_api_network_interface_ids" {
  611. description = "One or more network interfaces for the VPC Endpoint for ECR API."
  612. value = flatten(aws_vpc_endpoint.ecr_api.*.network_interface_ids)
  613. }
  614. output "vpc_endpoint_ecr_api_dns_entry" {
  615. description = "The DNS entries for the VPC Endpoint for ECR API."
  616. value = flatten(aws_vpc_endpoint.ecr_api.*.dns_entry)
  617. }
  618. output "vpc_endpoint_ecr_dkr_id" {
  619. description = "The ID of VPC endpoint for ECR DKR"
  620. value = concat(aws_vpc_endpoint.ecr_dkr.*.id, [""])[0]
  621. }
  622. output "vpc_endpoint_ecr_dkr_network_interface_ids" {
  623. description = "One or more network interfaces for the VPC Endpoint for ECR DKR."
  624. value = flatten(aws_vpc_endpoint.ecr_dkr.*.network_interface_ids)
  625. }
  626. output "vpc_endpoint_ecr_dkr_dns_entry" {
  627. description = "The DNS entries for the VPC Endpoint for ECR DKR."
  628. value = flatten(aws_vpc_endpoint.ecr_dkr.*.dns_entry)
  629. }
  630. output "vpc_endpoint_apigw_id" {
  631. description = "The ID of VPC endpoint for APIGW"
  632. value = concat(aws_vpc_endpoint.apigw.*.id, [""])[0]
  633. }
  634. output "vpc_endpoint_apigw_network_interface_ids" {
  635. description = "One or more network interfaces for the VPC Endpoint for APIGW."
  636. value = flatten(aws_vpc_endpoint.apigw.*.network_interface_ids)
  637. }
  638. output "vpc_endpoint_apigw_dns_entry" {
  639. description = "The DNS entries for the VPC Endpoint for APIGW."
  640. value = flatten(aws_vpc_endpoint.apigw.*.dns_entry)
  641. }
  642. output "vpc_endpoint_ecs_id" {
  643. description = "The ID of VPC endpoint for ECS"
  644. value = concat(aws_vpc_endpoint.ecs.*.id, [""])[0]
  645. }
  646. output "vpc_endpoint_ecs_network_interface_ids" {
  647. description = "One or more network interfaces for the VPC Endpoint for ECS."
  648. value = flatten(aws_vpc_endpoint.ecs.*.network_interface_ids)
  649. }
  650. output "vpc_endpoint_ecs_dns_entry" {
  651. description = "The DNS entries for the VPC Endpoint for ECS."
  652. value = flatten(aws_vpc_endpoint.ecs.*.dns_entry)
  653. }
  654. output "vpc_endpoint_ecs_agent_id" {
  655. description = "The ID of VPC endpoint for ECS Agent"
  656. value = concat(aws_vpc_endpoint.ecs_agent.*.id, [""])[0]
  657. }
  658. output "vpc_endpoint_ecs_agent_network_interface_ids" {
  659. description = "One or more network interfaces for the VPC Endpoint for ECS Agent."
  660. value = flatten(aws_vpc_endpoint.ecs_agent.*.network_interface_ids)
  661. }
  662. output "vpc_endpoint_ecs_agent_dns_entry" {
  663. description = "The DNS entries for the VPC Endpoint for ECS Agent."
  664. value = flatten(aws_vpc_endpoint.ecs_agent.*.dns_entry)
  665. }
  666. output "vpc_endpoint_ecs_telemetry_id" {
  667. description = "The ID of VPC endpoint for ECS Telemetry"
  668. value = concat(aws_vpc_endpoint.ecs_telemetry.*.id, [""])[0]
  669. }
  670. output "vpc_endpoint_ecs_telemetry_network_interface_ids" {
  671. description = "One or more network interfaces for the VPC Endpoint for ECS Telemetry."
  672. value = flatten(aws_vpc_endpoint.ecs_telemetry.*.network_interface_ids)
  673. }
  674. output "vpc_endpoint_ecs_telemetry_dns_entry" {
  675. description = "The DNS entries for the VPC Endpoint for ECS Telemetry."
  676. value = flatten(aws_vpc_endpoint.ecs_telemetry.*.dns_entry)
  677. }
  678. output "vpc_endpoint_sns_id" {
  679. description = "The ID of VPC endpoint for SNS"
  680. value = concat(aws_vpc_endpoint.sns.*.id, [""])[0]
  681. }
  682. output "vpc_endpoint_sns_network_interface_ids" {
  683. description = "One or more network interfaces for the VPC Endpoint for SNS."
  684. value = flatten(aws_vpc_endpoint.sns.*.network_interface_ids)
  685. }
  686. output "vpc_endpoint_sns_dns_entry" {
  687. description = "The DNS entries for the VPC Endpoint for SNS."
  688. value = flatten(aws_vpc_endpoint.sns.*.dns_entry)
  689. }
  690. output "vpc_endpoint_monitoring_id" {
  691. description = "The ID of VPC endpoint for CloudWatch Monitoring"
  692. value = concat(aws_vpc_endpoint.monitoring.*.id, [""])[0]
  693. }
  694. output "vpc_endpoint_monitoring_network_interface_ids" {
  695. description = "One or more network interfaces for the VPC Endpoint for CloudWatch Monitoring."
  696. value = flatten(aws_vpc_endpoint.monitoring.*.network_interface_ids)
  697. }
  698. output "vpc_endpoint_monitoring_dns_entry" {
  699. description = "The DNS entries for the VPC Endpoint for CloudWatch Monitoring."
  700. value = flatten(aws_vpc_endpoint.monitoring.*.dns_entry)
  701. }
  702. output "vpc_endpoint_logs_id" {
  703. description = "The ID of VPC endpoint for CloudWatch Logs"
  704. value = concat(aws_vpc_endpoint.logs.*.id, [""])[0]
  705. }
  706. output "vpc_endpoint_logs_network_interface_ids" {
  707. description = "One or more network interfaces for the VPC Endpoint for CloudWatch Logs."
  708. value = flatten(aws_vpc_endpoint.logs.*.network_interface_ids)
  709. }
  710. output "vpc_endpoint_logs_dns_entry" {
  711. description = "The DNS entries for the VPC Endpoint for CloudWatch Logs."
  712. value = flatten(aws_vpc_endpoint.logs.*.dns_entry)
  713. }
  714. output "vpc_endpoint_events_id" {
  715. description = "The ID of VPC endpoint for CloudWatch Events"
  716. value = concat(aws_vpc_endpoint.events.*.id, [""])[0]
  717. }
  718. output "vpc_endpoint_events_network_interface_ids" {
  719. description = "One or more network interfaces for the VPC Endpoint for CloudWatch Events."
  720. value = flatten(aws_vpc_endpoint.events.*.network_interface_ids)
  721. }
  722. output "vpc_endpoint_events_dns_entry" {
  723. description = "The DNS entries for the VPC Endpoint for CloudWatch Events."
  724. value = flatten(aws_vpc_endpoint.events.*.dns_entry)
  725. }
  726. output "vpc_endpoint_elasticloadbalancing_id" {
  727. description = "The ID of VPC endpoint for Elastic Load Balancing"
  728. value = concat(aws_vpc_endpoint.elasticloadbalancing.*.id, [""])[0]
  729. }
  730. output "vpc_endpoint_elasticloadbalancing_network_interface_ids" {
  731. description = "One or more network interfaces for the VPC Endpoint for Elastic Load Balancing."
  732. value = flatten(aws_vpc_endpoint.elasticloadbalancing.*.network_interface_ids)
  733. }
  734. output "vpc_endpoint_elasticloadbalancing_dns_entry" {
  735. description = "The DNS entries for the VPC Endpoint for Elastic Load Balancing."
  736. value = flatten(aws_vpc_endpoint.elasticloadbalancing.*.dns_entry)
  737. }
  738. output "vpc_endpoint_cloudtrail_id" {
  739. description = "The ID of VPC endpoint for CloudTrail"
  740. value = concat(aws_vpc_endpoint.cloudtrail.*.id, [""])[0]
  741. }
  742. output "vpc_endpoint_cloudtrail_network_interface_ids" {
  743. description = "One or more network interfaces for the VPC Endpoint for CloudTrail."
  744. value = flatten(aws_vpc_endpoint.cloudtrail.*.network_interface_ids)
  745. }
  746. output "vpc_endpoint_cloudtrail_dns_entry" {
  747. description = "The DNS entries for the VPC Endpoint for CloudTrail."
  748. value = flatten(aws_vpc_endpoint.cloudtrail.*.dns_entry)
  749. }
  750. output "vpc_endpoint_sts_id" {
  751. description = "The ID of VPC endpoint for STS"
  752. value = concat(aws_vpc_endpoint.sts.*.id, [""])[0]
  753. }
  754. output "vpc_endpoint_sts_network_interface_ids" {
  755. description = "One or more network interfaces for the VPC Endpoint for STS."
  756. value = flatten(aws_vpc_endpoint.sts.*.network_interface_ids)
  757. }
  758. output "vpc_endpoint_sts_dns_entry" {
  759. description = "The DNS entries for the VPC Endpoint for STS."
  760. value = flatten(aws_vpc_endpoint.sts.*.dns_entry)
  761. }
  762. output "vpc_endpoint_cloudformation_id" {
  763. description = "The ID of VPC endpoint for Cloudformation"
  764. value = concat(aws_vpc_endpoint.cloudformation.*.id, [""])[0]
  765. }
  766. output "vpc_endpoint_cloudformation_network_interface_ids" {
  767. description = "One or more network interfaces for the VPC Endpoint for Cloudformation."
  768. value = flatten(aws_vpc_endpoint.cloudformation.*.network_interface_ids)
  769. }
  770. output "vpc_endpoint_cloudformation_dns_entry" {
  771. description = "The DNS entries for the VPC Endpoint for Cloudformation."
  772. value = flatten(aws_vpc_endpoint.cloudformation.*.dns_entry)
  773. }
  774. output "vpc_endpoint_codepipeline_id" {
  775. description = "The ID of VPC endpoint for CodePipeline"
  776. value = concat(aws_vpc_endpoint.codepipeline.*.id, [""])[0]
  777. }
  778. output "vpc_endpoint_codepipeline_network_interface_ids" {
  779. description = "One or more network interfaces for the VPC Endpoint for CodePipeline."
  780. value = flatten(aws_vpc_endpoint.codepipeline.*.network_interface_ids)
  781. }
  782. output "vpc_endpoint_codepipeline_dns_entry" {
  783. description = "The DNS entries for the VPC Endpoint for CodePipeline."
  784. value = flatten(aws_vpc_endpoint.codepipeline.*.dns_entry)
  785. }
  786. output "vpc_endpoint_appmesh_envoy_management_id" {
  787. description = "The ID of VPC endpoint for AppMesh"
  788. value = concat(aws_vpc_endpoint.appmesh_envoy_management.*.id, [""])[0]
  789. }
  790. output "vpc_endpoint_appmesh_envoy_management_network_interface_ids" {
  791. description = "One or more network interfaces for the VPC Endpoint for AppMesh."
  792. value = flatten(aws_vpc_endpoint.appmesh_envoy_management.*.network_interface_ids)
  793. }
  794. output "vpc_endpoint_appmesh_envoy_management_dns_entry" {
  795. description = "The DNS entries for the VPC Endpoint for AppMesh."
  796. value = flatten(aws_vpc_endpoint.appmesh_envoy_management.*.dns_entry)
  797. }
  798. output "vpc_endpoint_servicecatalog_id" {
  799. description = "The ID of VPC endpoint for Service Catalog"
  800. value = concat(aws_vpc_endpoint.servicecatalog.*.id, [""])[0]
  801. }
  802. output "vpc_endpoint_servicecatalog_network_interface_ids" {
  803. description = "One or more network interfaces for the VPC Endpoint for Service Catalog."
  804. value = flatten(aws_vpc_endpoint.servicecatalog.*.network_interface_ids)
  805. }
  806. output "vpc_endpoint_servicecatalog_dns_entry" {
  807. description = "The DNS entries for the VPC Endpoint for Service Catalog."
  808. value = flatten(aws_vpc_endpoint.servicecatalog.*.dns_entry)
  809. }
  810. output "vpc_endpoint_storagegateway_id" {
  811. description = "The ID of VPC endpoint for Storage Gateway"
  812. value = concat(aws_vpc_endpoint.storagegateway.*.id, [""])[0]
  813. }
  814. output "vpc_endpoint_storagegateway_network_interface_ids" {
  815. description = "One or more network interfaces for the VPC Endpoint for Storage Gateway."
  816. value = flatten(aws_vpc_endpoint.storagegateway.*.network_interface_ids)
  817. }
  818. output "vpc_endpoint_storagegateway_dns_entry" {
  819. description = "The DNS entries for the VPC Endpoint for Storage Gateway."
  820. value = flatten(aws_vpc_endpoint.storagegateway.*.dns_entry)
  821. }
  822. output "vpc_endpoint_transfer_id" {
  823. description = "The ID of VPC endpoint for Transfer"
  824. value = concat(aws_vpc_endpoint.transfer.*.id, [""])[0]
  825. }
  826. output "vpc_endpoint_transfer_network_interface_ids" {
  827. description = "One or more network interfaces for the VPC Endpoint for Transfer."
  828. value = flatten(aws_vpc_endpoint.transfer.*.network_interface_ids)
  829. }
  830. output "vpc_endpoint_transfer_dns_entry" {
  831. description = "The DNS entries for the VPC Endpoint for Transfer."
  832. value = flatten(aws_vpc_endpoint.transfer.*.dns_entry)
  833. }
  834. output "vpc_endpoint_sagemaker_api_id" {
  835. description = "The ID of VPC endpoint for SageMaker API"
  836. value = concat(aws_vpc_endpoint.sagemaker_api.*.id, [""])[0]
  837. }
  838. output "vpc_endpoint_sagemaker_api_network_interface_ids" {
  839. description = "One or more network interfaces for the VPC Endpoint for SageMaker API."
  840. value = flatten(aws_vpc_endpoint.sagemaker_api.*.network_interface_ids)
  841. }
  842. output "vpc_endpoint_sagemaker_api_dns_entry" {
  843. description = "The DNS entries for the VPC Endpoint for SageMaker API."
  844. value = flatten(aws_vpc_endpoint.sagemaker_api.*.dns_entry)
  845. }
  846. output "vpc_endpoint_sagemaker_runtime_id" {
  847. description = "The ID of VPC endpoint for SageMaker Runtime"
  848. value = concat(aws_vpc_endpoint.sagemaker_runtime.*.id, [""])[0]
  849. }
  850. output "vpc_endpoint_sagemaker_runtime_network_interface_ids" {
  851. description = "One or more network interfaces for the VPC Endpoint for SageMaker Runtime."
  852. value = flatten(aws_vpc_endpoint.sagemaker_runtime.*.network_interface_ids)
  853. }
  854. output "vpc_endpoint_sagemaker_runtime_dns_entry" {
  855. description = "The DNS entries for the VPC Endpoint for SageMaker Runtime."
  856. value = flatten(aws_vpc_endpoint.sagemaker_runtime.*.dns_entry)
  857. }
  858. output "vpc_endpoint_appstream_api_id" {
  859. description = "The ID of VPC endpoint for AppStream API"
  860. value = concat(aws_vpc_endpoint.appstream_api.*.id, [""])[0]
  861. }
  862. output "vpc_endpoint_appstream_api_network_interface_ids" {
  863. description = "One or more network interfaces for the VPC Endpoint for AppStream API."
  864. value = flatten(aws_vpc_endpoint.appstream_api.*.network_interface_ids)
  865. }
  866. output "vpc_endpoint_appstream_api_dns_entry" {
  867. description = "The DNS entries for the VPC Endpoint for AppStream API."
  868. value = flatten(aws_vpc_endpoint.appstream_api.*.dns_entry)
  869. }
  870. output "vpc_endpoint_appstream_streaming_id" {
  871. description = "The ID of VPC endpoint for AppStream Streaming"
  872. value = concat(aws_vpc_endpoint.appstream_streaming.*.id, [""])[0]
  873. }
  874. output "vpc_endpoint_appstream_streaming_network_interface_ids" {
  875. description = "One or more network interfaces for the VPC Endpoint for AppStream Streaming."
  876. value = flatten(aws_vpc_endpoint.appstream_streaming.*.network_interface_ids)
  877. }
  878. output "vpc_endpoint_appstream_streaming_dns_entry" {
  879. description = "The DNS entries for the VPC Endpoint for AppStream Streaming."
  880. value = flatten(aws_vpc_endpoint.appstream_streaming.*.dns_entry)
  881. }
  882. output "vpc_endpoint_athena_id" {
  883. description = "The ID of VPC endpoint for Athena"
  884. value = concat(aws_vpc_endpoint.athena.*.id, [""])[0]
  885. }
  886. output "vpc_endpoint_athena_network_interface_ids" {
  887. description = "One or more network interfaces for the VPC Endpoint for Athena."
  888. value = flatten(aws_vpc_endpoint.athena.*.network_interface_ids)
  889. }
  890. output "vpc_endpoint_athena_dns_entry" {
  891. description = "The DNS entries for the VPC Endpoint for Athena."
  892. value = flatten(aws_vpc_endpoint.athena.*.dns_entry)
  893. }
  894. output "vpc_endpoint_rekognition_id" {
  895. description = "The ID of VPC endpoint for Rekognition"
  896. value = concat(aws_vpc_endpoint.rekognition.*.id, [""])[0]
  897. }
  898. output "vpc_endpoint_rekognition_network_interface_ids" {
  899. description = "One or more network interfaces for the VPC Endpoint for Rekognition."
  900. value = flatten(aws_vpc_endpoint.rekognition.*.network_interface_ids)
  901. }
  902. output "vpc_endpoint_rekognition_dns_entry" {
  903. description = "The DNS entries for the VPC Endpoint for Rekognition."
  904. value = flatten(aws_vpc_endpoint.rekognition.*.dns_entry)
  905. }
  906. output "vpc_endpoint_efs_id" {
  907. description = "The ID of VPC endpoint for EFS"
  908. value = concat(aws_vpc_endpoint.efs.*.id, [""])[0]
  909. }
  910. output "vpc_endpoint_efs_network_interface_ids" {
  911. description = "One or more network interfaces for the VPC Endpoint for EFS."
  912. value = flatten(aws_vpc_endpoint.efs.*.network_interface_ids)
  913. }
  914. output "vpc_endpoint_efs_dns_entry" {
  915. description = "The DNS entries for the VPC Endpoint for EFS."
  916. value = flatten(aws_vpc_endpoint.efs.*.dns_entry)
  917. }
  918. output "vpc_endpoint_cloud_directory_id" {
  919. description = "The ID of VPC endpoint for Cloud Directory"
  920. value = concat(aws_vpc_endpoint.cloud_directory.*.id, [""])[0]
  921. }
  922. output "vpc_endpoint_cloud_directory_network_interface_ids" {
  923. description = "One or more network interfaces for the VPC Endpoint for Cloud Directory."
  924. value = flatten(aws_vpc_endpoint.cloud_directory.*.network_interface_ids)
  925. }
  926. output "vpc_endpoint_cloud_directory_dns_entry" {
  927. description = "The DNS entries for the VPC Endpoint for Cloud Directory."
  928. value = flatten(aws_vpc_endpoint.cloud_directory.*.dns_entry)
  929. }
  930. output "vpc_endpoint_elasticmapreduce_id" {
  931. description = "The ID of VPC endpoint for EMR"
  932. value = concat(aws_vpc_endpoint.emr.*.id, [""])[0]
  933. }
  934. output "vpc_endpoint_elasticmapreduce_network_interface_ids" {
  935. description = "One or more network interfaces for the VPC Endpoint for EMR."
  936. value = flatten(aws_vpc_endpoint.emr.*.network_interface_ids)
  937. }
  938. output "vpc_endpoint_elasticmapreduce_dns_entry" {
  939. description = "The DNS entries for the VPC Endpoint for EMR."
  940. value = flatten(aws_vpc_endpoint.emr.*.dns_entry)
  941. }
  942. output "vpc_endpoint_sms_id" {
  943. description = "The ID of VPC endpoint for SMS"
  944. value = concat(aws_vpc_endpoint.sms.*.id, [""])[0]
  945. }
  946. output "vpc_endpoint_sms_network_interface_ids" {
  947. description = "One or more network interfaces for the VPC Endpoint for SMS."
  948. value = flatten(aws_vpc_endpoint.sms.*.network_interface_ids)
  949. }
  950. output "vpc_endpoint_sms_dns_entry" {
  951. description = "The DNS entries for the VPC Endpoint for SMS."
  952. value = flatten(aws_vpc_endpoint.sms.*.dns_entry)
  953. }
  954. output "vpc_endpoint_states_id" {
  955. description = "The ID of VPC endpoint for Step Function"
  956. value = concat(aws_vpc_endpoint.states.*.id, [""])[0]
  957. }
  958. output "vpc_endpoint_states_network_interface_ids" {
  959. description = "One or more network interfaces for the VPC Endpoint for Step Function."
  960. value = flatten(aws_vpc_endpoint.states.*.network_interface_ids)
  961. }
  962. output "vpc_endpoint_states_dns_entry" {
  963. description = "The DNS entries for the VPC Endpoint for Step Function."
  964. value = flatten(aws_vpc_endpoint.states.*.dns_entry)
  965. }
  966. output "vpc_endpoint_elastic_inference_runtime_id" {
  967. description = "The ID of VPC endpoint for Elastic Inference Runtime"
  968. value = concat(aws_vpc_endpoint.elastic_inference_runtime.*.id, [""])[0]
  969. }
  970. output "vpc_endpoint_elastic_inference_runtime_network_interface_ids" {
  971. description = "One or more network interfaces for the VPC Endpoint for Elastic Inference Runtime."
  972. value = flatten(aws_vpc_endpoint.elastic_inference_runtime.*.network_interface_ids)
  973. }
  974. output "vpc_endpoint_elastic_inference_runtime_dns_entry" {
  975. description = "The DNS entries for the VPC Endpoint for Elastic Inference Runtime."
  976. value = flatten(aws_vpc_endpoint.elastic_inference_runtime.*.dns_entry)
  977. }
  978. output "vpc_endpoint_elasticbeanstalk_id" {
  979. description = "The ID of VPC endpoint for Elastic Beanstalk"
  980. value = concat(aws_vpc_endpoint.elasticbeanstalk.*.id, [""])[0]
  981. }
  982. output "vpc_endpoint_elasticbeanstalk_network_interface_ids" {
  983. description = "One or more network interfaces for the VPC Endpoint for Elastic Beanstalk."
  984. value = flatten(aws_vpc_endpoint.elasticbeanstalk.*.network_interface_ids)
  985. }
  986. output "vpc_endpoint_elasticbeanstalk_dns_entry" {
  987. description = "The DNS entries for the VPC Endpoint for Elastic Beanstalk."
  988. value = flatten(aws_vpc_endpoint.elasticbeanstalk.*.dns_entry)
  989. }
  990. output "vpc_endpoint_elasticbeanstalk_health_id" {
  991. description = "The ID of VPC endpoint for Elastic Beanstalk Health"
  992. value = concat(aws_vpc_endpoint.elasticbeanstalk_health.*.id, [""])[0]
  993. }
  994. output "vpc_endpoint_elasticbeanstalk_health_network_interface_ids" {
  995. description = "One or more network interfaces for the VPC Endpoint for Elastic Beanstalk Health."
  996. value = flatten(aws_vpc_endpoint.elasticbeanstalk_health.*.network_interface_ids)
  997. }
  998. output "vpc_endpoint_elasticbeanstalk_health_dns_entry" {
  999. description = "The DNS entries for the VPC Endpoint for Elastic Beanstalk Health."
  1000. value = flatten(aws_vpc_endpoint.elasticbeanstalk_health.*.dns_entry)
  1001. }
  1002. output "vpc_endpoint_workspaces_id" {
  1003. description = "The ID of VPC endpoint for Workspaces"
  1004. value = concat(aws_vpc_endpoint.workspaces.*.id, [""])[0]
  1005. }
  1006. output "vpc_endpoint_workspaces_network_interface_ids" {
  1007. description = "One or more network interfaces for the VPC Endpoint for Workspaces."
  1008. value = flatten(aws_vpc_endpoint.workspaces.*.network_interface_ids)
  1009. }
  1010. output "vpc_endpoint_workspaces_dns_entry" {
  1011. description = "The DNS entries for the VPC Endpoint for Workspaces."
  1012. value = flatten(aws_vpc_endpoint.workspaces.*.dns_entry)
  1013. }
  1014. output "vpc_endpoint_auto_scaling_plans_id" {
  1015. description = "The ID of VPC endpoint for Auto Scaling Plans"
  1016. value = concat(aws_vpc_endpoint.auto_scaling_plans.*.id, [""])[0]
  1017. }
  1018. output "vpc_endpoint_auto_scaling_plans_network_interface_ids" {
  1019. description = "One or more network interfaces for the VPC Endpoint for Auto Scaling Plans."
  1020. value = flatten(aws_vpc_endpoint.auto_scaling_plans.*.network_interface_ids)
  1021. }
  1022. output "vpc_endpoint_auto_scaling_plans_dns_entry" {
  1023. description = "The DNS entries for the VPC Endpoint for Auto Scaling Plans."
  1024. value = flatten(aws_vpc_endpoint.auto_scaling_plans.*.dns_entry)
  1025. }
  1026. output "vpc_endpoint_ebs_id" {
  1027. description = "The ID of VPC endpoint for EBS"
  1028. value = concat(aws_vpc_endpoint.ebs.*.id, [""])[0]
  1029. }
  1030. output "vpc_endpoint_ebs_network_interface_ids" {
  1031. description = "One or more network interfaces for the VPC Endpoint for EBS."
  1032. value = flatten(aws_vpc_endpoint.ebs.*.network_interface_ids)
  1033. }
  1034. output "vpc_endpoint_ebs_dns_entry" {
  1035. description = "The DNS entries for the VPC Endpoint for EBS."
  1036. value = flatten(aws_vpc_endpoint.ebs.*.dns_entry)
  1037. }
  1038. output "vpc_endpoint_qldb_session_id" {
  1039. description = "The ID of VPC endpoint for QLDB Session"
  1040. value = concat(aws_vpc_endpoint.qldb_session.*.id, [""])[0]
  1041. }
  1042. output "vpc_endpoint_qldb_session_network_interface_ids" {
  1043. description = "One or more network interfaces for the VPC Endpoint for QLDB Session."
  1044. value = flatten(aws_vpc_endpoint.qldb_session.*.network_interface_ids)
  1045. }
  1046. output "vpc_endpoint_qldb_session_dns_entry" {
  1047. description = "The DNS entries for the VPC Endpoint for QLDB Session."
  1048. value = flatten(aws_vpc_endpoint.qldb_session.*.dns_entry)
  1049. }
  1050. output "vpc_endpoint_datasync_id" {
  1051. description = "The ID of VPC endpoint for DataSync"
  1052. value = concat(aws_vpc_endpoint.datasync.*.id, [""])[0]
  1053. }
  1054. output "vpc_endpoint_datasync_network_interface_ids" {
  1055. description = "One or more network interfaces for the VPC Endpoint for DataSync."
  1056. value = flatten(aws_vpc_endpoint.datasync.*.network_interface_ids)
  1057. }
  1058. output "vpc_endpoint_datasync_dns_entry" {
  1059. description = "The DNS entries for the VPC Endpoint for DataSync."
  1060. value = flatten(aws_vpc_endpoint.datasync.*.dns_entry)
  1061. }
  1062. output "vpc_endpoint_access_analyzer_id" {
  1063. description = "The ID of VPC endpoint for Access Analyzer"
  1064. value = concat(aws_vpc_endpoint.access_analyzer.*.id, [""])[0]
  1065. }
  1066. output "vpc_endpoint_access_analyzer_network_interface_ids" {
  1067. description = "One or more network interfaces for the VPC Endpoint for Access Analyzer."
  1068. value = flatten(aws_vpc_endpoint.access_analyzer.*.network_interface_ids)
  1069. }
  1070. output "vpc_endpoint_access_analyzer_dns_entry" {
  1071. description = "The DNS entries for the VPC Endpoint for Access Analyzer."
  1072. value = flatten(aws_vpc_endpoint.access_analyzer.*.dns_entry)
  1073. }
  1074. output "vpc_endpoint_acm_pca_id" {
  1075. description = "The ID of VPC endpoint for ACM PCA"
  1076. value = concat(aws_vpc_endpoint.acm_pca.*.id, [""])[0]
  1077. }
  1078. output "vpc_endpoint_acm_pca_network_interface_ids" {
  1079. description = "One or more network interfaces for the VPC Endpoint for ACM PCA."
  1080. value = flatten(aws_vpc_endpoint.acm_pca.*.network_interface_ids)
  1081. }
  1082. output "vpc_endpoint_acm_pca_dns_entry" {
  1083. description = "The DNS entries for the VPC Endpoint for ACM PCA."
  1084. value = flatten(aws_vpc_endpoint.acm_pca.*.dns_entry)
  1085. }
  1086. output "vpc_endpoint_ses_id" {
  1087. description = "The ID of VPC endpoint for SES"
  1088. value = concat(aws_vpc_endpoint.ses.*.id, [""])[0]
  1089. }
  1090. output "vpc_endpoint_ses_network_interface_ids" {
  1091. description = "One or more network interfaces for the VPC Endpoint for SES."
  1092. value = flatten(aws_vpc_endpoint.ses.*.network_interface_ids)
  1093. }
  1094. output "vpc_endpoint_ses_dns_entry" {
  1095. description = "The DNS entries for the VPC Endpoint for SES."
  1096. value = flatten(aws_vpc_endpoint.ses.*.dns_entry)
  1097. }
  1098. output "vpc_endpoint_textract_id" {
  1099. description = "The ID of VPC endpoint for Textract"
  1100. value = concat(aws_vpc_endpoint.textract.*.id, [""])[0]
  1101. }
  1102. output "vpc_endpoint_textract_network_interface_ids" {
  1103. description = "One or more network interfaces for the VPC Endpoint for Textract."
  1104. value = flatten(aws_vpc_endpoint.textract.*.network_interface_ids)
  1105. }
  1106. output "vpc_endpoint_textract_dns_entry" {
  1107. description = "The DNS entries for the VPC Endpoint for Textract."
  1108. value = flatten(aws_vpc_endpoint.textract.*.dns_entry)
  1109. }
  1110. output "vpc_endpoint_codeartifact_api_id" {
  1111. description = "The ID of VPC endpoint for Codeartifact API"
  1112. value = concat(aws_vpc_endpoint.codeartifact_api.*.id, [""])[0]
  1113. }
  1114. output "vpc_endpoint_codeartifact_api_network_interface_ids" {
  1115. description = "One or more network interfaces for the VPC Endpoint for Codeartifact API."
  1116. value = flatten(aws_vpc_endpoint.codeartifact_api.*.network_interface_ids)
  1117. }
  1118. output "vpc_endpoint_codeartifact_api_dns_entry" {
  1119. description = "The DNS entries for the VPC Endpoint for Codeartifact API."
  1120. value = flatten(aws_vpc_endpoint.codeartifact_api.*.dns_entry)
  1121. }
  1122. output "vpc_endpoint_codeartifact_repositories_id" {
  1123. description = "The ID of VPC endpoint for Codeartifact repositories"
  1124. value = concat(aws_vpc_endpoint.codeartifact_repositories.*.id, [""])[0]
  1125. }
  1126. output "vpc_endpoint_codeartifact_repositories_network_interface_ids" {
  1127. description = "One or more network interfaces for the VPC Endpoint for Codeartifact repositories."
  1128. value = flatten(aws_vpc_endpoint.codeartifact_repositories.*.network_interface_ids)
  1129. }
  1130. output "vpc_endpoint_codeartifact_repositories_dns_entry" {
  1131. description = "The DNS entries for the VPC Endpoint for Codeartifact repositories."
  1132. value = flatten(aws_vpc_endpoint.codeartifact_repositories.*.dns_entry)
  1133. }
  1134. # VPC flow log
  1135. output "vpc_flow_log_id" {
  1136. description = "The ID of the Flow Log resource"
  1137. value = concat(aws_flow_log.this.*.id, [""])[0]
  1138. }
  1139. output "vpc_flow_log_destination_arn" {
  1140. description = "The ARN of the destination for VPC Flow Logs"
  1141. value = local.flow_log_destination_arn
  1142. }
  1143. output "vpc_flow_log_destination_type" {
  1144. description = "The type of the destination for VPC Flow Logs"
  1145. value = var.flow_log_destination_type
  1146. }
  1147. output "vpc_flow_log_cloudwatch_iam_role_arn" {
  1148. description = "The ARN of the IAM role used when pushing logs to Cloudwatch log group"
  1149. value = local.flow_log_iam_role_arn
  1150. }
  1151. # Static values (arguments)
  1152. output "azs" {
  1153. description = "A list of availability zones specified as argument to this module"
  1154. value = var.azs
  1155. }
  1156. output "name" {
  1157. description = "The name of the VPC specified as argument to this module"
  1158. value = var.name
  1159. }