Deploy the Atlantis Server with ECS Fargate. This should be used as a git submodule with geodesic
.
This project is part of our comprehensive "SweetOps" approach towards DevOps.
It's 100% Open Source and licensed under the APACHE2.
Atlantis will be invoked with chamber to expose the secrets as environment variables.
IMPORTANT Make sure to write the parameters to the same region as your ECS tasks.
# Allow atlantis to process `atlantis.yaml`
chamber write atlantis ATLANTIS_ALLOW_REPO_CONFIG true
# Set the log verbosity
chamber write atlantis ATLANTIS_LOG_LEVEL debug
# Set the listen port for atlantis
chamber write atlantis ATLANTIS_PORT 4141
# Set the atlantis webhook base URL
chamber write atlantis ATLANTIS_ATLANTIS_URL https://atlantis.ourcomain.com
# Set the GitHub user corresponding to the personal access token
chamber write atlantis ATLANTIS_GH_USER outcompanybot
# Set the GitHub personal access token corresponding to the github user
chamber write atlantis ATLANTIS_GH_TOKEN the-token-generated-by-github
# Set the WebHook callback secret
chamber write atlantis ATLANTIS_GH_WEBHOOK_SECRET $(uuidgen)
# Set the permitted repositories
chamber write atlantis ATLANTIS_REPO_WHITELIST 'github.com/cloudposse/*'
# Permissions granted to teams
chamber write atlantis ATLANTIS_GH_TEAM_WHITELIST engineering:plan,testing:*
# Configuration this atlantis server will monitor
chamber write atlantis ATLANTIS_REPO_CONFIG atlantis/testing.yaml
# Command that atlantis will watch for
chamber write atlantis ATLANTIS_WAKE_WORD atlantis/testing
# Docker image to use with ECS
chamber write atlantis ATLANTIS_IMAGE cloudposse/testing.cloudposse.co:dev
# ACM Certificate domain
chamber write atlantis ATLANTIS_DOMAIN ourcompany.com
# ACM Alternative name
chamber write atlantis ATLANTIS_HOSTNAME atlantis.ourcompany.com
# Stage that we're operating under
chamber write atlantis STAGE testing
This commands are asynchronous. You may need to retry them multiple times.
chamber exec atlantis -- make create/iam-role
chamber exec atlantis -- make create/certificate
chamber exec atlantis -- make validate/certificate
chamber exec atlantis -- make create/lb
chamber exec atlatnis -- make create/service
Available targets:
create/certificate Provision ACM certificate
create/iam-role Provision IAM role
create/lb Create ALB
create/lb/alias Create ALB Route53 Alias
create/service Create ECS Service
create/task Deploy one-off ECS task (not recommended)
deploy Deploy the latest image
destroy/certificate Destroy ACM certificate
destroy/lb Destroy ALB
destroy/service Destroy ECS service
destroy/task Destroy one-off task
docker/run Run atlantis (for local development)
help Help screen
help/all Display help for all targets
help/short This help short screen
info Describe status of ECS Service
logs Tail logs from ECS service
validate/certificate Validate ACM certificate
Check out these related projects.
- geodesic - Geodesic is the fastest way to get up and running with a rock solid, production grade cloud platform built on strictly Open Source tools.
- packages - Cloud Posse installer and distribution of native apps and alpine (apk) packages
- build-harness - Collection of Makefiles to facilitate building Golang projects, Dockerfiles, Helm charts, and more
For additional context, refer to some of these links.
- terraform-root-modules - Collection of Terraform "root module" invocations for provisioning reference architectures
- root.cloudposse.co - Example Terraform Reference Architecture of a Geodesic Module for a Parent ("Root") Organization in AWS.
- audit.cloudposse.co - Example Terraform Reference Architecture of a Geodesic Module for an Audit Logs Organization in AWS.
- prod.cloudposse.co - Example Terraform Reference Architecture of a Geodesic Module for a Production Organization in AWS.
- staging.cloudposse.co - Example Terraform Reference Architecture of a Geodesic Module for a Staging Organization in AWS.
- dev.cloudposse.co - Example Terraform Reference Architecture of a Geodesic Module for a Development Sandbox Organization in AWS.
Got a question?
File a GitHub issue, send us an email or join our Slack Community.
Work directly with our team of DevOps experts via email, slack, and video conferencing.
We provide commercial support for all of our Open Source projects. As a Dedicated Support customer, you have access to our team of subject matter experts at a fraction of the cost of a full-time engineer.
- Questions. We'll use a Shared Slack channel between your team and ours.
- Troubleshooting. We'll help you triage why things aren't working.
- Code Reviews. We'll review your Pull Requests and provide constructive feedback.
- Bug Fixes. We'll rapidly work to fix any bugs in our projects.
- Build New Terraform Modules. We'll develop original modules to provision infrastructure.
- Cloud Architecture. We'll assist with your cloud strategy and design.
- Implementation. We'll provide hands-on support to implement our reference architectures.
Get access to our Open Source Community Forum on Slack. It's FREE to join for everyone! Our "SweetOps" community is where you get to talk with others who share a similar vision for how to rollout and manage infrastructure. This is the best place to talk shop, ask questions, solicit feedback, and work together as a community to build sweet infrastructure.
Please use the issue tracker to report any bugs or file feature requests.
If you are interested in being a contributor and want to get involved in developing this project or help out with our other projects, we would love to hear from you! Shoot us an email.
In general, PRs are welcome. We follow the typical "fork-and-pull" Git workflow.
- Fork the repo on GitHub
- Clone the project to your own machine
- Commit changes to your own branch
- Push your work back up to your fork
- Submit a Pull Request so that we can review your changes
NOTE: Be sure to merge the latest changes from "upstream" before making a pull request!
Copyright © 2017-2018 Cloud Posse, LLC
See LICENSE for full details.
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
All other trademarks referenced herein are the property of their respective owners.
This project is maintained and funded by Cloud Posse, LLC. Like it? Please let us know at hello@cloudposse.com
We're a DevOps Professional Services company based in Los Angeles, CA. We love Open Source Software!
We offer paid support on all of our projects.
Check out our other projects, apply for a job, or hire us to help with your cloud strategy and implementation.
Erik Osterman |
Igor Rodionov |
Andriy Knysh |
---|