This project demonstrates how to use Terraform to build a DynamoDB Interface endpoint powered by AWS PrivateLink. AWS PrivateLink support for DynamoDB enables direct hybrid private access to DynamoDB resources from on-prem without setting up a proxy in the VPC. We will demonstrate hybrid connectivity to DynamoDB using AWS VPN Client.
Before you begin, ensure you have the following:
- AWS account
- Terraform installed locally
- AWS CLI installed and configured with appropriate access credentials
- OpenVPN client like AWS Client VPN
-
Clone this repository:
git clone https://github.com/FonNkwenti/tf-ddb-privateLink.git
-
Navigate to the project directory:
cd tf-ddb-privateLink
-
Initialize Terraform:
terraform init
-
Review and modify
variables.tf
to customize your API configurations. -
Create a
terraform.tfvars
file in the root directory and pass in values forregion
,account_id
,tag_environment
andtag_project
region = "eu-central-1" account_id = <<your account id>> tag_environment = "dev" tag_project = "tf-ddb-privateLink"
-
Apply the Terraform configure:
terraform apply
-
After the apply is complete, Terraform will output the private API Gateway URL which can be used to access the private Serverless REST API endpoints.
Remove all resources created by Terraform.
terraform destroy
This project is licensed under the MIT License - see the LICENSE
file for details.