- If we want to create resources on AWS if it is 5 to 10 resources then we can easily create using web ui
- But what if it is 500 resources that too in limited time
- AWS CLI -- it will interact with AWS API's
- AWS CLI
- Terraform
- Cloud Formation Template
- AWS CDK
- BOTO3 and etc
NOTE:THE ABOVE TOOLS TO AUTOMATE INFRA IN AWS
- Web Ui
- API -- though programming
- We have AWS CLI, CFT AND TERRRAFORM
- AWS CLI is used for quick command line like list of s3 or ec2
- CFT and Terraform is used to create complex or infra which is in YAML files where aws cli will find bit difficult to write in command line
- python is pre-request
- https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
- after installation check for version for verification
- User
aws configure
and set the details --> Get the access key and serect access from the aws web ui - Click on your profile --> securetiy credential (right top corner) and yu will find access key create it and stored it in safe place they are senstive
- Only 2 access keys are allowed to created for the account
aws configure
AWS Access Key ID [****************VO7Y]:
AWS Secret Access Key [****************D/Ry]:
Default region name [us-east-1]:
Default output format [json]:
https://docs.aws.amazon.com/cli/latest/reference/
for all the docs like ec2, s3 and etc services
REF LINKS: for most commonly used cli commands
https://gist.github.com/apolloclark/b3f60c1f68aa972d324b
https://github.com/ravsau/AWS-CLI-Commands