How to map a file share on an Amazon EC2 Windows instance via a user data script?

0

We need to use shared drive to store data for WIndows based EC2 instance. Objective here is we should be able to map drive on Windows Server when it starts automatically. I found this blog a little bit complex and facing challenge in joining domain to windows server. https://aws.amazon.com/blogs/storage/seamlessly-map-file-shares-for-amazon-fsx-for-windows-file-server-with-aws-auto-scaling/

  • Might help if you provide some additional info such as:

    Are you using AWS Managed AD or Self-Managed What are you finding complex about the domain join process What are you using to host the file share

1 réponse
0

Given what you describe, it is unclear that you are trying to match the use case that the blog illustrates. The goal of the blog that you reference is to a fleet of EC2 instances that is a part of an autoscaling group and have each map the FSx for Window servers. From your initial statement, it seems that you may only want to map a drive from a single server. Drive mappings in a windows environment are typically done per user - which would be a part of a GPO (Group Policy Object). If you have some process that needs to run against the mounted drive when no one is logged in, then you'll need to use the system account on the Windows client with a persistent drive mapping. Hope this provides you some avenues depending on your use case.

AWS
répondu il y a un an
profile picture
EXPERT
vérifié il y a un mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions