Files
nexus/wiki/entities/Atlantis.md
2026-05-03 05:42:12 +08:00

38 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Atlantis"
type: entity
entity_type: tool
tags:
- IaC
- DevOps
- Terraform
- GitOps
- CI/CD
sources:
- ctp-topic-48-terraform-vs-terragrunt.md
- learning-sessions-cloud-transformation-programme-deploying-rds-via-terraform
last_updated: 2026-04-14
---
## Overview
Atlantis 是一个开源的 Pull Request 驱动的 Terraform 自动化工具,将 Terraform 与 GitHub/GitLab 等 Git 平台深度集成,实现基础设施即代码的协作式管理。
## Core Mechanism
- **PR 触发**:当 Pull Request 打开或更新时,自动运行 `terraform plan`
- **自动化 apply**:在 PR 合并后,自动执行 `terraform apply`
- **工作流控制**:通过 `atlantis.yaml` 配置文件定义项目和工作流
- **多云支持**:支持所有 Terraform ProviderAWS、GCP、Azure 等)
## GitOps Workflow
1. 开发者提交 PR 修改 Terraform 代码
2. Atlantis 自动检测 PR运行 `terraform plan` 并将计划结果以评论形式发布到 PR
3. 团队成员审查计划变更
4. PR 合并后Atlantis 执行 `terraform apply`
5. Apply 结果同样发布到 PR 评论
## Connections
- [[Atlantis]] ← extends ← [[Terraform]]
- [[Atlantis]] ← implements ← [[GitOps]]
- [[Atlantis]] ← integrates_with ← [[GitHub]]
- [[Atlantis]] ← integrates_with ← [[GitLab]]