Amazon Snowball Edge不再向新客户提供。新客户应探索Amazon DataSync
本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
使用Amazon Security Token Service在 Snowball Edge 上
Amazon Security Token Service(Amazon STS) 可帮助您为 IAM 用户申请临时的、权限有限的证书。
重要
要使Amazon服务在 Snowball Edge 上正常运行,必须允许服务使用端口。有关更多信息,请参阅 Snowball Edge 上 Amazon 服务的端口要求。
主题
使用Amazon CLI还有 Snowball Edge 上的 API 操作
使用Amazon CLI或 API 操作在 Snowball Edge 设备上发出 IAM Amazon STS、、Amazon S3 和 Amazon EC2 命令时,必须将指定region为 “。” snow 您可以使用命令本身Amazon configure或在命令本身内执行此操作,如以下示例所示。
aws configure --profile snowballEdge Amazon Access Key ID [None]: defgh Amazon Secret Access Key [None]: 1234567 Default region name [None]: snow Default output format [None]: json
Or
aws iam list-users --endpoint http://192.0.2.0:6078 --region snow --profile snowballEdge
注意
本地使用的访问密钥 ID 和访问机密密钥Amazon Snowball Edge不能与中的密钥互换。Amazon Web Services 云
支持Amazon STSAmazon CLI在 Snowball Edge 上使用命令
在本地仅支持 assume-role 命令。
对于 assume-role,支持以下参数:
role-arnrole-session-nameduration-seconds
在 Snowball Edge 上扮演角色的命令示例
要代入角色,请使用以下命令。
aws sts assume-role --role-arn"arn:aws:iam::123456789012:role/example-role"--role-session-nameAWSCLI-Session--endpointhttp://snow-device-IP-address:7078
有关使用 assume-role 命令的更多信息,请参阅如何使用Amazon CLI代入 IAM 角色?
有关使用的更多信息Amazon STS,请参阅 IAM 用户指南中的使用临时安全证书。
支持Amazon STS Snowball Edge 上的 API 操作
本地仅支持 AssumeRoleAPI。
对于 AssumeRole,支持以下参数:
RoleArnRoleSessionNameDurationSeconds
例代入角色
https://sts.amazonaws.com/ ?Version=2011-06-15 &Action=AssumeRole &RoleSessionName=session-example &RoleArn=arn:aws:iam::123456789012:role/demo &DurationSeconds=3600