サービス · Security, Identity, and Compliance
AWS Identity and Access Management (IAM)
Controls who and what may use your AI services and data, with roles, policies and least privilege.
このレッスンはまだ翻訳されていないため、英語で表示しています。
- 1An application with an IAM role sends a request.
- 2IAM checks the role’s policies. If one allows the action, the request goes through to Amazon Bedrock.
- 3If no policy allows it, IAM denies the request.
流れ
- 1An application with an IAM role sends a request.
- 2IAM checks the role’s policies. If one allows the action, the request goes through to Amazon Bedrock.
- 3If no policy allows it, IAM denies the request.
Support app
- May
- Invoke one named model
- May not
- Read training data
Data scientist
- May
- Read the training bucket
- May not
- Change production access
AI agent
- May
- Use its approved tools
- May not
- Use any other tool
Security admin
- May
- Manage guardrails
- May not
- Read private data
| Who | May | May not |
|---|---|---|
| Support app | Invoke one named model | Read training data |
| Data scientist | Read the training bucket | Change production access |
| AI agent | Use its approved tools | Use any other tool |
| Security admin | Manage guardrails | Read private data |
1 / 2
Support app
- May
- Invoke one named model
- May not
- Read training data
Data scientist
- May
- Read the training bucket
- May not
- Change production access
AI agent
- May
- Use its approved tools
- May not
- Use any other tool
| Who | May | May not |
|---|---|---|
| Support app | Invoke one named model | Read training data |
| Data scientist | Read the training bucket | Change production access |
| AI agent | Use its approved tools | Use any other tool |
2 / 2
Security admin
- May
- Manage guardrails
- May not
- Read private data
| Who | May | May not |
|---|---|---|
| Security admin | Manage guardrails | Read private data |
概要
AWS Identity and Access Management (IAM) decides who can do what in your AWS account. Its building blocks are users (a person or an app), groups (a set of users) and roles (identities that anyone or anything can take on for a short time). IAM policies are rules that allow or deny actions on resources. Nothing is allowed unless a policy says so. The root user is the account owner: protect it with multi-factor authentication (MFA) and do not use it for daily work. AWS IAM Identity Center gives your staff single sign-on to many accounts.
概要
For AI, IAM answers questions such as: who may invoke a foundation model in Amazon Bedrock, who may read the training data in Amazon S3, and who may change a guardrail. Applications should use IAM roles, which give temporary permissions, instead of long-lived keys stored in code.
概要
The key rule is least privilege: give each identity only the permissions its job needs, and no more. An app that answers support questions may invoke one named model and nothing else. For agents, Amazon Bedrock AgentCore Identity gives an agent its own identity and manages the credentials it uses to reach other services. Policy in AgentCore sets which tool actions an agent may take, outside the agent’s own code.
覚えること
- IAM controls access: who may do what, on which resource. The default is deny. It does not encrypt data or filter prompts.
- Building blocks: users, groups, roles and policies.
- Use IAM roles for applications and services. They give temporary credentials, so no keys in code. A Bedrock fine-tuning job uses a role to read training data in Amazon S3, and to use the KMS key if the data is encrypted.
覚えること
- Least privilege: only the permissions the job needs. IAM policies decide which Amazon Bedrock models an identity may call.
- Protect the root user with MFA. Use IAM Identity Center for staff sign-in.
- Agents need identities and limits too. See Amazon Bedrock AgentCore for Identity and Policy.
試験では
- “Allow an application to invoke only one Amazon Bedrock model” points to an IAM policy with least privilege.
- “Give an application temporary permissions without storing access keys” points to an IAM role.
- “Control who can access the training data in Amazon S3” points to IAM, not to AWS KMS.
- “Add a second step to protect the account owner’s login” points to MFA on the root user.
混同しやすいもの
AWS Key Management Service (AWS KMS)Creates and controls the encryption keys that protect your AI data and custom models.
- Amazon Bedrock GuardrailsSafeguards that check what goes into a generative AI application and what comes out.
Amazon Bedrock AgentCoreA managed platform to run AI agents securely at scale, with memory, identity, tool access and monitoring.