Loading...
Loading...
Compare original and translation side by side
AWS_PROFILEdefault~/.aws/configAWS_PROFILEdefault~/.aws/configAWS_REGIONAWS_DEFAULT_REGIONregion~/.aws/configus-east-1AWS_REGIONAWS_DEFAULT_REGION~/.aws/configregionus-east-1aws sts get-caller-identity --profile <profile> --region <region>AccountArnaws sts get-caller-identity --profile <profile> --region <region>AccountArnArn| ARN pattern | Type | IAM write capability |
|---|---|---|
| IAM user | Depends on attached policies |
| SSO assumed-role | Typically none — can't create/modify IAM roles |
| Regular assumed-role | Depends on the role |
iam:CreateRoleHeads up: you're authenticated via SSO (). SSO principals usually can't create IAM roles directly. If we need a SageMaker execution role, I'll look for an existing one first — if none exists, you'll need to ask whoever manages your AWS access to create one.AWSReservedSSO_<PermissionSet>_...
Arn| ARN格式 | 类型 | IAM写入权限 |
|---|---|---|
| IAM用户 | 取决于附加的策略 |
| SSO角色扮演 | 通常无——无法创建/修改IAM角色 |
| 常规角色扮演 | 取决于角色权限 |
iam:CreateRole注意:你当前通过SSO()进行认证。SSO主体通常无法直接创建IAM角色。如果我们需要SageMaker执行角色,我会先查找现有角色——若不存在,你需要联系AWS权限管理员创建该角色。AWSReservedSSO_<PermissionSet>_...
undefinedundefined
`aws configure list` handles env-var overrides and shows the resolved effective values. Prefer it over parsing `~/.aws/config` yourself. If you need to read raw config (e.g. to list profiles), `~/.aws/config` and `~/.aws/credentials` are plain INI files — read-only.
`aws configure list`会处理环境变量覆盖,并显示解析后的有效值。优先使用该命令,而非自行解析`~/.aws/config`。如果需要读取原始配置(例如列出所有配置文件),`~/.aws/config`和`~/.aws/credentials`是纯INI文件——仅读取即可。Working with profileinmy-profile, accounteu-west-1. You're authenticated via SSO, so we'll need to use an existing IAM role rather than create one.123456789012
当前使用配置文件,区域为my-profile,账户ID为eu-west-1。你通过SSO认证,因此我们将使用现有IAM角色而非创建新角色。123456789012