Skip to content

Instantly share code, notes, and snippets.

@100daysofdevops
Created March 20, 2019 22:57
Show Gist options
  • Select an option

  • Save 100daysofdevops/a08d0450561d96c3b7cf8d0843a2c4d8 to your computer and use it in GitHub Desktop.

Select an option

Save 100daysofdevops/a08d0450561d96c3b7cf8d0843a2c4d8 to your computer and use it in GitHub Desktop.
resource "aws_vpc_endpoint" "ec2logs"{
vpc_id ="${var.vpc_id}"
service_name = "com.amazonaws.us-west-2.logs"
subnet_ids = ["${var.subnet_id}"]
vpc_endpoint_type = "Interface"
security_group_ids = [
"${var.security_group}"
]
policy = <<POLICY
{
"Statement": [
{
"Action": "*",
"Effect": "Allow",
"Resource": "*",
"Principal": "*"
}
]
}
POLICY
private_dns_enabled = true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment