8000 GitHub - serverless-ca/alb: AWS Application Load Balancer for testing mTLS with open-source cloud Certificate Authority
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

serverless-ca/alb

Repository files navigation

alb

AWS Application Load Balancer for testing mTLS with open-source cloud Certificate Authority

Alt text

📖 use in conjunction with blog post Application Load Balancer mTLS with open-source cloud CA

Alt text

  • deploys resources using Terraform:
    • VPC
    • 2 x EC2 in auto-scaling group
    • 2 x NAT Gateways
    • Application Load Balancer
    • Certificate for ALB in AWS Certificate Manager
    • Route53 record
  • configure mTLS manually using the console as detailed in the blog

Warning

This infrastructure is expensive to run - destroy immediately after use!

Requirements

You'll need to already have in your AWS account:

  • Route53 public hosted zone
  • S3 bucket for Terraform state

Local Deployment - Terraform

  • update backend.tf with details of your Terraform state S3 bucket
  • duplicate terraform-tfvars.example, rename without the .example suffix
  • enter values for:
    • fully qualified domain name for application
    • hosted zone ID
terraform init
terraform workspace new dev
terraform plan
terraform apply

Alternatively use backend.tf as is, and initialise with:

terraform init -backend-config=bucket={YOUR_TERRAFORM_STATE_BUCKET} -backend-config=key="alb/terraform.state" -backend-config=region={YOUR_TERRAFORM_STATE_REGION}

Destroy environment

  • to avoid large bills, when you've finished testing, ensure you delete everything:
terraform destroy

About

AWS Application Load Balancer for testing mTLS with open-source cloud Certificate Authority

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0