ladderlore
  • 输入服务名称,例如 S3 或 IAM。

服务 · 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.

本课尚未翻译,暂以英文显示。

App with a role
IAM
Bedrock
Request denied
  1. 1An application with an IAM role sends a request.
  2. 2IAM checks the role’s policies. If one allows the action, the request goes through to Amazon Bedrock.
  3. 3If no policy allows it, IAM denies the request.
IAM checks every request. If no policy allows it, it is denied.

分步说明

  1. 1An application with an IAM role sends a request.
  2. 2IAM checks the role’s policies. If one allows the action, the request goes through to Amazon Bedrock.
  3. 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
Least privilege in practice: each identity gets only what its job needs.

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

2 / 2

  • Security admin

    May
    Manage guardrails
    May not
    Read private data
Least privilege in practice: each identity gets only what its job needs.

是什么

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.