awslabs / web-client-for-aws-transfer-family

This solution creates a web portal for your customers to access your corporate Secure Shell File Transfer Protocol (SFTP) environment. It combines the benefits of using AWS Transfer for SFTP with an intuitive web browser interface for your non-technical users.
https://aws.amazon.com/solutions/implementations/web-client-for-aws-transfer-family/?did=sl_card&trk=sl_card
Apache License 2.0
73 stars 41 forks source link

Template 03 Fails to Deploy #23

Open jmsmx opened 1 year ago

jmsmx commented 1 year ago

On deployment of the third tempalte - 03-sftp-endpoint.template the deployment fails every attempt. The deployment fails on the following error:

"Properties validation failed for resource SFTPCustomAuthLambda with message:

/Code/S3Bucket: failed validation constraint for keyword [pattern]"

I went into the template and changed the template under Mappings for the S3Bucket and hard coded the "bucketname" into this field. This seems to have helped but causes my deployment to fail on a new error every time:

Resource handler returned message: "Error occurred while GetObject. S3 Error Code: NoSuchBucket. S3 Error Message: The specified bucket does not exist (Service: Lambda, Status Code: 400, Request ID: redacted)" (RequestToken: redacted, HandlerErrorCode: InvalidRequest)

I am unable to move past this step and seems like the template fails no matter where I deploy it on any bucket or any AWS account.

ragincajunbanjo commented 1 year ago

i am also having this issue...

skadthan commented 9 months ago

try to create the bucket name appending "us-east-1" and create folder lambda and keyprefix folders under these bucket names and zip the two lambda functions from the repo and upload it to the destination folder.

For ex: Bucket Name: my-bucket-us-east-1 folder structure: lambda/v1.0.0/

i.e., the folder structure with files should look like this.. /my-bucket-us-east-1/lambda/v1.0.0/SFTPCustomAuthLambdaFunction.zip /my-bucket-us-east-1/lambda/v1.0.0/TransferMiscConfigLambdaFunction.zip