Skip to content

Commit

Permalink
Merge pull request #199 from Vishal-K-988/vishal
Browse files Browse the repository at this point in the history
updates basics.md file of aws !
  • Loading branch information
Tikam02 authored Oct 17, 2023
2 parents 982e3b5 + f1ce1d8 commit 9a0c3a0
Showing 1 changed file with 151 additions and 0 deletions.
151 changes: 151 additions & 0 deletions Cloud_providers/AWS/basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,48 @@ Amazon Web Services (AWS) is a versatile cloud computing platform offering a wid

Amazon Resource Names (ARNs) are unique identifiers for AWS resources, essential for unambiguous resource specification. ARNs are utilized in IAM policies, Amazon RDS tags, and API calls.

#### [Amazon EC2 (Elastic Compute Cloud ):](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts.html)

Amazon EC2 provides resizable compute capacity in the cloud. It allows you to run virtual servers for various purposes, ranging from web applications to complex data processing.

#### [Amazon S3 (Simple Storage Service):](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AmazonS3.html)

Amazon S3 is an object storage service that offers industry-leading scalability, data availability, security, and performance. It is used to store and retrieve any amount of data from anywhere on the web.

#### [Amazon RDS (Relational Database Service)](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Welcome.html)

Amazon RDS simplifies the setup, operation, and scaling of a relational database. It supports several database engines, including MySQL, PostgreSQL, and SQL Server, making it easier to set up, operate, and scale a relational database in the cloud.

#### [Amazon VPC (Virtual Private Cloud)](https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html)

Amazon VPC lets you provision a logically isolated section of the AWS Cloud where you can launch AWS resources in a virtual network that you define. You have complete control over your virtual networking environment.

#### [Auto Scaling](https://docs.aws.amazon.com/autoscaling/ec2/userguide/what-is-amazon-ec2-auto-scaling.html)

Auto Scaling allows you to automatically adjust the number of compute resources in your Auto Scaling group. It helps you ensure that you have the correct number of Amazon EC2 instances available to handle the load for your application.

#### [Elastic Load Balancing ](https://docs.aws.amazon.com/elasticloadbalancing/latest/userguide/what-is-load-balancing.html)

Elastic Load Balancing automatically distributes incoming application traffic across multiple targets, such as Amazon EC2 instances, containers, and IP addresses, within one or more availability zones.

#### [Amazon DynamoDB](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Introduction.html)

Amazon DynamoDB is a fully managed NoSQL database service that provides fast and predictable performance with seamless scalability. It is a key-value and document database that delivers single-digit millisecond performance at any scale.


#### [AWS Lambda](https://docs.aws.amazon.com/lambda/?icmpid=docs_homepage_featuredsvcs)

AWS Lambda lets you run code without provisioning or managing servers. You can run your code in response to events and automatically manage compute resources, making it easy to build applications that respond quickly to new information.


#### [Amazon CloudWatch](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_architecture.html)

Amazon CloudWatch monitors your AWS resources and the applications you run on the cloud. You can use CloudWatch to collect and track metrics, collect and monitor log files, set alarms, and automatically react to changes in your AWS resources.

#### [AWS CloudFormation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html)

AWS CloudFormation provides a common language for describing and provisioning all the infrastructure resources in your cloud environment. It allows you to use a simple YAML or JSON file to model and provision, in an automated and secure manner, all the resources needed for your applications.

#### [Identity and Access Management (IAM)](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html)

IAM enables secure management of access to AWS services. Through users, groups, and roles, IAM policies define permissions, evaluated when users make requests.
Expand All @@ -20,8 +62,105 @@ Policies, entities within AWS, define user and resource permissions. AWS assesse

Troubleshooting IAM involves meticulous policy analysis. Ensure policies grant required permissions. Use AWS Policy Simulator to simulate policy effects, aiding policy refinement.

These concepts are fundamental to understanding how AWS services work together to build scalable, reliable, and secure cloud applications and infrastructures.


