DevOps Project - 10 (AWS Mini Project)

DevOps Project - 10 (AWS Mini Project)

1.?????Create a new IAM User.

No alt text provided for this image


2.?????Enter the name and click on “Next”

No alt text provided for this image


3.?????Here, we need to select “Attach Policies directly” and click on “Create Policy”.

No alt text provided for this image


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

No alt text provided for this image


5.?????Give this policy a name accordingly and click on “Create Policy”.

No alt text provided for this image


6.?????The policy has been created, now we will create a User with the new policy.

No alt text provided for this image


7.?????Enter a name for the new user.

No alt text provided for this image

?

8.?????Attach the newly created policy with a new user.

No alt text provided for this image
No alt text provided for this image

?

9.?????Now, go to “Security Credentials”.

No alt text provided for this image

?

10.??In the “Access Keys” and click on “Create Keys”

No alt text provided for this image

?

11.??Here select “Command Line Interface CLI”.

No alt text provided for this image


12.??You will get the Access Key and Secret.

No alt text provided for this image

?

13.??Create a new “t2.micro” instance.

No alt text provided for this image

?

14.??SSH to the server.

?

15.??Install AWS CLI.

No alt text provided for this image


16.??After installation of AWS CLI, we will now Install the s3fs.

No alt text provided for this image

?

17.??Create a folder named “bucket” to the location “/home/ubuntu”

No alt text provided for this image

?

18.??Now, we will add 2-3 files in “/home/ubuntu/bucket”.

No alt text provided for this image

?

19.??Now, go to the AWS console and create a bucket.

No alt text provided for this image


20.??Give the bucket a name accordingly.

No alt text provided for this image
No alt text provided for this image

?

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.

No alt text provided for this image


22.??Now, run the command

“aws s3 sync <location_of_files> <s3://bucket_name>”

No alt text provided for this image

?

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.

No alt text provided for this image

?

Hope you found this helpful. Do connect/ follow for more such content.

~ Chetan Rakhra.

Jugal K Saini

| AWS | DevOps | DataOps | FinOps | Power BI |

1 年

In short, It's all about "AWS S3 sync" command ??

Amar Talla

Software Development Engineer Testing

1 年

Amazing Series, Chetan i could not find Day 15 to Day 90 of #90DaysOfDevOps. any update?

Mala Kiran

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 ??!

Jiban Kumar Swain

AWS DevOps Engineer|| GCP || Docker|| Kubernetes || CI/CD Pipeline || Jenkins||

1 年

??

要查看或添加评论,请登录

Chetan R的更多文章

  • Interview Question Series - 7 (Monitoring)

    Interview Question Series - 7 (Monitoring)

    Here are the top frequently asked interview questions for Monitoring: 1. What is monitoring in DevOps, and why is it…

    5 条评论
  • Interview Question Series - 6 (AWS)

    Interview Question Series - 6 (AWS)

    1. What is AWS and how is it different from traditional data centers? AWS is a cloud computing platform that offers a…

    3 条评论
  • DevOps Project - 15 (Step-by-step Implementation)

    DevOps Project - 15 (Step-by-step Implementation)

    DevOps Project - 14: Deploy DOTNET web app using Azure PAAS service, use Terraform to deploy infrastructure, and…

    4 条评论
  • Interview Question Series - 5 (CI/CD)

    Interview Question Series - 5 (CI/CD)

    Interview Question Series - 5 (CI/CD) 1. What is CI/CD? >> CI/CD stands for Continuous Integration/Continuous…

    20 条评论
  • DevOps Project - 14 (Step-by-step Implementation)

    DevOps Project - 14 (Step-by-step Implementation)

    DevOps Project - 14: 3 Tier Application Deployment using Kubernetes EKS Cluster. 1.

    36 条评论
  • DevOps Project - 13 (Step-by-step Implementation)

    DevOps Project - 13 (Step-by-step Implementation)

    The very first step is to Install Terraform in your machine, by visiting the official site of Terraform. Here you need…

    14 条评论
  • Interview Question Series - 4 (GIT)

    Interview Question Series - 4 (GIT)

    1. What is Git, and how does it differ from other version control systems? Answer: Git is a distributed version control…

    13 条评论
  • Interview Question Series - 3 (Kubernetes)

    Interview Question Series - 3 (Kubernetes)

    1. What is Kubernetes, and why is it important for container orchestration? Answer: Kubernetes is an open-source…

    10 条评论
  • Interview Question Series - 2 (Docker)

    Interview Question Series - 2 (Docker)

    1. What is Docker? Docker is an open-source platform that allows you to automate the deployment, scaling, and…

    17 条评论
  • DevOps Project - 12 (Step-by-step Implementation)

    DevOps Project - 12 (Step-by-step Implementation)

    Project 10: Build a website using AWS CodeCommit and AWS CodeBuild. Here is the Architecture: 1.

    24 条评论

社区洞察

其他会员也浏览了