-
Notifications
You must be signed in to change notification settings - Fork 12
/
extra_vpce.tf
157 lines (132 loc) · 5.57 KB
/
extra_vpce.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
resource "aws_vpc_endpoint" "ec2_vpce" {
vpc_id = aws_vpc.sneakyendpoints_vpc.id
service_name = "com.amazonaws.us-east-1.ec2"
vpc_endpoint_type = "Interface"
security_group_ids = [aws_security_group.allow_https.id]
private_dns_enabled = true
}
resource "aws_vpc_endpoint_subnet_association" "ec2_vpce_association" {
vpc_endpoint_id = aws_vpc_endpoint.ec2_vpce.id
subnet_id = aws_subnet.sneakyendpoints_private_subnet.id
}
resource "aws_vpc_endpoint" "rds_vpce" {
vpc_id = aws_vpc.sneakyendpoints_vpc.id
service_name = "com.amazonaws.us-east-1.rds"
vpc_endpoint_type = "Interface"
security_group_ids = [aws_security_group.allow_https.id]
private_dns_enabled = true
}
resource "aws_vpc_endpoint_subnet_association" "rds_vpce_association" {
vpc_endpoint_id = aws_vpc_endpoint.rds_vpce.id
subnet_id = aws_subnet.sneakyendpoints_private_subnet.id
}
resource "aws_vpc_endpoint" "ebs_vpce" {
vpc_id = aws_vpc.sneakyendpoints_vpc.id
service_name = "com.amazonaws.us-east-1.ebs"
vpc_endpoint_type = "Interface"
security_group_ids = [aws_security_group.allow_https.id]
private_dns_enabled = true
}
resource "aws_vpc_endpoint_subnet_association" "ebs_vpce_association" {
vpc_endpoint_id = aws_vpc_endpoint.ebs_vpce.id
subnet_id = aws_subnet.sneakyendpoints_private_subnet.id
}
resource "aws_vpc_endpoint" "ecs_vpce" {
vpc_id = aws_vpc.sneakyendpoints_vpc.id
service_name = "com.amazonaws.us-east-1.ecs"
vpc_endpoint_type = "Interface"
security_group_ids = [aws_security_group.allow_https.id]
private_dns_enabled = true
}
resource "aws_vpc_endpoint_subnet_association" "ecs_vpce_association" {
vpc_endpoint_id = aws_vpc_endpoint.ecs_vpce.id
subnet_id = aws_subnet.sneakyendpoints_private_subnet.id
}
resource "aws_vpc_endpoint" "redshift_vpce" {
vpc_id = aws_vpc.sneakyendpoints_vpc.id
service_name = "com.amazonaws.us-east-1.redshift"
vpc_endpoint_type = "Interface"
security_group_ids = [aws_security_group.allow_https.id]
private_dns_enabled = true
}
resource "aws_vpc_endpoint_subnet_association" "redshift_vpce_association" {
vpc_endpoint_id = aws_vpc_endpoint.redshift_vpce.id
subnet_id = aws_subnet.sneakyendpoints_private_subnet.id
}
resource "aws_vpc_endpoint" "cloudtrail_vpce" {
vpc_id = aws_vpc.sneakyendpoints_vpc.id
service_name = "com.amazonaws.us-east-1.cloudtrail"
vpc_endpoint_type = "Interface"
security_group_ids = [aws_security_group.allow_https.id]
private_dns_enabled = true
}
resource "aws_vpc_endpoint_subnet_association" "cloudtrail_vpce_association" {
vpc_endpoint_id = aws_vpc_endpoint.cloudtrail_vpce.id
subnet_id = aws_subnet.sneakyendpoints_private_subnet.id
}
resource "aws_vpc_endpoint" "sts_vpce" {
vpc_id = aws_vpc.sneakyendpoints_vpc.id
service_name = "com.amazonaws.us-east-1.sts"
vpc_endpoint_type = "Interface"
security_group_ids = [aws_security_group.allow_https.id]
private_dns_enabled = true
}
resource "aws_vpc_endpoint_subnet_association" "sts_vpce_association" {
vpc_endpoint_id = aws_vpc_endpoint.sts_vpce.id
subnet_id = aws_subnet.sneakyendpoints_private_subnet.id
}
resource "aws_vpc_endpoint" "codepipeline_vpce" {
vpc_id = aws_vpc.sneakyendpoints_vpc.id
service_name = "com.amazonaws.us-east-1.codepipeline"
vpc_endpoint_type = "Interface"
security_group_ids = [aws_security_group.allow_https.id]
private_dns_enabled = true
}
resource "aws_vpc_endpoint_subnet_association" "codepipeline_vpce_association" {
vpc_endpoint_id = aws_vpc_endpoint.codepipeline_vpce.id
subnet_id = aws_subnet.sneakyendpoints_private_subnet.id
}
resource "aws_vpc_endpoint" "kms_vpce" {
vpc_id = aws_vpc.sneakyendpoints_vpc.id
service_name = "com.amazonaws.us-east-1.kms"
vpc_endpoint_type = "Interface"
security_group_ids = [aws_security_group.allow_https.id]
private_dns_enabled = true
}
resource "aws_vpc_endpoint_subnet_association" "kms_vpce_association" {
vpc_endpoint_id = aws_vpc_endpoint.kms_vpce.id
subnet_id = aws_subnet.sneakyendpoints_private_subnet.id
}
resource "aws_vpc_endpoint" "lambda_vpce" {
vpc_id = aws_vpc.sneakyendpoints_vpc.id
service_name = "com.amazonaws.us-east-1.lambda"
vpc_endpoint_type = "Interface"
security_group_ids = [aws_security_group.allow_https.id]
private_dns_enabled = true
}
resource "aws_vpc_endpoint_subnet_association" "lambda_vpce_association" {
vpc_endpoint_id = aws_vpc_endpoint.lambda_vpce.id
subnet_id = aws_subnet.sneakyendpoints_private_subnet.id
}
resource "aws_vpc_endpoint" "sns_vpce" {
vpc_id = aws_vpc.sneakyendpoints_vpc.id
service_name = "com.amazonaws.us-east-1.sns"
vpc_endpoint_type = "Interface"
security_group_ids = [aws_security_group.allow_https.id]
private_dns_enabled = true
}
resource "aws_vpc_endpoint_subnet_association" "sns_vpce_association" {
vpc_endpoint_id = aws_vpc_endpoint.sns_vpce.id
subnet_id = aws_subnet.sneakyendpoints_private_subnet.id
}
resource "aws_vpc_endpoint" "sqs_vpce" {
vpc_id = aws_vpc.sneakyendpoints_vpc.id
service_name = "com.amazonaws.us-east-1.sqs"
vpc_endpoint_type = "Interface"
security_group_ids = [aws_security_group.allow_https.id]
private_dns_enabled = true
}
resource "aws_vpc_endpoint_subnet_association" "sqs_vpce_association" {
vpc_endpoint_id = aws_vpc_endpoint.sqs_vpce.id
subnet_id = aws_subnet.sneakyendpoints_private_subnet.id
}