Skip to content

Commit 9de0081

Browse files
authored
Create vpc_link (#469)
1 parent ce52818 commit 9de0081

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
variable "name" {
2+
description = "The name of this vpc link"
3+
type = string
4+
}
5+
6+
variable "private_link_target_arns" {
7+
description = "A list of strings of the LB arns to link the API Gateway to"
8+
type = list(string)
9+
}
10+
11+
variable "tags" {
12+
description = "Tags"
13+
type = any
14+
}
15+
16+
resource "aws_api_gateway_vpc_link" "this" {
17+
name = var.name
18+
description = "VPC Link"
19+
target_arns = var.private_link_target_arns
20+
tags = var.tags
21+
}
22+
23+
output "id" {
24+
value = aws_api_gateway_vpc_link.this.id
25+
description = "Identifier of the VpcLink"
26+
}

0 commit comments

Comments
 (0)