2 Matching Annotations
  1. Jan 2023
    1. To align with the Amazon IAM best practice of granting least privilege, the assume role policy document should contain a Condition that specifies a subject allowed to assume the role. Without a subject condition, any GitHub user or repository could potentially assume the role. The subject can be scoped to a GitHub organization and repository as shown in the CloudFormation template.

      Set a Condition to scope the assumed role to a Github repository or organization.