How to establish connection between AWS Fargate task to an external SFTP server?

0

Trying to establish a connection from an AWS Fargate task in ECS to an external SFTP server. But the connection cannot be established despite providing the necessary Keys (required to build the connection) in the code. Objective is to connect to the SFTP server download files from there, process them and upload them to some other destination.

  • Do you have the error that you are receiving? What about the Security Groups? Generally speaking, NACL, SG and Route tables are the ones that you need to check for external networking connection. Please share the error and the rules for SG, NACL and Route table that you are using.

질문됨 2년 전987회 조회
2개 답변
1

Have you considered the AWS Transfer Family to transfer the files to a target such as S3? Then enable the ECS task to process the file from S3 as a source. It might enable you to leverage the service which interfaces with STFP servers natively and then enable ECS to process the file.

AWS
답변함 2년 전
0

As Henrique suggested, I'd first spin a client (EC2 most likely) you can troubleshoot whether you have actual network connection possible from your VPC to the remote SFTP server. If that does not work, nothing will. If you are getting connection refused/timeout, there is either a firewall rejecting/dropping your packets or no route at all.

profile picture
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