Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 1.7 KB

README.md

File metadata and controls

51 lines (32 loc) · 1.7 KB

DATA MESH BASE INFRASTRUCTURE

This small project creates the base infrastructure for a TW Data Mesh Accelerator in AWS.

Installation REQUIREMENTS

  1. AWS CLI
  2. Terraform CLI
  3. Taskfile
  4. docker

BOOTSTRAP INFRASTRUCTURE

Creates the Terraform S3 Backend for EKS resources

Authentication

Authenticate to ghcr.io to pull deployment enviornment

Assume AWS Admin Role

Create datamesh-base-admin profile and assume admin role using sso

PROFILE_NAME=datamesh-base-admin

aws configure set --profile "$PROFILE_NAME" sso_start_url "https://d-99672c8a5f.awsapps.com/start#/"
aws configure set --profile "$PROFILE_NAME" sso_region "eu-central-1"
aws configure set --profile "$PROFILE_NAME" sso_account_id "182174426630"
aws configure set --profile "$PROFILE_NAME" region "us-east-2"
aws configure set --profile "$PROFILE_NAME" sso_role_name "Admin-Account-Access"

aws sso login --profile $PROFILE_NAME
export AWS_DEFAULT_PROFILE=$PROFILE_NAME

Bootstrap

create s3 backend for eks resources

task bootstrap-eks AWS_ADMIN_PROFILE=datamesh-base-admin

Build EKS Resources

Push commit to trigger build-eks pipeline

Refactor Ideas:

  • move k8/aws-auth management from Taskfile (eks create ...) into eks terraform module (manage_aws_auth_configmap var in eks module)