sweeper/aws_transfer_server: Cannot sweep transfer servers with API Gateway identity provider #19850
Closed
Description
The sweeper sets the force_destroy
parameter before calling the resource Delete operation. When the identity provider is set to API_GATEWAY
, this fails with the error
InvalidRequestException: Cannot list users on server with IdP type: API_GATEWAY
Do not set force_destroy
when identity provider is API_GATEWAY
. Confirm if force_destroy
can be set when the identity provider is AWS_DIRECTORY_SERVICE
.
Affected Resource
- aws_transfer_server