Skip to content

Instantly share code, notes, and snippets.

@bmwitcher
Created October 19, 2020 21:25
Show Gist options
  • Save bmwitcher/fbacce7d33cc6794bc81268700163ca6 to your computer and use it in GitHub Desktop.
Save bmwitcher/fbacce7d33cc6794bc81268700163ca6 to your computer and use it in GitHub Desktop.
creating and attaching endpoints for vpc endpoint lab
resource "aws_vpc_endpoint" "s3" {
vpc_id = aws_vpc.My_VPC.id
service_name = "com.amazonaws.us-east-1.s3"
}
# associate route table with VPC endpoint
resource "aws_vpc_endpoint_route_table_association" "Private_route_table_association" {
route_table_id = aws_route_table.My_VPC_PRIVATE_route_table.id
vpc_endpoint_id = aws_vpc_endpoint.s3.id
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment