Sunday, February 23, 2020

AWS 05: Accessing S3 bucket from EC2 instance

Let's see how we can access AWS S3 (Simple Storage Services) bucket, and save file on it with aws command.
Also we will check that we can display saved image on S3 bucket referred by web page.

On this tutorial, we use below  environment:



FYI:
S3 offers a robust and scalable storage service, and you can check further details of S3 on here.



Let's take a look each steps.
  1. Check s3 bucket is being created and make it public.
  2. Create s3 access role and attache it to EC2 instances.
  3. Put an image file to the bucket.
  4. Make the image file public on s3 console.
  5. Get object URL of the image file.
  6. Edit html file and refer the image by img tag.
  7. Access to the web server, and check if the image is displayed.  

Please take a look an actual operation on following video.





No comments:

Post a Comment