Day 38 Getting Started with AWS Basics

Day 38 Getting Started with AWS Basics


AWS:

Amazon Web Services (AWS) is a comprehensive cloud computing platform offered by Amazon that provides a wide range of services and tools for building and managing cloud-based applications and infrastructure. AWS offers a broad set of infrastructure services, such as computing power, storage options, and networking capabilities, as well as higher-level application services, such as databases, analytics, and machine learning. AWS enables organizations to quickly and easily deploy and manage their applications in a flexible, scalable, and cost-effective way, without having to invest in and maintain their own infrastructure. AWS is used by millions of customers worldwide, ranging from startups and small businesses to large enterprises and government agencies.

IAM:

AWS Identity and Access Management (IAM) is a web service that helps you securely control access to AWS resources. With IAM, you can centrally manage permissions that control which AWS resources users can access. You use IAM to control who is authenticated (signed in) and authorized (has permissions) to use resources.

Task1:

Create an IAM user with username of your own wish and grant EC2 Access. Launch your Linux instance through the IAM user that you created now and install jenkins and docker on your machine via single Shell Script.


To create an IAM user with EC2 access, follow these steps:

Log in to the AWS Management Console.

Go to the IAM service and click on "Users" in the left menu.

No alt text provided for this image

Click on "Add user" and enter a username of your choice.

No alt text provided for this image

Select "Programmatic access" and click "Next".

No alt text provided for this image

Select "Attach existing policies directly" and select the policy "AmazonEC2FullAccess".

No alt text provided for this image

Click "Next" until you reach the end, and then click "Create user".

No alt text provided for this image

Take note of the username and password, as you will need these to authenticate your IAM user when launching instances.

No alt text provided for this image

To launch a Linux instance using your IAM user, follow these steps:

Sign in AWS account as IAM user which we created above.

No alt text provided for this image

Go to the EC2 service and click on "Launch instance".

Choose a Linux AMI.

No alt text provided for this image

Select an instance type t2.micro and create new key-pair.

No alt text provided for this image

click on Launch instance

No alt text provided for this image

Log in ec2 instance using SSH client. Go to command prompt and paste below command at the location where your public key is downloaded.

No alt text provided for this image

You can see here your server

No alt text provided for this image

Install jenkins and docker on your machine via single Shell Script.

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

Check docker and jenkins version

No alt text provided for this image

Task2:

In this task you need to prepare a devops team of avengers. Create 3 IAM users of avengers and assign them in devops groups with IAM policy.

Create 3 IAM users of avengers

No alt text provided for this image

Create a avengers devops group by clicking on the "User Groups" link in the left-hand menu and clicking on the "Create New Group" button.

  1. Enter a name for the group. add the three IAM users to the group by selecting the users.

No alt text provided for this image

In the "Attach Policy" step, search for and select the "AmazonEC2FullAccess", "AmazonS3FullAccess", and "AmazonRDSFullAccess" policies.

Click on the "Create Group" button. below Group devops-avengers is created with 3 users.

No alt text provided for this image

You can add more users by clicking "Add users".

No alt text provided for this image

Thanks for reading :-

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

Kashi Diggi的更多文章

  • Day 44: Relational Database Service in AWS

    Day 44: Relational Database Service in AWS

    Amazon Relational Database Service (Amazon RDS) is a collection of managed services that makes it simple to set up…

  • Day 43: S3 Programmatic access with AWS-CLI

    Day 43: S3 Programmatic access with AWS-CLI

    S3 Amazon Simple Storage Service (Amazon S3) is an object storage service that provides a secure and scalable way to…

  • IAM Programmatic access and AWS CLI

    IAM Programmatic access and AWS CLI

    IAM Programmatic access In order to access your AWS account from a terminal or system, you can use AWS Access keys and…

  • Setting up an Application Load Balancer with AWS EC2

    Setting up an Application Load Balancer with AWS EC2

    What is Load Balancing? Load balancing is the distribution of workloads across multiple servers to ensure consistent…

  • Day 40 AWS EC2 Automation

    Day 40 AWS EC2 Automation

    Automation in EC2: Amazon EC2 or Amazon Elastic Compute Cloud can give you secure, reliable, high-performance, and…

  • Day 39 AWS and IAM Basics

    Day 39 AWS and IAM Basics

    AWS: Amazon Web Services is one of the most popular Cloud Provider that has free tier too for students and Cloud…

  • Day 34 Task: Working with Services in Kubernetes

    Day 34 Task: Working with Services in Kubernetes

    What are Services in K8s In Kubernetes, Services are objects that provide stable network identities to Pods and…

    1 条评论
  • Working with Namespaces and Services in Kubernetes

    Working with Namespaces and Services in Kubernetes

    What are Namespaces and Services in k8s? In Kubernetes, Namespaces are used to create isolated environments for…

  • Launching your Kubernetes Cluster with Deployment

    Launching your Kubernetes Cluster with Deployment

    What is Deployment in k8s A Deployment provides a configuration for updates for Pods and ReplicaSets. You describe a…

  • Task: Launching your First Kubernetes Cluster with Nginx running

    Task: Launching your First Kubernetes Cluster with Nginx running

    What is minikube? Minikube is a tool which quickly sets up a local Kubernetes cluster on macOS, Linux, and Windows. It…

    1 条评论

社区洞察

其他会员也浏览了