refactor: cloud computing articles

This commit is contained in:
Michele Cereda
2023-12-20 23:17:06 +01:00
parent 65f93c9a05
commit 1abe29578a
14 changed files with 4 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
# AWS CLI
## Table of contents <!-- omit in toc -->
1. [TL;DR](#tldr)
1. [Profiles](#profiles)
1. [Further readings](#further-readings)
## TL;DR
```sh
# Install the CLI.
brew install awscli
# Configure a profile.
aws configure
aws configure --profile work
# Use a specific profile for the rest of this shell session.
export AWS_PROFILE="work"
```
## Profiles
```sh
# Initialize the default profile.
# Not specifying a profile means to configure the default profile.
$ aws configure
AWS Access Key ID [None]: AKIA…
AWS Secret Access Key [None]: je7MtG…
Default region name [None]: us-east-1
Default output format [None]: text
# Initialize a specific profile.
$ aws configure --profile work
AWS Access Key ID [None]: AKIA…
AWS Secret Access Key [None]: LB88Mt…
Default region name [None]: us-west-1
Default output format [None]: json
# Use a specific profile for the rest of this session.
$ export AWS_PROFILE="work"
```
## Further readings
- CLI [quickstart]
- [Configure profiles] in the CLI
<!--
References
-->
<!-- Upstream -->
[quickstart]: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html
[configure profiles]: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html