TransWikia.com

Share folders between two EC2 instances within the same VPC

Server Fault Asked on March 11, 2021

I have a number of Windows servers in EC2 on the same VPC. How can I get those machines to share folders with each other?

The closest answer I see is here: Unable to Share Data between Amazon EC2 Instances for Windows

But it’s a pretty old post and I cannot get it to work by simply enabling TCP and UDP on ports 135-139 and 445.

I want to be able to say \server1shared_folder from my server2 machine.

2 Answers

You can simply create a security group and then add an inbound rule to allow all traffic from it's own security group and then add these security group in both instances to share data with each other but there's an better approach for this is to use FSx in AWS.

enter image description here

Answered by asmath on March 11, 2021

Ok, here is what to set, and seems to be the only thing needed. Add a security group with one rule for each server, each allowing all traffic on all ports. So in the screenshot below I have 3 servers, and 3 rules. I give this security group to all three servers and now they can share files.
I could not get this to work just using the TCP/UDP 445, 135-139. So some protocol/port must have been missing.

Security Groups

Answered by Daniel Williams on March 11, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP