Skip to main content

oidc_providers

Creates, updates, deletes or gets an oidc_provider resource or lists oidc_providers in a region

Overview

Nameoidc_providers
TypeResource
DescriptionResource Type definition for AWS::IAM::OIDCProvider
Idaws.iam.oidc_providers

Fields

NameDatatypeDescription
client_id_listarray
urlstring
thumbprint_listarray
arnstringAmazon Resource Name (ARN) of the OIDC provider
tagsarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTThumbprintList, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all oidc_providers in a region.

SELECT
region,
client_id_list,
url,
thumbprint_list,
arn,
tags
FROM aws.iam.oidc_providers
;

Gets all properties from an individual oidc_provider.

SELECT
region,
client_id_list,
url,
thumbprint_list,
arn,
tags
FROM aws.iam.oidc_providers
WHERE data__Identifier = '<Arn>';

INSERT example

Use the following StackQL query and manifest file to create a new oidc_provider resource, using stack-deploy.

/*+ create */
INSERT INTO aws.iam.oidc_providers (
ThumbprintList,
region
)
SELECT
'{{ ThumbprintList }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.iam.oidc_providers
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

To operate on the oidc_providers resource, the following permissions are required:

Create

iam:CreateOpenIDConnectProvider,
iam:TagOpenIDConnectProvider,
iam:GetOpenIDConnectProvider

Read

iam:GetOpenIDConnectProvider

Update

iam:UpdateOpenIDConnectProviderThumbprint,
iam:RemoveClientIDFromOpenIDConnectProvider,
iam:AddClientIDToOpenIDConnectProvider,
iam:GetOpenIDConnectProvider,
iam:TagOpenIDConnectProvider,
iam:UntagOpenIDConnectProvider,
iam:ListOpenIDConnectProviderTags

Delete

iam:DeleteOpenIDConnectProvider

List

iam:ListOpenIDConnectProvider,
iam:GetOpenIDConnectProvider