Skip to content

Latest commit

 

History

History
51 lines (40 loc) · 956 Bytes

README.md

File metadata and controls

51 lines (40 loc) · 956 Bytes

GitLab Server on AWS

Terraform configuration to deploy GitLab Enterprise Edition on AWS with Cloudflare DNS integration.

Quick Start

  1. Prepare terraform.tfvars:
# AWS
aws_region    = "us-east-1"
instance_type = "t3.large"
environment   = "production"

# GitLab
gitlab_domain        = "gitlab.yourdomain.com"
gitlab_root_password = "xxxxxxxxxx"  # Change this!
volume_size         = 100

# Cloudflare
cloudflare_zone_id   = "your-zone-id"
cloudflare_api_token = "your-api-token"
  1. Deploy:
terraform init
terraform apply
  1. Access GitLab:

Prerequisites

  • AWS CLI configured
  • Terraform installed
  • Cloudflare account with domain

Monitoring

CloudWatch logs available at /aws/ec2/gitlab

Server Access

aws ssm start-session --target <instance-id>

Cleanup

terraform destroy