question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[transfer] How to get Endpoint ID created by Transfer Server on our behalf

See original GitHub issue

Use Case

Since few months, it’s not possible to create VPC_ENDPOINT type for Transfer, but VPC.

It’ll create a VPC Endpoint on our behalf, but how to get the “ID” and/or “DNS” names of this endpoint ? No outputs with that in Cfn/CDK : https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-transfer-server.html#aws-resource-transfer-server-return-values

Proposed Solution

Add Cloudformation Return values and/or CDK propertie with the ID and DNS Names of the Endpoint created by Transfer.

Other

Need it to access the SFTP Server and for example, create a R53 record on it. s-xxxxxxxxxxxx.server.transfer.region.amazonaws.com don’t work in private VPC server.

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

This is a 🚀 Feature Request

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Cloudragecommented, Nov 30, 2020

@iliapolo Tested too but with CDK, it result : "$util.escapeJavaScript($input.params('Password').replaceAll(\"\\\\'\", \"'\")"

Caused by JSON.stringify :

new apigateway.Integration({
        type: apigateway.IntegrationType.AWS,
        integrationHttpMethod: 'POST',
        uri: 'arn:aws:apigateway:.....',
        options: {
          integrationResponses: [{statusCode: '200'}],
          requestTemplates: {
            'application/json': JSON.stringify({
              username: "$util.urlDecode($input.params('username'))",
              password: "$util.escapeJavaScript($input.params('Password').replaceAll(\"\\\\'\", \"'\")",
              serverId: "$input.params('serverId')",
              protocol: "$input.params('protocol')",
              sourceIp: "$input.params('sourceIp')"
            })
          }
        }

This way it works :

          requestTemplates: {
            "application/json": "{\"username\":\"$util.urlDecode($input.params('username'))\",\"password\":\"$util.escapeJavaScript($input.params('Password').replaceAll(\"\\\\'\",\"'\")\",\"serverId\":\"$input.params('serverId')\",\"protocol\":\"$input.params('protocol')\",\"sourceIp\":\"$input.params('sourceIp')\"}"
          }
0reactions
github-actions[bot]commented, Jun 28, 2022

This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Updating the AWS Transfer Family server endpoint type from ...
You can use the AWS Management Console, AWS CloudFormation, or the Transfer Family API to update a server's EndpointType from VPC_ENDPOINT to VPC...
Read more >
Updating the Amazon Transfer Family server endpoint type ...
Transfer is discontinuing use of the VPC_ENDPOINT Endpoint type. If you have servers that use this Endpoint type, we recommend that you change...
Read more >
How To Log In and Transfer Files with Globus
1. Login with an existing identity · 2. The File Manager · 3. Access a collection · 4. Request a file transfer ·...
Read more >
FAQs: Transfer and Sharing - Globus Docs
How does load balancing work in Globus Connect Server endpoints with multiple ... What happens to my transfer if I don't have permission...
Read more >
Best Practices for Securing your AWS Transfer Family Servers ...
AWS Transfer Family enables you to use common file transmission protocols, such as SFTP, FTPS, and FTP, to allow your internal and external ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found