Implement management of client-ids for aws_iam_openid_connect_provider #23099
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/iam
Issues and PRs that pertain to the iam service.
Milestone
Community Note
Description
Currently the
client_id_list
attribute on theaws_iam_openid_connect_provider
is implemented as aForceNew
attribute. This is due to the fact that theclient_ids
can only be specified during creation https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateOpenIDConnectProvider.html.For updates of the
client_ids
it is necessary to use add and delete operations https://docs.aws.amazon.com/IAM/latest/APIReference/API_AddClientIDToOpenIDConnectProvider.html.The recreation of the resource will result in the same ARN but it still means that there is an unnecessary recreation which might lead to issues of authentication during the recreation.
The same behavior exists for the
thumbprint_list
but there it has already be implemented https://github.com/hashicorp/terraform-provider-aws/blob/main/internal/service/iam/openid_connect_provider.go#L127-L137.New or Affected Resource(s)
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: