During the sam pipeline bootstrap configuration process, do the following to set up OIDC with your AWS SAM pipeline.
When prompted to choose an identity provider, select OIDC.
Next, select a supported OIDC provider.
Enter the OIDC provider URL, beginning with https://.
Note
AWS SAM references this URL when it generates the AWS::IAM::OIDCProvider resource type.
Next, follow the prompts and enter the CI/CD platform information needed to access the selected platform. These details vary by platform and can include:
OIDC client ID.
Code repository name or universally unique identifier (UUID).
Group or Organization name associated with the repository.
GitHub organization that the code repository belongs to.
GitHub repository name.
Branch that deployments will occur from.
AWS SAM displays a summary of the entered OIDC configuration. Enter the number for a setting to edit it, or press Enter to continue.
When prompted to confirm the creation of resources needed to support the entered OIDC connection, press Y to continue.
AWS SAM generates an AWS::IAM::OIDCProvider AWS CloudFormation resource with the provided configuration that assumes the pipeline execution role. To learn more about this AWS CloudFormation resource type, see AWS::IAM::OIDCProvider in the AWS CloudFormation User Guide.