AWS::IAM::OIDCProvider - AWS CloudFormation

AWS::IAM::OIDCProvider

Creates or updates an IAM entity to describe an identity provider (IdP) that supports OpenID Connect (OIDC).

The OIDC provider that you create with this operation can be used as a principal in a role's trust policy. Such a policy establishes a trust relationship between AWS and the OIDC provider.

When you create the IAM OIDC provider, you specify the following:

  • The URL of the OIDC identity provider (IdP) to trust

  • A list of client IDs (also known as audiences) that identify the application or applications that are allowed to authenticate using the OIDC provider

  • A list of tags that are attached to the specified IAM OIDC provider

  • A list of thumbprints of one or more server certificates that the IdP uses

You get all of this information from the OIDC IdP that you want to use to access AWS.

When you update the IAM OIDC provider, you specify the following:

  • The URL of the OIDC identity provider (IdP) to trust

  • A list of client IDs (also known as audiences) that replaces the existing list of client IDs associated with the OIDC IdP

  • A list of tags that replaces the existing list of tags attached to the specified IAM OIDC provider

  • A list of thumbprints that replaces the existing list of server certificates thumbprints that the IdP uses

Note

The trust for the OIDC provider is derived from the IAM provider that this operation creates. Therefore, it is best to limit access to the CreateOpenIDConnectProvider operation to highly privileged users.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::IAM::OIDCProvider", "Properties" : { "ClientIdList" : [ String, ... ], "Tags" : [ Tag, ... ], "ThumbprintList" : [ String, ... ], "Url" : String } }

YAML

Type: AWS::IAM::OIDCProvider Properties: ClientIdList: - String Tags: - Tag ThumbprintList: - String Url: String

Properties

ClientIdList

A list of client IDs (also known as audiences) that are associated with the specified IAM OIDC provider resource object. For more information, see CreateOpenIDConnectProvider.

Required: No

Type: Array of String

Minimum: 1

Maximum: 255

Update requires: No interruption

Tags

A list of tags that are attached to the specified IAM OIDC provider. The returned list of tags is sorted by tag key. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

Required: No

Type: Array of Tag

Update requires: No interruption

ThumbprintList

A list of certificate thumbprints that are associated with the specified IAM OIDC provider resource object. For more information, see CreateOpenIDConnectProvider.

Required: Yes

Type: Array of String

Minimum: 40

Maximum: 40 | 5

Update requires: No interruption

Url

The URL that the IAM OIDC provider resource object is associated with. For more information, see CreateOpenIDConnectProvider.

Required: No

Type: String

Minimum: 1

Maximum: 255

Update requires: Replacement

Return values

Ref

When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the ARN.

For more information about using the Ref function, see Ref.

Fn::GetAtt

The Fn::GetAtt intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the Fn::GetAtt intrinsic function, see Fn::GetAtt.

Arn

Returns the Amazon Resource Name (ARN) for the specified AWS::IAM::OIDCProvider resource.