Skip to content

Welcome to Atlantis! - #1

Open
devwrites wants to merge 1 commit into
masterfrom
example
Open

Welcome to Atlantis!#1
devwrites wants to merge 1 commit into
masterfrom
example

Conversation

@devwrites

Copy link
Copy Markdown
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
    
  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.

@devwrites

Copy link
Copy Markdown
Owner Author

Ran Plan in dir: . workspace: default

Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.


------------------------------------------------------------------------

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
      id: <computed>
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 .

  • ⏩ To apply all unapplied plans, comment:
    • atlantis apply

@devwrites

Copy link
Copy Markdown
Owner Author

atlantis plan

@devwrites

Copy link
Copy Markdown
Owner Author

Ran Plan in dir: . workspace: default

Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.


------------------------------------------------------------------------

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
      id: <computed>
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 .

  • ⏩ To apply all unapplied plans, comment:
    • atlantis apply

@devwrites

Copy link
Copy Markdown
Owner Author

atlantis apply -d

@devwrites

Copy link
Copy Markdown
Owner Author
Error: flag needs an argument: 'd' in -d.
Usage of apply:
  -d, --dir string         Apply the plan for this directory, relative to root of
                           repo, ex. 'child/dir'.
  -p, --project string     Apply the plan for this project. Refers to the name of
                           the project configured in atlantis.yaml. Cannot be used
                           at same time as workspace or dir flags.
      --verbose            Append Atlantis log to comment.
  -w, --workspace string   Apply the plan for this Terraform workspace.

@devwrites

Copy link
Copy Markdown
Owner Author

atlantis apply d

@devwrites

Copy link
Copy Markdown
Owner Author
Error: unknown argument(s) – d.
Usage of apply:
  -d, --dir string         Apply the plan for this directory, relative to root of
                           repo, ex. 'child/dir'.
  -p, --project string     Apply the plan for this project. Refers to the name of
                           the project configured in atlantis.yaml. Cannot be used
                           at same time as workspace or dir flags.
      --verbose            Append Atlantis log to comment.
  -w, --workspace string   Apply the plan for this Terraform workspace.

@devwrites

Copy link
Copy Markdown
Owner Author

atlantis apply -d .

@devwrites

Copy link
Copy Markdown
Owner Author

Ran Apply in dir: . workspace: default

null_resource.example: Creating...
null_resource.example: Creation complete after 0s (ID: 1793603876176182994)

Apply complete! Resources: 1 added, 0 changed, 0 destroyed.

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