Skip to content

Commit 6b4200f

Browse files
adds VPCE for Cloudwatch Events
1 parent 7daa536 commit 6b4200f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

vpce.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ resource "aws_vpc_endpoint" "secretsmanager" {
1616
private_dns_enabled = true
1717
}
1818

19+
resource "aws_vpc_endpoint" "events" {
20+
vpc_id = data.aws_vpc.vpc.id
21+
service_name = "com.amazonaws.${var.region}.events"
22+
vpc_endpoint_type = "Interface"
23+
subnet_ids = [var.subnet_id]
24+
security_group_ids = [aws_security_group.allow_vpce.id]
25+
private_dns_enabled = true
26+
}
27+
28+
1929
resource "aws_security_group" "allow_vpce" {
2030
name = "allow_vpce"
2131
description = "Allow access to the VPCE"

0 commit comments

Comments
 (0)