サービス · セキュリティ、アイデンティティ、コンプライアンス
AWS Identity and Access Management (IAM)
Controls who can sign in to your AWS account and what each person or application is allowed to do.
このレッスンはまだ翻訳されていないため、英語で表示しています。
- 1A person or an application proves who it is and sends a request, for example to read a file in Amazon Simple Storage Service (Amazon S3).
- 2AWS checks the IAM policies that apply to that identity and to the resource.
- 3If a policy allows the action and no policy denies it, the request goes through.
- 4If no policy allows it, or any policy denies it, the request is refused.
流れ
- 1A person or an application proves who it is and sends a request, for example to read a file in Amazon Simple Storage Service (Amazon S3).
- 2AWS checks the IAM policies that apply to that identity and to the resource.
- 3If a policy allows the action and no policy denies it, the request goes through.
- 4If no policy allows it, or any policy denies it, the request is refused.
Who can act in the account: users, groups and roles.
What is allowed or denied, written as JSON documents.
How an identity proves who it is: passwords, MFA, keys and roles.
The rule to follow: give only the permissions a task needs.
概要
AWS Identity and Access Management (IAM) controls who can use your AWS account and what they can do in it. For every request, AWS asks two questions. Authentication: who is asking? Authorization: is this identity allowed to do this action on this resource?
In IAM you create identities (users, groups and roles) and attach policies to them. A policy says which actions are allowed or denied. A new identity has no permissions at all, so access exists only where you grant it.
概要
IAM is a global service: users, groups, roles and policies are not tied to one Region. IAM is offered at no additional charge. You pay only for the other AWS resources that your identities use.
覚えること
- Authentication = proving who you are. Authorization = what you are allowed to do.
- Everything is denied by default, except for the root user. A policy must allow an action before a user or role can do it.
- IAM is global, and it has no extra charge.
- People should sign in through IAM Identity Center or federation, with temporary credentials.
覚えること
- Applications on AWS should use IAM roles, not access keys saved in code.
- IAM controls access to AWS itself. Sign-in for the customers of your own app is Amazon Cognito.
試験では
- “Control which users can use which AWS services and resources” points to IAM.
- “Give an application on Amazon EC2 access to Amazon S3 without storing keys” points to an IAM role.
混同しやすいもの
AWS IAM Identity CenterOne place to manage your workforce’s sign-in to all your AWS accounts and business applications.
Amazon CognitoAdds sign-up, sign-in and access control to your own web and mobile apps, and scales to millions of users.
AWS OrganizationsManages many AWS accounts as one organization, with central policies and a single bill.