Amazon API Gateway for mTLS testing with open-source cloud certificate authority
📖 use in conjunction with blog post API Gateway mTLS with open-source cloud CA
- deploys API Gateway and Lambda function using Terraform
- API Gateway allows public API execution and no authentication
- configure mTLS manually using the console as detailed in the blog
- this includes removal of the public execute API endpoint
Don't use this Terraform code as-is to deploy a confidential API Gateway - it has a public execute API endpoint which can be invoked by anyone.
terraform init -backend-config=bucket={YOUR_TERRAFORM_STATE_BUCKET} -backend-config=key=api-gateway -backend-config=region={YOUR_TERRAFORM_STATE_REGION}
terraform plan
terraform apply
Alternatively update backend.tf
with details of your Terraform state S3 bucket.