Migrate a service behind an ALB to a new region. This repo is used to set up the infrastructure used to show how to migrate a service to a new region for a webinar.
- Create an IAM user with sufficient permissions to create the infrastructure you require. Generate an API key for the user, and create a named profile in
~/.aws/credentialsthat looks like this:
[aws-webinar]
aws_access_key_id = your_api_key
aws_secret_access_key = your_api_key_secret
-
Create an S3 bucket in your region of choice. Edit
infra/terraform-state.tfby replacing thebucket,regionandprofilevalues to what you have configured. -
Run
terraform initin theinfradirectory. -
In
infra/variables.tf, change thegithub_usernameandgithub_repo_namedefaults to your ones. -
Create
infra/secret.tfwith the following:
locals {
webhook_secret = "web-hook-secret-shared-string"
github_token = "github-token-with-permission-to-create-webhooks"
github_username = "cobusbernard"
}