Important
This topic describes how to provision infrastructure with Amazon Web Services Cloud Development Kit (AWS CDK). After the infrastructure is in place, you can deploy Domino on Amazon Elastic Kubernetes Service (EKS).
-
Install
aws-cdk
:npm install -g aws-cdk@1.187.0
-
Clone the Domino CDK EKS stack:
git clone https://github.com/dominodatalab/cdk-cf-eks.git cd cdk-cf-eks/cdk
-
Install packages:
python3 -m venv .venv source .venv/bin/activate pip install -r requirements.txt
Note -
Use environment variables to set the values of IDs, names, and labels.
export DEPLOY_NAME=<Name of deployment> export AWS_REGION=<The region to deploy the resources> export AWS_ACCOUNT_ID=<Your AWS account ID>
Important -
If you haven’t configured your workstation with your credentials, run
aws configure
. -
Enter the required parameters and run the following command to generate the configuration for the CDK:
./util.py generate_config_template \ --name $DEPLOY_NAME \ --aws-region $AWS_REGION \ --aws-account-id $AWS_ACCOUNT_ID \ --acm-cert-arn <The Amazon Resource Name (ARN) of the cert for your domain> \ --hostname <Your domain name> \ --bastion --private-api --keypair-name <Your keypair name> \ --registry-username <`quay.io` username provided by Domino> \ --registry-password <`quay.io` password provided by Domino> > ./config.yaml
-
Run
cdk deploy
.
Note