oidc_providers
Creates, updates, deletes or gets an oidc_provider
resource or lists oidc_providers
in a region
Overview
Name | oidc_providers |
Type | Resource |
Description | Resource Type definition for AWS::IAM::OIDCProvider |
Id | aws.iam.oidc_providers |
Fields
Name | Datatype | Description |
---|---|---|
client_id_list | array | |
url | string | |
thumbprint_list | array | |
arn | string | Amazon Resource Name (ARN) of the OIDC provider |
tags | array | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | ThumbprintList, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.iam.oidc_providers (
ThumbprintList,
region
)
SELECT
'{{ ThumbprintList }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.iam.oidc_providers (
ClientIdList,
Url,
ThumbprintList,
Tags,
region
)
SELECT
'{{ ClientIdList }}',
'{{ Url }}',
'{{ ThumbprintList }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: oidc_provider
props:
- name: ClientIdList
value:
- '{{ ClientIdList[0] }}'
- name: Url
value: '{{ Url }}'
- name: ThumbprintList
value:
- '{{ ThumbprintList[0] }}'
- name: Tags
value:
- Value: '{{ Value }}'
Key: '{{ Key }}'
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