I have a NodeJS function that creates a text file on AWS S3 bucket and sends the same file of FTP as well. It is working absolutely fine. When I converted it into lambda function it is able to create text file on S3 but fails while sending file to FTP server. My FTP Server is an EC2 instance and is using the same VPC that the lambda function is using. The security group for lambda function has the following outbound rules: SecurityGroupOutboundRules

The inbbound rules for FTP Server are: FTPServerInboundRules

I don't know, what am I doing wrong! As far as inbound/outbound rules are concerned, I just wanted to confirm if they look good as I am new into this AWS thing.

0 Answers