Getting downloadable link to a file in EC2 Windows Server - amazon-web-services

I have a AWS EC2 Windows Server Instance with files on its local drive. I would like to provide a downloadable link (with/without authentication) to other users in the group. Is this possible?

Related

OpenVPN 2.8.5 hosted in EC2 Instance what is the best way to extract ziped files from local machine into cloud VPN directory?

I try to connect to IoT Controllers via VPN.
The Controllers are already set up. I only need to establish a VPN to have remote access.
For that i installed OpenVPN in a AWS EC2 Instance.
To build the Connection between OpenVPN and the Clients, i need to create certificates & keys for the server and the clients.
The documentation says that i need to extract the easy-rsa 2 script bundle (ziped files) into the home directory of the OpenVPN: https://openvpn.net/community-resources/setting-up-your-own-certificate-authority-ca/
My question: How can i unzip a file from my local machine into the home directory of a cloud hosted VPN?
UPDATE
Currently i try via scp to transfer the zip to the openvpn instance.
scp -i ~\OpenVPNKeys.pem easy-rsa-old-master.zip openvpnas#34.249.227.33:/home/
But i get the following error:
scp: /home/easy-rsa-old-master.zip: Permission denied
When i try:
scp -i ~\OpenVPNKeys.pem easy-rsa-old-master.zip openvpnas#34.249.227.33
without specifying the directory it works. I get the message:
1 Datei(en) kopiert
But then i have no clue where the file is saved. Does anayone know where files will be saved automatically?

Best way to connect AWS Transfer Family (SFTP) with Windows EC2 VM?

I have a requirement where some clients will be sending files using SFTP Client. these files need to be processed by an application that is hosted in a EC2 Windows VM.
This application code can not be changed to pick files from a S3 location. It can only pick files from a windows folder path (this path can be changed from a Config file).
For this requirement we have hosted a AWS transfer family SFTP endpoint with S3 Storage bucket.
Now the customers are pushing files via SFTP Client and those files are arriving in the S3 Bucket properly.
Now the question is, how can we make those files accessible from the Windows EC2 VM ?
Currently AWS Transfer Family SFTP server can be configured only with S3 and EFS.
EFS can not be mounted in a Windows EC2 VM (At least there are no straightforward way to do this).
So what could be my option? Is there a way to connect S3 with a Windows VM so that the S3 content can be directly accessible from the Windows EC2 VM as a Mapped drive ? Or is there a way to make a local windows folder that always remains in sync with the S3 location ?

Unable to access sftp server directly from browser

I have created a sftp server for linux ec2 instance on aws. I have also mount the s3 bucket on linux using s3fs.
Now, any third party is able to access the sftp server using WinSCP. However, I am looking for the ways to access this server using browser url.
I have tried something like:
sftp://username:password#hostip
But it opens through the WinScp applocation and not through the browser directly.
Are they any ways to achieve it directly from browser?
skip the Linux layer and allow direct access to the bucket from the web
as described here
https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html

How to upload files in ec2 instance using windows n putty?

I have created an ec2 instance and connected this instance with putty. But now i have confused to how to upload files or web pages on that instance
You can install WinSCP or FileZilla in windows and upload the files. Have a look at this stackoverflow question and answer for additional details in authenticating to the ec2 instance.

how to create a amazon cloud machine using ec2

I am new to the amazon world.
I have got an amazon ec2 machine with it's public dns and a .pem file . i have connected to the machine using putty by generating a ppk file . now i am able to login to the remote machine using root user. Can someone help me how to create a remote desktop machine or as a cloud machine like the way windows has a rdp feature so that i can install the software. Do i need to install vncserver on it ?. if yes, is there any handy video or documentation which can provide me steps to connect . i have to install appache 2 and mysql on it.
Appreciate your help.
P.S. I can't see any instance on the amzon ec2 which can be created with the machine dns i have got.
Thanks.
1) To see you instance in AWS Console, you need to choose region, where that ec2 server is deployed.
Click on right top menu, there is list of regions there.
2) As we understood, you need to install LAMP Server on that instance.
There are lots of examples how to do it (without GUI, using command line interface).
Find them easily typing how to setup lamp server on ubuntu/centos, depending on your OS.