Bắt đầu ngayBắt đầu miễn phí

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?

Bài tập này là một phần của khóa học

Using AWS Security for Developers

Xem khóa học

Bài tập tương tác thực hành

Biến lý thuyết thành hành động với một trong các bài tập tương tác của chúng tôi

Bắt đầu bài tập