Skip to content

Terraform module for atlantis server running in AWS ECS Fargate

Notifications You must be signed in to change notification settings

mbrtargeting/tf-atlantis

Repository files navigation

Atlantis Terraform Module

Terraform Module for Atlantis environment in Gitlab and Github running in AWS ECS Fargate.

Requirements

Name Version
aws ~> 5.8

Providers

Name Version
aws 5.51.0
random 3.6.2

Modules

Name Source Version
atlantis terraform-aws-modules/atlantis/aws n/a

Resources

Name Type
aws_secretsmanager_secret.atlantis_gh_secret resource
aws_secretsmanager_secret.atlantis_gh_token resource
aws_secretsmanager_secret.atlantis_gitlab_secret resource
aws_secretsmanager_secret.atlantis_gitlab_token resource
aws_secretsmanager_secret.atlantis_web_password resource
aws_secretsmanager_secret_version.atlantis_gh_secret resource
aws_secretsmanager_secret_version.atlantis_gh_token resource
aws_secretsmanager_secret_version.atlantis_gitlab_secret resource
aws_secretsmanager_secret_version.atlantis_gitlab_token resource
aws_secretsmanager_secret_version.atlantis_web_password resource
aws_ssm_parameter.atlantis_gh_username resource
aws_ssm_parameter.atlantis_gitlab_username resource
aws_ssm_parameter.atlantis_repo_list resource
random_password.atlantis_gh_secret resource
random_password.atlantis_gitlab_secret resource
random_password.atlantis_web_password resource
aws_caller_identity.current data source
aws_secretsmanager_secret_version.atlantis_gitlab_token data source
aws_subnets.private data source
aws_subnets.public data source

Inputs

Name Description Type Default Required
acc_name the account name string n/a yes
atlantis_dns_name the DNS name for the atlantis web interface string n/a yes
atlantis_vpc_id a valid aws_vpc id to install components in string n/a yes
atlantis_web_password password for the atlantis web interface string n/a yes
atlantis_web_username username for the atlantis web interface string n/a yes
atlantis_zone_id a valid Route 53 Zone ID managing the presented core_domain string n/a yes
autoscaling_max_capacity maximum number of instances in the autoscaling group number 4 no
cpu cpu for the ECS task number 512 no
enable_autoscaling enable autoscaling for the ECS service bool true no
exec_iam_role_policies map of IAM policies for the ECS task execution map(string) n/a yes
github_username the username for the github account string "" no
gitlab_hostname base domain to be used for gitlab. Has to exist as Route53 zone in account string "code.example.com" no
gitlab_username the username for the gitlab account string "" no
kms_key_id KMS key id for the log group string n/a yes
log_group_name name of the log group for the ECS cluster string n/a yes
memory memory for the ECS task number 2048 no
nickname The organisation nickname string n/a yes
region valid AWS region to deploy to string "eu-central-1" no
repo_list list of repositories to be managed by atlantis list(string) n/a yes
stage the account stage-name string n/a yes
task_iam_role_arn ARN of the IAM role for the ECS task string n/a yes

Outputs

No outputs.