Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Welcome to Atlantis! #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Welcome to Atlantis! #1

wants to merge 1 commit into from

Conversation

GusAntoniassi
Copy link
Owner

In this pull request we will learn how to use Atlantis.

  1. In a couple of seconds you should see the output of Atlantis automatically running terraform plan.

  2. You can manually run plan by typing a comment:

    atlantis plan
    

    Usually you'll let Atlantis automatically run plan for you though.

  3. To see all the comment commands available, type:

    atlantis help
    
  4. To see the help for a specific command, for example atlantis plan, type:

    atlantis plan --help
    
  5. Atlantis holds a "Lock" on this directory to prevent other pull requests modifying
    the Terraform state until this pull request is merged. To view the lock, go to the Atlantis UI: http://localhost:4141.
    If you wanted, you could manually delete the plan and lock from the UI if you weren't ready to apply. Instead, we will apply it!

  6. To terraform apply this change (which does nothing because it is creating a null_resource), type:

    atlantis apply
    

    NOTE: Because this example isn't using remote state storage the state will be lost once the pull request is merged. To use Atlantis properly, you must be using remote state.

  7. Finally, merge the pull request to unlock this directory.

Thank you for trying out Atlantis! Next, try using Atlantis on your own repositories: www.runatlantis.io/guide/getting-started.html.

@GusAntoniassi
Copy link
Owner Author

atlantis plan

@GusAntoniassi
Copy link
Owner Author

Ran Plan for dir: . workspace: default

Show Output
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create

Terraform will perform the following actions:

  # null_resource.example will be created
+ resource "null_resource" "example" {
      + id = (known after apply)
    }

Plan: 1 to add, 0 to change, 0 to destroy.
  • ▶️ To apply this plan, comment:
    • atlantis apply -d .
  • 🚮 To delete this plan click here
  • 🔁 To plan this project again, comment:
    • atlantis plan -d .
Plan: 1 to add, 0 to change, 0 to destroy.
  • ⏩ To apply all unapplied plans from this pull request, comment:
    • atlantis apply
  • 🚮 To delete all plans and locks for the PR, comment:
    • atlantis unlock

@GusAntoniassi
Copy link
Owner Author

Note: I've locally removed my /data dir, simulating a container/pod restart

@GusAntoniassi
Copy link
Owner Author

atlantis apply

@GusAntoniassi
Copy link
Owner Author

Apply Error

stat /home/gus/workspace/opensource/apply-for-0-projects-test/atlantis_linux_amd64/data/repos/GusAntoniassi/atlantis-example/1: no such file or directory

@GusAntoniassi
Copy link
Owner Author

atlantis plan

@GusAntoniassi
Copy link
Owner Author

Ran Plan for dir: . workspace: default

Show Output
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create

Terraform will perform the following actions:

  # null_resource.example will be created
+ resource "null_resource" "example" {
      + id = (known after apply)
    }

Plan: 1 to add, 0 to change, 0 to destroy.
  • ▶️ To apply this plan, comment:
    • atlantis apply -d .
  • 🚮 To delete this plan click here
  • 🔁 To plan this project again, comment:
    • atlantis plan -d .
Plan: 1 to add, 0 to change, 0 to destroy.
  • ⏩ To apply all unapplied plans from this pull request, comment:
    • atlantis apply
  • 🚮 To delete all plans and locks for the PR, comment:
    • atlantis unlock

@GusAntoniassi
Copy link
Owner Author

Note: I've locally removed my /data dir, simulating a container/pod restart

@GusAntoniassi
Copy link
Owner Author

atlantis apply

@GusAntoniassi
Copy link
Owner Author

Apply Error

stat /home/gus/workspace/opensource/apply-for-0-projects-test/atlantis_linux_amd64/data/repos/GusAntoniassi/atlantis-example/1: no such file or directory

@GusAntoniassi
Copy link
Owner Author

atlantis plan

@GusAntoniassi
Copy link
Owner Author

Ran Plan for dir: . workspace: default

Show Output
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create

Terraform will perform the following actions:

  # null_resource.example will be created
+ resource "null_resource" "example" {
      + id = (known after apply)
    }

Plan: 1 to add, 0 to change, 0 to destroy.
  • ▶️ To apply this plan, comment:
    • atlantis apply -d .
  • 🚮 To delete this plan click here
  • 🔁 To plan this project again, comment:
    • atlantis plan -d .
Plan: 1 to add, 0 to change, 0 to destroy.
  • ⏩ To apply all unapplied plans from this pull request, comment:
    • atlantis apply
  • 🚮 To delete all plans and locks for the PR, comment:
    • atlantis unlock

@GusAntoniassi
Copy link
Owner Author

atlantis apply

@GusAntoniassi
Copy link
Owner Author

Ran Apply for 0 projects:

@GusAntoniassi
Copy link
Owner Author

atlantis plan

@GusAntoniassi
Copy link
Owner Author

Ran Plan for dir: . workspace: default

Show Output
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create

Terraform will perform the following actions:

  # null_resource.example will be created
+ resource "null_resource" "example" {
      + id = (known after apply)
    }

Plan: 1 to add, 0 to change, 0 to destroy.
  • ▶️ To apply this plan, comment:
    • atlantis apply -d .
  • 🚮 To delete this plan click here
  • 🔁 To plan this project again, comment:
    • atlantis plan -d .
Plan: 1 to add, 0 to change, 0 to destroy.
  • ⏩ To apply all unapplied plans from this pull request, comment:
    • atlantis apply
  • 🚮 To delete all plans and locks for the PR, comment:
    • atlantis unlock

@GusAntoniassi
Copy link
Owner Author

atlantis apply

@GusAntoniassi
Copy link
Owner Author

Ran Apply for 0 projects:

@GusAntoniassi
Copy link
Owner Author

atlantis plan

@GusAntoniassi
Copy link
Owner Author

Ran Plan for dir: . workspace: default

Show Output
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create

Terraform will perform the following actions:

  # null_resource.example will be created
+ resource "null_resource" "example" {
      + id = (known after apply)
    }

Plan: 1 to add, 0 to change, 0 to destroy.
  • ▶️ To apply this plan, comment:
    • atlantis apply -d .
  • 🚮 To delete this plan click here
  • 🔁 To plan this project again, comment:
    • atlantis plan -d .
Plan: 1 to add, 0 to change, 0 to destroy.
  • ⏩ To apply all unapplied plans from this pull request, comment:
    • atlantis apply
  • 🚮 To delete all plans and locks for the PR, comment:
    • atlantis unlock

@GusAntoniassi
Copy link
Owner Author

atlantis apply

@GusAntoniassi
Copy link
Owner Author

Apply Error

stat /home/gus/workspace/opensource/apply-for-0-projects-test/atlantis_linux_amd64/data/repos/GusAntoniassi/atlantis-example/1: no such file or directory

@GusAntoniassi
Copy link
Owner Author

atlantis apply

@GusAntoniassi
Copy link
Owner Author

Ran Apply for 0 projects:

@GusAntoniassi
Copy link
Owner Author

atlantis apply

@GusAntoniassi
Copy link
Owner Author

Ran Apply for 0 projects:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant