For the past 6 months, I have had a chance to learn/work with AWS, my first cloud provider platform. Note that I am not favor of this infra or another like GCP, Azure. I just note for myself (and probably you) on using AWS, things I have learned. I guess the valuable point after reading this article is general concepts, ideas on cloud environments.
I have completely no idea about this. All I do is blindly copying and following the tutorials/docs. I don’t understand what is
credentials fileconfig fileWhen writing this article, I have a chance to read more about this. And this is what I found.
Before we can use AWS CLI tool, we have to authenticate against AWS. There are some ways to do it.
config file. The credentials file is not used for this authentication method.aws_access_key_id, aws_secret_access_key and aws_session_token in crendentials file along with config file for storing profile configuarations.aws_session_token.Setup SSO:
aws configure sso
It will prompts for:
After filling all the informations, a file named config will be created inside .aws directory.
Checking the file, we can see:
[default]
sso_session = your-sso-session
sso_account_id = id
sso_role_name = role-to-assumed
[sso-session nuoa-io]
sso_start_url = start-url
sso_region = us-east-1
sso_registration_scopes = sso:account:access
After this, we can use aws sso login --profile profile-name to request crendentials from IAM Identity Center Server. In this case, profile-name can be ommited because of default. There is a browser pops up. Finally, I can use CLI to interact with resources.
Long/short-term crendentials: Not experience yet :)
Useful resources:
My understandings:
identity (User, Role, Account) and resource (S3, Lambda Function,…)Integration
API Gateway
Domain
Index
Search
API
Security