Skip to content

Commit

Permalink
Add cloudwatch query instructions to log in via the UX (#584)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sgtpluck authored Jul 5, 2024
1 parent f18ca52 commit 52a8dc6
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions _articles/cloudwatch-101.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,23 @@ You will need an AWS account and access. See [setting up aws-vault][aws-vault] f
### Getting to CloudWatch Insights

1. Log in to AWS

- Via terminal:
```bash
# depending on the roles you have pick between
aws-vault login prod-analytics
# or
aws-vault login prod-power
```
- Via AWS GUI:
The console login method does not allow a user to switch roles or environments (ie, `sandbox-power`). If you know you will need to switch back and forth, it may be easier to log in via the AWS GUI.
- [Navigate to AWS](https://us-east-2.signin.aws.amazon.com)
- Click the `Sign In to the Console` button on the top right
- Input Account ID as `login-master`, and your IAM username and password
- Click `Sign In`
- Generate an MFA Code [with your Yubikey](https://gitlab.login.gov/lg/identity-devops/-/wikis/Setting-Up-your-Login.gov-Infrastructure-Configuration#configuring-a-mfa-authenticator)
- Enter MFA code
- Click `Submit`
- Click on the top right user dropdown and click on `Switch role` to log into the appropriate role.

1. Search for "CloudWatch"

Expand Down Expand Up @@ -93,7 +103,7 @@ fields @timestamp, name, properties.event_properties.success, @message

## Writing Queries

The [AWS documentation for CloudWatch Insights][aws-docs] is fairly thorough. If anything is left unaswered after reading this guide, that documentation is likely to contain the answer.
The [AWS documentation for CloudWatch Insights][aws-docs] is fairly thorough. If anything is left unanswered after reading this guide, that documentation is likely to contain the answer.

### Similarity to SQL

Expand Down Expand Up @@ -155,4 +165,4 @@ To work around this, there are a few options
- [Analytics Events Documentation][analytics-events]
- [AWS documentation for CloudWatch Insights][aws-docs]
[analytics-events]: {% link _articles/analytics-events.md %}
[analytics-events]: {% link _articles/analytics-events.md %}

0 comments on commit 52a8dc6

Please sign in to comment.