To explain basics of credential when we use the AWS CLI, SDK and its precedences. IAM role is another topic how it gives a temporary credential in EC2.