Connect S3 Bucket to EC2 Instance with IAM role

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ส.ค. 2024
  • Creating an EC2 instance always has storage constraints because mostly we manage our files where we can access them conveniently. If we have our files on EC2, then there might be a chance of losing them if somehow the instance got terminated. To prevent this, we have an amazing storage service called S3 or Simple Storage Service.
    In this video, we see how to connect our S3 storage to our EC2 instance by assigning the IAM role. Later, a user can access the same using any terminal or command-line interface.
    • Amazon S3 ▶️ amzn.to/34i099K
    • Amazon IAM ▶️ docs.aws.amazo...
    #amazonaws #ec2instance #s3bucket #iamrole #integration
    AWS
    Instances
    S3 Bucket
    IAM Role

ความคิดเห็น • 50

  • @SaiAbhiramBethi-bp7tv
    @SaiAbhiramBethi-bp7tv 7 หลายเดือนก่อน

    The clarity of explanations and engaging delivery kept me hooked from start to finish. And can you make video on Docker and Kubernetes.

  • @oluomoay2278
    @oluomoay2278 ปีที่แล้ว +1

    Simple and straight forward. Thank you. 👍

  • @ruhulaminsande8352
    @ruhulaminsande8352 2 ปีที่แล้ว +1

    Your explanations is very good. Thanks for the content.

  • @rupeshfitnesstravel
    @rupeshfitnesstravel 2 ปีที่แล้ว +2

    Very informative in very simple way .. thanks a lot ..

    • @IFYStudios
      @IFYStudios  2 ปีที่แล้ว

      Glad you liked it

  • @sandro_j
    @sandro_j 2 ปีที่แล้ว +2

    great video, your explanations are very helpful.

  • @vinodkumar-cs4xi
    @vinodkumar-cs4xi 2 ปีที่แล้ว +1

    Bro very helpful and your presentation is very nice 👍expecting more videos like this..Thank you

    • @IFYStudios
      @IFYStudios  2 ปีที่แล้ว

      Sure 👍 , I am creating a new course on AWS x Android. Uploading Soon 🔜

  • @Learn_IT_with_Azizul
    @Learn_IT_with_Azizul 7 หลายเดือนก่อน +1

    very imporetant content. But, plz consider to cancel bad noise in background, for next attempt. Thank you

  • @saripellasameersharma7887
    @saripellasameersharma7887 ปีที่แล้ว +1

    Clear explanation, thanks brother!

    • @IFYStudios
      @IFYStudios  ปีที่แล้ว

      Glad it was helpful!

  • @danishisrarkhan6882
    @danishisrarkhan6882 2 ปีที่แล้ว

    Very good explanation, thanks!

    • @IFYStudios
      @IFYStudios  ปีที่แล้ว

      Glad it was helpful!

  • @AliTwaij
    @AliTwaij ปีที่แล้ว +1

    brilliant video thankyou

  • @nandakumark5347
    @nandakumark5347 2 ปีที่แล้ว +3

    super explanation

    • @IFYStudios
      @IFYStudios  2 ปีที่แล้ว

      Thank you so much 🙂

  • @manojgowda1718
    @manojgowda1718 หลายเดือนก่อน

    Thanks a lot 😊👍

  • @josephmotto7061
    @josephmotto7061 2 ปีที่แล้ว

    Very helpful video!

  • @mohammedasifkhanp5032
    @mohammedasifkhanp5032 ปีที่แล้ว +2

    Hey man, this is really a very nice video from you.
    Why no show from past 1 year?

    • @IFYStudios
      @IFYStudios  ปีที่แล้ว +1

      Thanks, Man,,,, Yea,,, It's just I have a full-time job so, taking out time for this stuff took a toll after office resumption 😅. But, I am gonna restart super soon

    • @mohammedasifkhanp5032
      @mohammedasifkhanp5032 ปีที่แล้ว

      @@IFYStudios good to hear you are gonna restart soon. Waiting for you for latest updates on various AWS tutorial videos ❤️🙂

  • @pixdata8126
    @pixdata8126 2 ปีที่แล้ว +1

    nice video...came to know new things :)

    • @IFYStudios
      @IFYStudios  ปีที่แล้ว

      Thanks for visiting

  • @Kartik2611
    @Kartik2611 6 หลายเดือนก่อน

    candycrush in the background xD

  • @trackxin
    @trackxin ปีที่แล้ว

    A very good video 🙂

  • @coolmaster6084
    @coolmaster6084 ปีที่แล้ว

    Hello brother thanks for the clear explanation, But I am getting some errors ,I followed the all the steps as per the video, on the first time aws s3 cli is working properly, but after reconnecting to the ec2 I tried the aws s3 ls command , but I am getting the errors like the AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms' ...

    • @IFYStudios
      @IFYStudios  ปีที่แล้ว

      Please email the details on @ify.stdio@gmail.com

  • @gabrielonyieaho8293
    @gabrielonyieaho8293 ปีที่แล้ว +1

    nice video. Question why not save the file in the s3 with same name it is copied as

    • @IFYStudios
      @IFYStudios  ปีที่แล้ว

      We can. When we copy the file with the same name, it overwrites the same file so, to show the process, I changed the name.
      When replaced (we can still see the old file in the versions tab (if enabled)) 🙂

  • @KrishnaYadav-ke4mf
    @KrishnaYadav-ke4mf ปีที่แล้ว +1

    Sir there in my loptop not opend bucket command section

    • @IFYStudios
      @IFYStudios  ปีที่แล้ว

      Please mail your query on ify.stdio@gmail.com

  • @mbraylarak
    @mbraylarak ปีที่แล้ว

    Fallowed instructions and received "An error occurred (AccessDenied) when calling the ListBuckets operation: Access Denied" when running aws s3 ls command.

    • @IFYStudios
      @IFYStudios  ปีที่แล้ว

      If you're not the owner of the account then you require to add s3:ListBucket in S3 bucket policy as well. This falls under permissions tab in S3 bucket.
      If you're the owner, then it should work, as we are giving full access for now

  • @Gurudev031
    @Gurudev031 ปีที่แล้ว +1

    How can we automate this whole process?

    • @IFYStudios
      @IFYStudios  ปีที่แล้ว

      There are plenty of ways to automate. Terraform, cloud formation, etc IAC services give you the freedom to automate the creation of AWS Resources. FWIW, even lambda functions can be used to create resources.

  • @khushbupanchal4836
    @khushbupanchal4836 ปีที่แล้ว

    do we require to configure IAM role if we are accessing s3 bucket from the spring boot code?

    • @IFYStudios
      @IFYStudios  ปีที่แล้ว

      Yes we do, and we can also use STSAssumeRoleSessionCredentialsProvider to get the assumed credentials to perform a task by still using an IAM role.

  • @abhitechegde
    @abhitechegde ปีที่แล้ว

    Who is that playing Subway surfers in the background 😂

    • @IFYStudios
      @IFYStudios  ปีที่แล้ว

      It's an old video bruh, I don't even remember 😄

  • @datasleek7950
    @datasleek7950 7 หลายเดือนก่อน

    This is bad. You're giving Full S3 access which mean your role has access to all S3 buckets. You should grant at the bucket level.

    • @IFYStudios
      @IFYStudios  7 หลายเดือนก่อน +1

      I have already mentioned this is only for tutoring purposes. I have another video wherr I've explained about the IAM and its integration with S3. Thanks for the comment by the way. 😊

  • @soumyamishra8734
    @soumyamishra8734 ปีที่แล้ว +1

    can you pls automate the whole process

    • @IFYStudios
      @IFYStudios  ปีที่แล้ว

      By automate, what do you mean exactly? Please elaborate more.
      Thanks

    • @soumyamishra8734
      @soumyamishra8734 ปีที่แล้ว +1

      @@IFYStudios I want to learn infrastructure as code by cdk and terraform

    • @IFYStudios
      @IFYStudios  ปีที่แล้ว

      Got it, I can cover that using SAM/Cloudformation or even Terraform. Please allow some time, and thanks for the request.

    • @soumyamishra8734
      @soumyamishra8734 ปีที่แล้ว

      @@IFYStudios Thank you so much what's your LinkedIn profile

    • @IFYStudios
      @IFYStudios  ปีที่แล้ว

      www.linkedin.com/in/shubhamsg 😊 This might answer my infrequent postings

  • @dtvind
    @dtvind ปีที่แล้ว

    Please change title its connecting from EC2 Instance to S3

    • @IFYStudios
      @IFYStudios  ปีที่แล้ว

      Thank you for the suggestion :)