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

docs: add user facing documentation for real-time logs #1963

Merged
merged 28 commits into from
Feb 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
94f81e0
Added user facing documentation
Aayyush Dec 29, 2021
8a17f70
Apply suggestions from code review
Aayyush Jan 18, 2022
d6dc935
Adding top level navigation
Aayyush Jan 20, 2022
2a1c03f
Adding content
Aayyush Jan 20, 2022
310a369
Merge branch 'upstream' into lyft/add-log-streaming-docs
Aayyush Jan 20, 2022
6361a70
Removing unnecessary artifacts
Aayyush Jan 20, 2022
59c9803
Remooving package-loc
Aayyush Jan 20, 2022
612676b
Apply suggestions from code review
Aayyush Jan 27, 2022
7d4f894
Addressed comments
Aayyush Jan 27, 2022
db25a58
Fixing website link error
Aayyush Jan 31, 2022
51b8288
Noop commit
Aayyush Feb 3, 2022
8be4348
Noop
Aayyush Feb 3, 2022
416b9f4
Removing link
Aayyush Feb 3, 2022
f8511de
Added user facing documentation
Aayyush Dec 29, 2021
18cf693
Apply suggestions from code review
Aayyush Jan 18, 2022
77686c1
Adding top level navigation
Aayyush Jan 20, 2022
7bea6b4
Adding content
Aayyush Jan 20, 2022
6179191
Removing unnecessary artifacts
Aayyush Jan 20, 2022
ee22d75
Remooving package-loc
Aayyush Jan 20, 2022
a8c16b0
Apply suggestions from code review
Aayyush Jan 27, 2022
f3a2522
Addressed comments
Aayyush Jan 27, 2022
99a608e
Fixing website link error
Aayyush Jan 31, 2022
16b7e7c
Noop commit
Aayyush Feb 3, 2022
df52029
Noop
Aayyush Feb 3, 2022
d7f5fe1
Removing link
Aayyush Feb 3, 2022
4750c69
Merge branch 'lyft/add-log-streaming-docs' of github.com:lyft/atlanti…
Aayyush Feb 4, 2022
987e1a8
Adding link
Aayyush Feb 4, 2022
ae23380
Remove unused assets
Aayyush Feb 4, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions runatlantis.io/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,13 @@ module.exports = {
{text: 'Home', link: '/'},
{text: 'Guide', link: '/guide/'},
{text: 'Docs', link: '/docs/'},
{text: 'Streaming Logs', link: '/logs/'},
{text: 'Blog', link: 'https://medium.com/runatlantis'}
],
sidebar: {
'/logs/': [
'',
],
'/guide/': [
'',
'test-drive',
Expand Down
4 changes: 4 additions & 0 deletions runatlantis.io/guide/testing-locally.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,10 @@ atlantis plan -- -target=resource -var 'foo=bar'
If you'd like to `apply`, type a comment: `atlantis apply`. You can use the `-d` or `-w` flags to point
Atlantis at a specific plan. Otherwise it tries to apply the plan for the root directory.

## Real-time logs
Aayyush marked this conversation as resolved.
Show resolved Hide resolved
The [real-time terraform output](/logs/README.md) for your command can be found by clicking into the status check for a given project in a PR which
links to the log-streaming UI. This is a terminal UI where you can view your commands executing in real-time.

## Next Steps
* If things are working as expected you can `Ctrl-C` the `atlantis server` command and the `ngrok` command.
* Hopefully Atlantis is working with your repo and you're ready to move on to a [production-ready deployment](../docs/deployment.html).
Expand Down
25 changes: 25 additions & 0 deletions runatlantis.io/logs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Real-time logs

## Getting Started
Atlantis supports streaming terraform logs in real time by default. Currently, only two commands are supported

* terraform init
* terraform plan
* terraform apply

::: warning
As of now, custom workflow outputs and other terraform commands are not supported
:::

In order to view real-time terraform logs, a user can navigate through the *details* section of a given project's plan or apply status check.

![Plan Command](./images/plan.png)

This will link to the atlantis UI which provides real-time logging in addition to native terraform syntax highlighting.

![Plan Output](./images/plan_output.png)

::: warning
As of now the logs are currently stored in memory and cleared when a given pull request is closed, so this link shouldn't be persisted anywhere.
:::

Binary file added runatlantis.io/logs/images/plan.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added runatlantis.io/logs/images/plan_output.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.