@@ -12,6 +12,7 @@ resource "aws_vpc_endpoint" "s3" {
12
12
13
13
vpc_id = local. vpc_id
14
14
service_name = data. aws_vpc_endpoint_service . s3 [0 ]. service_name
15
+ tags = local. vpce_tags
15
16
}
16
17
17
18
resource "aws_vpc_endpoint_route_table_association" "private_s3" {
@@ -49,6 +50,7 @@ resource "aws_vpc_endpoint" "dynamodb" {
49
50
50
51
vpc_id = local. vpc_id
51
52
service_name = data. aws_vpc_endpoint_service . dynamodb [0 ]. service_name
53
+ tags = local. vpce_tags
52
54
}
53
55
54
56
resource "aws_vpc_endpoint_route_table_association" "private_dynamodb" {
@@ -92,6 +94,7 @@ resource "aws_vpc_endpoint" "codebuild" {
92
94
security_group_ids = var. codebuild_endpoint_security_group_ids
93
95
subnet_ids = coalescelist (var. codebuild_endpoint_subnet_ids , aws_subnet. private . * . id )
94
96
private_dns_enabled = var. codebuild_endpoint_private_dns_enabled
97
+ tags = local. vpce_tags
95
98
}
96
99
97
100
# ##############################
@@ -113,6 +116,7 @@ resource "aws_vpc_endpoint" "codecommit" {
113
116
security_group_ids = var. codecommit_endpoint_security_group_ids
114
117
subnet_ids = coalescelist (var. codecommit_endpoint_subnet_ids , aws_subnet. private . * . id )
115
118
private_dns_enabled = var. codecommit_endpoint_private_dns_enabled
119
+ tags = local. vpce_tags
116
120
}
117
121
118
122
# ##################################
@@ -134,6 +138,7 @@ resource "aws_vpc_endpoint" "git_codecommit" {
134
138
security_group_ids = var. git_codecommit_endpoint_security_group_ids
135
139
subnet_ids = coalescelist (var. git_codecommit_endpoint_subnet_ids , aws_subnet. private . * . id )
136
140
private_dns_enabled = var. git_codecommit_endpoint_private_dns_enabled
141
+ tags = local. vpce_tags
137
142
}
138
143
139
144
# #########################
@@ -155,6 +160,7 @@ resource "aws_vpc_endpoint" "config" {
155
160
security_group_ids = var. config_endpoint_security_group_ids
156
161
subnet_ids = coalescelist (var. config_endpoint_subnet_ids , aws_subnet. private . * . id )
157
162
private_dns_enabled = var. config_endpoint_private_dns_enabled
163
+ tags = local. vpce_tags
158
164
}
159
165
160
166
# ######################
@@ -176,6 +182,7 @@ resource "aws_vpc_endpoint" "sqs" {
176
182
security_group_ids = var. sqs_endpoint_security_group_ids
177
183
subnet_ids = coalescelist (var. sqs_endpoint_subnet_ids , aws_subnet. private . * . id )
178
184
private_dns_enabled = var. sqs_endpoint_private_dns_enabled
185
+ tags = local. vpce_tags
179
186
}
180
187
181
188
# ##################################
@@ -197,6 +204,7 @@ resource "aws_vpc_endpoint" "secretsmanager" {
197
204
security_group_ids = var. secretsmanager_endpoint_security_group_ids
198
205
subnet_ids = coalescelist (var. secretsmanager_endpoint_subnet_ids , aws_subnet. private . * . id )
199
206
private_dns_enabled = var. secretsmanager_endpoint_private_dns_enabled
207
+ tags = local. vpce_tags
200
208
}
201
209
202
210
# ######################
@@ -218,6 +226,7 @@ resource "aws_vpc_endpoint" "ssm" {
218
226
security_group_ids = var. ssm_endpoint_security_group_ids
219
227
subnet_ids = coalescelist (var. ssm_endpoint_subnet_ids , aws_subnet. private . * . id )
220
228
private_dns_enabled = var. ssm_endpoint_private_dns_enabled
229
+ tags = local. vpce_tags
221
230
}
222
231
223
232
# ##############################
@@ -239,6 +248,7 @@ resource "aws_vpc_endpoint" "ssmmessages" {
239
248
security_group_ids = var. ssmmessages_endpoint_security_group_ids
240
249
subnet_ids = coalescelist (var. ssmmessages_endpoint_subnet_ids , aws_subnet. private . * . id )
241
250
private_dns_enabled = var. ssmmessages_endpoint_private_dns_enabled
251
+ tags = local. vpce_tags
242
252
}
243
253
244
254
# ######################
@@ -260,6 +270,7 @@ resource "aws_vpc_endpoint" "ec2" {
260
270
security_group_ids = var. ec2_endpoint_security_group_ids
261
271
subnet_ids = coalescelist (var. ec2_endpoint_subnet_ids , aws_subnet. private . * . id )
262
272
private_dns_enabled = var. ec2_endpoint_private_dns_enabled
273
+ tags = local. vpce_tags
263
274
}
264
275
265
276
# ##############################
@@ -281,6 +292,7 @@ resource "aws_vpc_endpoint" "ec2messages" {
281
292
security_group_ids = var. ec2messages_endpoint_security_group_ids
282
293
subnet_ids = coalescelist (var. ec2messages_endpoint_subnet_ids , aws_subnet. private . * . id )
283
294
private_dns_enabled = var. ec2messages_endpoint_private_dns_enabled
295
+ tags = local. vpce_tags
284
296
}
285
297
286
298
# ##################################
@@ -302,6 +314,7 @@ resource "aws_vpc_endpoint" "transferserver" {
302
314
security_group_ids = var. transferserver_endpoint_security_group_ids
303
315
subnet_ids = coalescelist (var. transferserver_endpoint_subnet_ids , aws_subnet. private . * . id )
304
316
private_dns_enabled = var. transferserver_endpoint_private_dns_enabled
317
+ tags = local. vpce_tags
305
318
}
306
319
307
320
# ##########################
@@ -323,6 +336,7 @@ resource "aws_vpc_endpoint" "ecr_api" {
323
336
security_group_ids = var. ecr_api_endpoint_security_group_ids
324
337
subnet_ids = coalescelist (var. ecr_api_endpoint_subnet_ids , aws_subnet. private . * . id )
325
338
private_dns_enabled = var. ecr_api_endpoint_private_dns_enabled
339
+ tags = local. vpce_tags
326
340
}
327
341
328
342
# ##########################
@@ -344,6 +358,7 @@ resource "aws_vpc_endpoint" "ecr_dkr" {
344
358
security_group_ids = var. ecr_dkr_endpoint_security_group_ids
345
359
subnet_ids = coalescelist (var. ecr_dkr_endpoint_subnet_ids , aws_subnet. private . * . id )
346
360
private_dns_enabled = var. ecr_dkr_endpoint_private_dns_enabled
361
+ tags = local. vpce_tags
347
362
}
348
363
349
364
# ######################
@@ -365,6 +380,7 @@ resource "aws_vpc_endpoint" "apigw" {
365
380
security_group_ids = var. apigw_endpoint_security_group_ids
366
381
subnet_ids = coalescelist (var. apigw_endpoint_subnet_ids , aws_subnet. private . * . id )
367
382
private_dns_enabled = var. apigw_endpoint_private_dns_enabled
383
+ tags = local. vpce_tags
368
384
}
369
385
370
386
# ######################
@@ -386,6 +402,7 @@ resource "aws_vpc_endpoint" "kms" {
386
402
security_group_ids = var. kms_endpoint_security_group_ids
387
403
subnet_ids = coalescelist (var. kms_endpoint_subnet_ids , aws_subnet. private . * . id )
388
404
private_dns_enabled = var. kms_endpoint_private_dns_enabled
405
+ tags = local. vpce_tags
389
406
}
390
407
391
408
# ######################
@@ -407,6 +424,7 @@ resource "aws_vpc_endpoint" "ecs" {
407
424
security_group_ids = var. ecs_endpoint_security_group_ids
408
425
subnet_ids = coalescelist (var. ecs_endpoint_subnet_ids , aws_subnet. private . * . id )
409
426
private_dns_enabled = var. ecs_endpoint_private_dns_enabled
427
+ tags = local. vpce_tags
410
428
}
411
429
412
430
@@ -429,6 +447,7 @@ resource "aws_vpc_endpoint" "ecs_agent" {
429
447
security_group_ids = var. ecs_agent_endpoint_security_group_ids
430
448
subnet_ids = coalescelist (var. ecs_agent_endpoint_subnet_ids , aws_subnet. private . * . id )
431
449
private_dns_enabled = var. ecs_agent_endpoint_private_dns_enabled
450
+ tags = local. vpce_tags
432
451
}
433
452
434
453
@@ -451,6 +470,7 @@ resource "aws_vpc_endpoint" "ecs_telemetry" {
451
470
security_group_ids = var. ecs_telemetry_endpoint_security_group_ids
452
471
subnet_ids = coalescelist (var. ecs_telemetry_endpoint_subnet_ids , aws_subnet. private . * . id )
453
472
private_dns_enabled = var. ecs_telemetry_endpoint_private_dns_enabled
473
+ tags = local. vpce_tags
454
474
}
455
475
456
476
@@ -473,6 +493,7 @@ resource "aws_vpc_endpoint" "sns" {
473
493
security_group_ids = var. sns_endpoint_security_group_ids
474
494
subnet_ids = coalescelist (var. sns_endpoint_subnet_ids , aws_subnet. private . * . id )
475
495
private_dns_enabled = var. sns_endpoint_private_dns_enabled
496
+ tags = local. vpce_tags
476
497
}
477
498
478
499
@@ -495,6 +516,7 @@ resource "aws_vpc_endpoint" "monitoring" {
495
516
security_group_ids = var. monitoring_endpoint_security_group_ids
496
517
subnet_ids = coalescelist (var. monitoring_endpoint_subnet_ids , aws_subnet. private . * . id )
497
518
private_dns_enabled = var. monitoring_endpoint_private_dns_enabled
519
+ tags = local. vpce_tags
498
520
}
499
521
500
522
@@ -517,6 +539,7 @@ resource "aws_vpc_endpoint" "logs" {
517
539
security_group_ids = var. logs_endpoint_security_group_ids
518
540
subnet_ids = coalescelist (var. logs_endpoint_subnet_ids , aws_subnet. private . * . id )
519
541
private_dns_enabled = var. logs_endpoint_private_dns_enabled
542
+ tags = local. vpce_tags
520
543
}
521
544
522
545
@@ -539,6 +562,7 @@ resource "aws_vpc_endpoint" "events" {
539
562
security_group_ids = var. events_endpoint_security_group_ids
540
563
subnet_ids = coalescelist (var. events_endpoint_subnet_ids , aws_subnet. private . * . id )
541
564
private_dns_enabled = var. events_endpoint_private_dns_enabled
565
+ tags = local. vpce_tags
542
566
}
543
567
544
568
@@ -561,6 +585,7 @@ resource "aws_vpc_endpoint" "elasticloadbalancing" {
561
585
security_group_ids = var. elasticloadbalancing_endpoint_security_group_ids
562
586
subnet_ids = coalescelist (var. elasticloadbalancing_endpoint_subnet_ids , aws_subnet. private . * . id )
563
587
private_dns_enabled = var. elasticloadbalancing_endpoint_private_dns_enabled
588
+ tags = local. vpce_tags
564
589
}
565
590
566
591
@@ -583,6 +608,7 @@ resource "aws_vpc_endpoint" "cloudtrail" {
583
608
security_group_ids = var. cloudtrail_endpoint_security_group_ids
584
609
subnet_ids = coalescelist (var. cloudtrail_endpoint_subnet_ids , aws_subnet. private . * . id )
585
610
private_dns_enabled = var. cloudtrail_endpoint_private_dns_enabled
611
+ tags = local. vpce_tags
586
612
}
587
613
588
614
@@ -605,6 +631,7 @@ resource "aws_vpc_endpoint" "kinesis_streams" {
605
631
security_group_ids = var. kinesis_streams_endpoint_security_group_ids
606
632
subnet_ids = coalescelist (var. kinesis_streams_endpoint_subnet_ids , aws_subnet. private . * . id )
607
633
private_dns_enabled = var. kinesis_streams_endpoint_private_dns_enabled
634
+ tags = local. vpce_tags
608
635
}
609
636
610
637
@@ -627,6 +654,7 @@ resource "aws_vpc_endpoint" "kinesis_firehose" {
627
654
security_group_ids = var. kinesis_firehose_endpoint_security_group_ids
628
655
subnet_ids = coalescelist (var. kinesis_firehose_endpoint_subnet_ids , aws_subnet. private . * . id )
629
656
private_dns_enabled = var. kinesis_firehose_endpoint_private_dns_enabled
657
+ tags = local. vpce_tags
630
658
}
631
659
632
660
# ######################
@@ -648,6 +676,7 @@ resource "aws_vpc_endpoint" "glue" {
648
676
security_group_ids = var. glue_endpoint_security_group_ids
649
677
subnet_ids = coalescelist (var. glue_endpoint_subnet_ids , aws_subnet. private . * . id )
650
678
private_dns_enabled = var. glue_endpoint_private_dns_enabled
679
+ tags = local. vpce_tags
651
680
}
652
681
653
682
# #####################################
@@ -669,6 +698,7 @@ resource "aws_vpc_endpoint" "sagemaker_notebook" {
669
698
security_group_ids = var. sagemaker_notebook_endpoint_security_group_ids
670
699
subnet_ids = coalescelist (var. sagemaker_notebook_endpoint_subnet_ids , aws_subnet. private . * . id )
671
700
private_dns_enabled = var. sagemaker_notebook_endpoint_private_dns_enabled
701
+ tags = local. vpce_tags
672
702
}
673
703
674
704
# ######################
@@ -690,4 +720,5 @@ resource "aws_vpc_endpoint" "sts" {
690
720
security_group_ids = var. sts_endpoint_security_group_ids
691
721
subnet_ids = coalescelist (var. sts_endpoint_subnet_ids , aws_subnet. private . * . id )
692
722
private_dns_enabled = var. sts_endpoint_private_dns_enabled
723
+ tags = local. vpce_tags
693
724
}
0 commit comments