cloudposse / terraform-aws-transfer-sftp

https://cloudposse.com/accelerate
Apache License 2.0
29 stars 46 forks source link

Allow multiple SSH keys per user #35

Open pavlinpetkov opened 1 year ago

pavlinpetkov commented 1 year ago

Describe the Feature

Allow to assign multiple SSH keys per user account. Currently only a single SSH keys is allowed via the public_key parameter of sftp_users variable.

Expected Behavior

Expected to be possible to configure multiple public keys per user.

Use Case

We have a location where there are 2 different parties interacting. One is uploading a resource to the SFTP S3 location, the other is consuming it. Because these are 2 independent parties they generate their own SSH key pairs, not sharing their private keys. it should be possible to set a user with two public keys for access so that both parties have access to the same user directory.

Describe Ideal Solution

Single aws_transfer_user resource with multiple aws_transfer_ssh_key resources.

Alternatives Considered

N/A

Additional Context

N/A

CodechCFA commented 1 year ago

Looks like a PR exists for this https://github.com/cloudposse/terraform-aws-transfer-sftp/pull/33

We have the same use case so this module is not usable for us until this gets in. Any update on this?

mudit988 commented 4 months ago

Is there any way to add multiple keys to a single user via terraform.