I am using an Amazon EC2 instance running Windows.
How can I share a file to external users that are not in the same network but they have internet access? If there is an option by doing it programmatically, it will be very useful.
Thank you.
Your situation is not specific to Amazon EC2. The answer would be applicable to any Windows computer on the Internet.
The easiest way for a computer to "share a file to external users" would be via a web server. Users could simply click a link in the web browser and the file would download.
However, since you are running on AWS, you might want to take advantage of Amazon S3, which is a an object storage service. You could upload the file from the Windows computer to Amazon S3 and then make the file publicly available via a URL. This way, your users will be able to access the file without having to connect to the Windows computer. It would also be more reliable and could handle more traffic than the Windows computer. You can programmatically upload to an Amazon S3 bucket.
Related
My application is hosted on Amazon Elastic Compute Cloud by the developer. I need to retrieve the source code for my web application. I am a new user so I need to know how can i download the source codes in my local host.
You need to log into the instance using SSH. If you're familiar with SSH then you can SCP from your local machine.
Of you're not familiar, you can use Systems Manager and transfer the data to S3 then download from there:
https://aws.amazon.com/premiumsupport/knowledge-center/systems-manager-ssh-vpc-resources/
We have use case where we want the ability to create shareable drive that would link our ec2 windows instance with any of the storage service (s3 or any other service), such that our user would upload their pdf files in that storage and will be accessible by our windows ec2 instance in which we have program that does pdf files processing. So is there way we can achieve this in aws?
Since your Windows software requires a 'local drive' to detect input files, you could mount an Amazon S3 bucket using utilities such as:
Cloudberry Drive
TntDrive
Mountain Duck
ExpanDrive
Your web application would still be responsible for authenticating users and Uploading objects using presigned URLs - Amazon Simple Storage Service directly to Amazon S3. Your app would also need to determine how to handle the 'output' files so that users can access their converted file.
I'm current using Xammp,and have created a website in the htdocs. I want to know if i can access this from another computer (not in the same network) and work on the site from that other computer.
You can do this by using the dynamic dns service provided by noip.com. Download the noip client and setup an account in it (try Googling on it).
After that you must edit the conf files in XAMPP to allow outside network to communicate with your network.
I am making a web app that is hosted on amazon ec2. One of the page allows user to upload photo to the site.
MY script works on ordinary site, but not with ec2, so I suspect the problem is about connection or authorization.
Maybe ordinary web user do not have authorization to upload to the var/www/html/ directory? But how to enable them?
(specifically I think the following line is not working
move_uploaded_file)
I am using AMazon ec2 micro instance Linux AMI server. I am uploading via a form in a php file.
I have a question about the direct way to access file in EBS.
If I have an EC2 and EBS already and have a file 'a.pdf', can I access 'a.pdf' through URI? even out of EC2?
for example, my friend Mike wants to get 'a.pdf' file at his house just using Web browser or teminal program, etc. Please tell me what action does Mike have to do!
Thanks!
If you have an EC2 instance running you can set up a web server on your EC2 instance, mount the EBS volume and access the file via the web server.
AFAIK there is no way to access files in EBS directly - if this is what you need you should be using S3.