开始使用免费开始使用

Decide who may assume the role

Your build jobs run outside AWS, so no role is attached and the credential chain finds nothing to pick up. Instead the CI platform signs a short-lived OIDC token naming the repository the job ran in, and STS trades that token for temporary credentials.

Whether the trade succeeds is decided by the trust policy: the rule written on reports-deploy-role in advance, saying who may assume it. Four build jobs are presenting tokens this morning.

Open the Trust policy console and require the issuer on its own, then run the four jobs. Three come back with credentials. Add the repository condition and run them again.

What does the issuer-only run tell you?

本练习是课程的一部分

Using AWS Security for Developers

查看课程

动手互动练习

通过我们的互动练习之一,将理论转化为实践

开始练习