Files
teleport/docs/pages/includes/application-access/aws-database-access-cli.mdx
T
STeve (Xin) Huang 9619c6ae50 [docs] Amazon Athena guide for Application Access (#25329)
* [docs] Amazon Athena guide for Application Access

* review comments

* update cspell.json

* Alex's comment and fix lint
2023-05-18 13:02:25 +00:00

26 lines
648 B
Plaintext

Log into the previously configured AWS app on your desktop:
```code
$ tsh apps login --aws-role {{ iam-role }} aws
Logged into AWS app aws. Example AWS CLI command:
$ tsh aws s3 ls
```
The `--aws-role` flag allows you to specify the AWS IAM role to assume when
accessing the AWS API. You can either provide a role name like `--aws-role
ExampleTeleportDynamoDBRole` or a full role ARN like
`arn:aws:iam::123456789000:role/{{iam-role}}`.
Now you can use the `tsh aws` command like the native `aws` command-line tool:
```code
$ {{ tsh-example }}
```
To log out of the `aws` application and remove credentials:
```code
$ tsh apps logout aws
```