Skip to content

Unable to create AWS transfer family SFTP server with disabled password #8962

@Lucas3oo

Description

@Lucas3oo

Describe the bug

Trying to create SFTP server with S3 as backend with identity provider type set to SERVICE_MANAGED and SftpAuthenticationMethods set to PUBLIC_KEY.

E.g
aws transfer create-server --identity-provider-type SERVICE_MANAGED --identity-provider-details SftpAuthenticationMethods=PUBLIC_KEY

The error is:
An error occurred (InvalidRequestException) when calling the CreateServer operation: Must specify IdentityProviderType with IdentityProviderDetails

which is clearly a bug since I do provide a type.

AWS CLI version:

 aws --version
aws-cli/2.17.57 Python/3.12.6 Linux/6.1.109-118.189.amzn2023.x86_64 exec-env/CloudShell exe/x86_64.amzn.2023

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

That the SFTP server got created with no possibility to require passwords for users.

Current Behavior

An exception

Reproduction Steps

aws transfer create-server --identity-provider-type SERVICE_MANAGED --identity-provider-details SftpAuthenticationMethods=PUBLIC_KEY

Possible Solution

No response

Additional Information/Context

Seems to be broken also when using cloudformation and AWS SDK

CLI version used

aws-cli/2.17.57 Python/3.12.6 Linux/6.1.109-118.189.amzn2023.x86_64 exec-env/CloudShell exe/x86_64.amzn.2023

Environment details (OS name and version, etc.)

AmazonLinux

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.p2This is a standard priority issueservice-apiThis issue is due to a problem in a service API, not the SDK implementation.transfer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions