AWS per CLI

https://docs.aws.amazon.com/cli/latest/userguide/getting-started-quickstart.html

https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html#cliv2-linux-install

aws-cli installieren

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install --bin-dir /usr/local/bin --install-dir /usr/local/aws-cli --update
thommie@locutus:~> aws --version
aws-cli/2.17.36 Python/3.11.9 Linux/6.10.5-1-default exe/x86_64.opensuse-tumbleweed.20240820

Setup der cli Umgebung

fixme

$ aws configure sso
SSO session name (Recommended): my-sso
SSO start URL [None]: https://my-sso-portal.awsapps.com/start
SSO region [None]: us-east-1
SSO registration scopes [None]: sso:account:access

Mehrere Profile

aws configure --profile profil1
aws configure --profile profil2

thommie@odysseus4:~> aws configure --profile netzwissen
AWS Access Key ID [None]: AKIAZVJKDFMP6752BEUK
AWS Secret Access Key [None]: 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
Default region name [None]: eu-central-1
Default output format [None]: json

sso Konfiguration

https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html#sso-configure-profile-prereqs

thommie@odysseus4:~> aws configure --profile netzwissen
AWS Access Key ID [None]: AKIAZVJKDFMP6752BEUK
AWS Secret Access Key [None]: 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
Default region name [None]: eu-central-1
Default output format [None]: json
<code>
thommie@odysseus4:~> aws configure --profile netzwissen sso
SSO session name (Recommended): my-sso
SSO start URL [None]: https://my-sso-portal.awsapps.com/start
SSO region [None]: eu-central-1
SSO registration scopes [sso:account:access]:
Attempting to automatically open the SSO authorization page in your default browser.
If the browser does not open or you wish to use a different device to authorize this request, open the following URL:
Then enter the code:
VGZB-KTLZ

https://aws.amazon.com/de/cli/

Howto

https://aws.amazon.com/de/cli/

sso Login

thommie@odysseus4:~> aws configure –profile netzwissen sso SSO session name (Recommended): my-sso SSO start URL [None]: https://us-east-1.console.aws.amazon.com SSO region [None]: eu-central-1