Loading topic
sso-session block and profiles by hand. Here you let the CLI do that 5 min readaws sso login is the command that turns your IAM Identity Center configuration into a working session. This chapter covers what the command does, the flags that change its behavior, and the errors you are most likely to see.5 min readsso-session and a profile named dev in ~/.aws/config, and that you can run aws sso login --profile dev. It also assumes you know what an IAM role and an AWS account ID are. Here you learn to read the output of aws sts get-caller-identity and use it to catch5 min readsso-session block and at least one SSO profile in ~/.aws/config, and that you can run aws sso login. It explains how the AWS CLI chooses a profile, how it then chooses a source of credentials, and how to see what it picked. Most "wrong account" surprises come f6 min readaws sso login successfully. It also assumes you can read a JSON file and use a Unix shell. After sign-in, the AWS CLI version 2 keeps two kinds of cached data on disk. Knowing which is which explains why a command sometimes runs without a browser prompt, w6 min readsso-session and run aws sso login, as covered in earlier chapters. It also assumes you know what a permission set is.7 min readaws sso logout removes, what it leaves behind, and how to confirm that a machine holds no usable credentials. It assumes you can already sign in with aws sso login, you know what sts get-caller-identity returns, and you know the profile layout from the earlier chapters6 min read~/.aws/config, and that you have run aws sso login successfully at least once. You should know what the sign-in token and the role credentials are. The chapter shows how to read the error you get, decide which layer failed,6 min readaws sso login, that your ~/.aws/config has an sso-session block and at least one profile, and that aws sts get-caller-identity --profile dev works. It also assumes you know what an environment variable is and which AWS CLI version 2 you have 6 min readaws sso login, you know that the CLI caches an SSO access token and role credentials, and you know the basics of IAM roles and trust policies. It covers where Identity Center sign-in stops being the right tool and wh6 min read