# Day 38 Getting Started with AWS Basics (Jan 03, 2024)

**AWS:-**

Amazon Web Services is one of the most popular Cloud Provider that has free tier too for students and Cloud enthutiasts for their Handson while learning (Create your free account today to explore more on it).

Amazon Web Services(AWS) is a cloud computing platform that is provided by Amazon which provides several benefits including IAAS, PAAS, and SAAS.

[**Amazon.com**](http://amazon.com/) Web Services launched its first web services in 2002 from the internal infrastructure that [**Amazon.com**](http://amazon.com/) built to handle its online retail operations. In 2006, it began offering its defining IaaS services. AWS was one of the first companies to introduce pay-as-you-go services to its clients.

With AWS one can have remote servers, databases, storage units, Network configurations, Container platforms, etc.

**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.

1. Goto AWS console and login Root user
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1701054754812/28f69ae8-69c0-44cb-98be-f19f442243a9.avif?auto=compress,format&format=webp align="left")
    
    1. Home screen will appear and type “**IAM**” in the search box.
        
        ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1701054774752/bd708428-d3e4-4908-a1dd-e6f82926bcc8.avif?auto=compress,format&format=webp align="left")
        
        ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1701054810652/ab0aa8b1-641e-49f3-92a8-89ef60a43f66.avif?auto=compress,format&format=webp align="left")
        
        1. Click on “**users**” from left hand side of dashboard and click on “**Add users**”
            
            ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1701054837217/78f3021a-e109-4ee8-8ec2-c64f2987729a.avif?auto=compress,format&format=webp align="left")
            
            ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1701054846045/b1ec59d4-12e4-463b-8b9b-06e0ef4b67ad.avif?auto=compress,format&format=webp align="left")
            
            .
            
            ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1701054973658/0e636fac-338f-4652-97f3-5c6b23612981.avif?auto=compress,format&format=webp align="left")
            
            1. Click on Attach policies directly.
                

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1677311734266/1616bdc2-0b35-46d6-a54a-475d8cd719a2.png?auto=compress,format&format=webp&auto=compress,format&format=webp&auto=compress,format&format=webp align="left")

1. Select desired permissions policies. Click on next
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1677311805218/426e5cbc-b729-4a6d-82da-c096d2e88d26.png?auto=compress,format&format=webp&auto=compress,format&format=webp&auto=compress,format&format=webp align="left")

1. Click on create user.
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1677311863205/799dd982-6f67-4592-a386-abe2bc8de0d0.png?auto=compress,format&format=webp&auto=compress,format&format=webp&auto=compress,format&format=webp align="left")

1. New user will be created.
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1677311953760/0b79f57e-03a8-4d78-985e-f6b1f60a75d7.png?auto=compress,format&format=webp&auto=compress,format&format=webp&auto=compress,format&format=webp align="left")

1. Login with new IAM user.
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1677312084275/025b1e27-1acd-4aa5-bb8a-d8fbc5fa09a8.png?auto=compress,format&format=webp&auto=compress,format&format=webp&auto=compress,format&format=webp align="left")
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1677312137502/473fc32f-b74c-409b-a5a4-bafe0c1c0bbc.png?auto=compress,format&format=webp&auto=compress,format&format=webp&auto=compress,format&format=webp align="left")
    
    1. Change the password.
        

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1677312189659/aaacc29e-f8d9-47c2-94e4-2c594a96ccb2.png?auto=compress,format&format=webp&auto=compress,format&format=webp&auto=compress,format&format=webp align="left")

1. Type EC2 in search box and click on Launch instance.
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1677312281880/3417654d-cada-49f5-83b6-cd46950f2ade.png?auto=compress,format&format=webp&auto=compress,format&format=webp&auto=compress,format&format=webp align="left")

1. Enter desired name for your EC2 instance. Select AMI as ubuntu and give key-value pair.
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1677312320971/c99b4fa9-afbf-4d00-9753-68caa93b7b1c.png?auto=compress,format&format=webp&auto=compress,format&format=webp&auto=compress,format&format=webp align="left")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1677312437789/f5ae54a0-2b69-43b5-8fd8-6cfa36233e79.png?auto=compress,format&format=webp&auto=compress,format&format=webp&auto=compress,format&format=webp align="left")

1. Click on Advanced tab and goto user data.
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1677313274167/9550b32d-517b-46dd-b2a9-bda568281291.png?auto=compress,format&format=webp&auto=compress,format&format=webp&auto=compress,format&format=webp align="left")

Wait for EC2 instance to launch.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1677313452244/54861873-c98a-40ae-ab94-f7c5b1573fba.png?auto=compress,format&format=webp&auto=compress,format&format=webp&auto=compress,format&format=webp align="left")

1. Edit security group and add rule on open port id 8080 for jenkins.
    

Back to EC2 instance and click on Details and copy “Public IPv4 address” and paste it adding “:8080” at the end of it.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1677315450289/ed87c340-11fc-4c31-a681-566cb9b6a8ed.png?auto=compress,format&format=webp&auto=compress,format&format=webp&auto=compress,format&format=webp align="left")

**Thank you for your valuable time.**
