Created
October 19, 2020 21:25
-
-
Save bmwitcher/fbacce7d33cc6794bc81268700163ca6 to your computer and use it in GitHub Desktop.
creating and attaching endpoints for vpc endpoint lab
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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