본 포스트는 AWS Certified Solutions Architect Associate 시험합격! 를 참고하여 작성되었습니다.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "FirstStatement",
"Effect": "Allow",
"Action": ["iam:ChangePassword"],
"Resource": "*"
},
{
"Sid": "SecondStatement",
"Effect": "Allow",
"Action": "s3:ListAllMyBuckets",
"Resource": "*"
},
{
"Sid": "ThirdStatement",
"Effect": "Allow",
"Action": [
"s3:List*",
"s3:Get*"
],
"Resource": [
"arn:aws:s3:::confidential-data",
"arn:aws:s3:::confidential-data/*"
],
"Condition": {"Bool": {"aws:MultiFactorAuthPresent": "true"}}
}
]
}
AWS 액세스를 위한 세 가지 방법이 있다.
- AWS Management Console : protected by password + MFA
- AWS Command Line Interface (CLI) : protectd by access key
- AWS Software Developer Kit (SDK) - for code : protected by access key
특정 AWS 서비스들은 사용하기 위해 권한이 필요하다.
따라서 권한이 없지만 신뢰할 수 있는 개체가 AWS 서비스를 사용하기 위해서는 권한을 부여해야 한다.
-> IAM Role은 AWS 서비스를 사용하기 위한 권한 세트!