Make sure you have done all the steps in the Getting Started section and set the following environment variables which are required for installing Gitmoxi on ECS Fargate.
AWS_REGION
AWS_ACCOUNT
AWS_PROFILE
GITHUB_TOKEN
The Gitmoxi Terraform will use your AWS credentials to create the following resources. Ensure that your signed-in user has permissions to create:
Resource Type | Details |
---|---|
Network Infrastructure | • VPC with subnets (1 private, 1 public per AZ) • NAT Gateways • Internet Gateways |
Load Balancing | • Application Load Balancer (ALB) • One listener • Two target groups for blue/green deployment • Security group for load balancer |
Container Services | • ECS cluster • Gitmoxi ECS service and task definition • Security group for Gitmoxi ECS task |
IAM | • IAM roles for Gitmoxi ECS task |
Logging | • CloudWatch log group for Gitmoxi containers |
Start by setting few input variables needed by the Terraform module.
export TF_VAR_github_token=$GITHUB_TOKEN
export TF_VAR_aws_region=$AWS_REGION
export TF_VAR_aws_account_id=$AWS_ACCOUNT
Go to the gitmoxi-trial
directory, which is obtained by unzipping the trial download file you recieved in email. Under the ecs-fargate
directory you will find the gitmoxi.tf
which has all the infrastructure needed for installing Gitmoxi on ECS/Fargate.
cd gitmoxi-trial
export GITMOXI_DEPLOY_DIR=$PWD
cd ecs-fargate
terraform init
terraform apply --auto-approve
export GITMOXI_ENDPOINT_URL="http://$(terraform output -raw alb_endpoint)"
export GITMOXI_TASK_IAM_ROLE="$(terraform output -raw task_iam_role)"
echo $GITMOXI_ENDPOINT_URL
The Terraform output will give the ALB DNS where you can access the Gitmoxi frontend. Once gitmoxi-svc
is running in the gitmoxi
cluster in the region you specified, then you can should see below page at the ALB URL. The ECS task IAM role will be needed in the EKS test section; hence we have setup the environment variable GITMOXI_TASK_IAM_ROLE
.
Wait for the gitmoxi
service to be ready. You should see the below UI at $GITMOXI_ENDPOINT_URL
before proceeding with the next steps.
Next, we will add a GitHub repository to Gitmoxi to test the GitOps workflow.
Experience the power of Gitmoxi — your go-to solution for simple, flexible, and transparent deployment management