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
The clarity of explanations and engaging delivery kept me hooked from start to finish. And can you make video on Docker and Kubernetes.
Simple and straight forward. Thank you. 👍
Your explanations is very good. Thanks for the content.
Very informative in very simple way .. thanks a lot ..
Glad you liked it
great video, your explanations are very helpful.
Bro very helpful and your presentation is very nice 👍expecting more videos like this..Thank you
Sure 👍 , I am creating a new course on AWS x Android. Uploading Soon 🔜
very imporetant content. But, plz consider to cancel bad noise in background, for next attempt. Thank you
Clear explanation, thanks brother!
Glad it was helpful!
Very good explanation, thanks!
Glad it was helpful!
brilliant video thankyou
super explanation
Thank you so much 🙂
Thanks a lot 😊👍
Very helpful video!
Hey man, this is really a very nice video from you.
Why no show from past 1 year?
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
@@IFYStudios good to hear you are gonna restart soon. Waiting for you for latest updates on various AWS tutorial videos ❤️🙂
nice video...came to know new things :)
Thanks for visiting
candycrush in the background xD
A very good video 🙂
Thank you! 😃
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' ...
Please email the details on @ify.stdio@gmail.com
nice video. Question why not save the file in the s3 with same name it is copied as
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)) 🙂
Sir there in my loptop not opend bucket command section
Please mail your query on ify.stdio@gmail.com
Fallowed instructions and received "An error occurred (AccessDenied) when calling the ListBuckets operation: Access Denied" when running aws s3 ls command.
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
How can we automate this whole process?
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.
do we require to configure IAM role if we are accessing s3 bucket from the spring boot code?
Yes we do, and we can also use STSAssumeRoleSessionCredentialsProvider to get the assumed credentials to perform a task by still using an IAM role.
Who is that playing Subway surfers in the background 😂
It's an old video bruh, I don't even remember 😄
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.
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. 😊
can you pls automate the whole process
By automate, what do you mean exactly? Please elaborate more.
Thanks
@@IFYStudios I want to learn infrastructure as code by cdk and terraform
Got it, I can cover that using SAM/Cloudformation or even Terraform. Please allow some time, and thanks for the request.
@@IFYStudios Thank you so much what's your LinkedIn profile
www.linkedin.com/in/shubhamsg 😊 This might answer my infrequent postings
Please change title its connecting from EC2 Instance to S3
Thank you for the suggestion :)