Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 13

Share file in ec2 to s3 bucket

Task 01:(01/07/24)
Create EC2 Instance
Create S3 Bucket
Create IAM role
Follow the steps,

•Search IAM
•Select Role
•Create Role
•Choose a service in EC2
•Click next Button
•Search Amazons3fullaccess
•Select and click next button
•Enter role name(anything(Ex.ec2tos3))
•Finally Create a role
Attach IAM role in EC2 instance
Select needed S3 bucket name
Finally attached
Launch EC2 instance with Linux OS
Follow the commands
*Type some sentances
*Commands>Ctrl+O(save)+Enter>Ctrl+x(Exit).
Final Command:
aws s3 cp copy_filename s3://S3_filelocationname
Finally share file in EC2 to S3

Click Open Button,see the output

You might also like