### Essential Commands

1. **Configures your AWS CLI with your AWS access key, secret key, default region, and output format.**
``` aws configure ```

2. **Displays information about available AWS CLI commands and their usage.**
```aws help```

### Identity and Access Management (IAM) Commands:

1. **Creates a new IAM user.**
```aws iam create-user```

2. **Creates a new IAM group.**
```aws iam create-group```

3. **Creates a new IAM role.**
```aws iam create-role```

4. **Attaches an IAM policy to a user.**
```aws iam attach-user-policy```

7. **Attaches an IAM policy to a group.**
```aws iam attach-group-policy```

8. **Attaches an IAM policy to a role.**
```aws iam attach-role-policy```

9. **Lists all IAM users in your account.**
```aws iam list-users```

10. **List all IAM groups in your account**
```aws iam list-groups```

11. **Lists all IAM roles in your account.**
```aws iam list-roles```

### EC2 (Elastic Compute Cloud) Commands:

1. **Lists all EC2 instances in your account.**
```aws ec2 describe-instances```

2. **Launches a new EC2 instance.**
```aws ec2 run-instances```

3. **Starts an existing EC2 instance.**
```aws ec2 start-instances```

4. **Stops a running EC2 instance.**
```aws ec2 stop-instances```

5. **Terminates an EC2 instance.**
```aws ec2 terminate-instances```

### S3 (Simple Storage Service) Commands:

1. **Lists all S3 buckets in your account.**
```aws s3 ls```

2. **Creates a new S3 bucket.**
```aws s3 mb```

3. **Copies files or directories to/from S3.**
```aws s3 cp```

4. **Synchronizes files and directories to S3.**
```aws s3 sync```

5. **Deletes files or objects from S3.**
```aws s3 rm```

### CloudFormation Commands:

1. **Creates a new CloudFormation stack.**
```aws cloudformation create-stack```

2. **Updates an existing CloudFormation stack.**
```aws cloudformation update-stack```

3. **Deletes a CloudFormation stack.**
```aws cloudformation delete-stack```

### Lambda Commands:

1. **Lists all Lambda functions in your account.**
```aws lambda list-functions```

2. **Creates a new Lambda function.**
```aws lambda create-function```

3. **Invokes a Lambda function.**
```aws lambda invoke```

These commands are just the basics and cover a wide range of AWS services.
For specific command options and syntax, you can always refer to the official AWS CLI documentation or use the `aws help` command followed by the service name, e.g., `aws ec2 help`.

#### Kubernetes Contexts

Managing Kubernetes contexts is vital for multiple cluster management:
Expand Down Expand Up @@ -71,3 +210,15 @@ Auto Scaling: Leverage AWS Auto Scaling to automatically adjust the number of in
Tagging Strategy: Develop a consistent tagging strategy for your AWS resources. Tags help in organizing resources, managing costs, and ensuring security compliance.

Automate Tagging: Automate resource tagging using AWS Lambda functions or AWS Config rules. Consistent tagging simplifies resource tracking and management.

#### 5. Organize Resources with Tags:
Use tags to label and organize your AWS resources effectively. Tags are key-value pairs that can be attached to most AWS resources, allowing you to categorize and manage resources based on their purpose, owner, or any other criteria.

#### 6. Automate Everything:
Use AWS CloudFormation templates or AWS CDK (Cloud Development Kit) to automate the provisioning of resources. Infrastructure as Code (IaC) practices help in versioning, replicability, and disaster recovery.

#### 7. Set Up Billing Alarms:
Avoid unexpected charges by setting up billing alarms in AWS Budgets. You can receive alerts when your costs exceed a predefined threshold, helping you keep track of your expenses.

#### 8. Plan for Disaster Recovery:
Implement disaster recovery plans using services like AWS Backup and AWS Disaster Recovery. Regularly test your recovery processes to ensure that you can quickly restore services in case of failures.

0 comments on commit 9a0c3a0

Please sign in to comment.