DevOps Project - 10 (AWS Mini Project)
1.?????Create a new IAM User.
2.?????Enter the name and click on “Next”
3.?????Here, we need to select “Attach Policies directly” and click on “Create Policy”.
4.?????Now, for a new policy to be created, we need to select the settings as per below:
Service: S3
Action: List:
??????????????ListAllMyBuckets
ListBucket
ListBucketVersions
Read:
GetObject
GetObjectVersion
?????????????????????????????Resources: Specific
?????????????????????????????Bucket: Any
?????????????????????????????Object: Any
5.?????Give this policy a name accordingly and click on “Create Policy”.
6.?????The policy has been created, now we will create a User with the new policy.
7.?????Enter a name for the new user.
?
8.?????Attach the newly created policy with a new user.
?
9.?????Now, go to “Security Credentials”.
?
10.??In the “Access Keys” and click on “Create Keys”
?
11.??Here select “Command Line Interface CLI”.
12.??You will get the Access Key and Secret.
?
13.??Create a new “t2.micro” instance.
?
14.??SSH to the server.
?
15.??Install AWS CLI.
16.??After installation of AWS CLI, we will now Install the s3fs.
?
17.??Create a folder named “bucket” to the location “/home/ubuntu”
?
18.??Now, we will add 2-3 files in “/home/ubuntu/bucket”.
?
19.??Now, go to the AWS console and create a bucket.
20.??Give the bucket a name accordingly.
?
21.??Jump back to the VM and configure the AWS CLI, by running the command
“aws configure”
?Provide the username and password that we created in Step 12.
22.??Now, run the command
“aws s3 sync <location_of_files> <s3://bucket_name>”
?
23.??All the files present inside the given location in AWS EC2, will be uploaded to the S3 bucket.
?
24.??Now, refresh the objects inside the bucket, now you can see all the files that were in the EC2 will be in the S3 bucket.
?
Hope you found this helpful. Do connect/ follow for more such content.
~ Chetan Rakhra.
| AWS | DevOps | DataOps | FinOps | Power BI |
1 年In short, It's all about "AWS S3 sync" command ??
.
1 年Very useful ??
Software Development Engineer Testing
1 年Amazing Series, Chetan i could not find Day 15 to Day 90 of #90DaysOfDevOps. any update?
Portuguese Language Expert || Automation Testing|| Java || Selenium|| TestNG|| BDD Cucumber|| DevOps || Linux || Shell Scripting||AWS | Git/Github|| Jenkins|| Docker ||Grafana |K8s |Terrform | Serverless Architecture ||
1 年Informative Chetan R ??!
AWS DevOps Engineer|| GCP || Docker|| Kubernetes || CI/CD Pipeline || Jenkins||
1 年??