- Download the AWS CLI .exe installer file for Windows from AWS site
- If you do not have admin privileges for your window machine or laptop use the below CLI command to force install the AWS CLI on your user profile.
msiexec /a
C:\Users\%USERPROFILE%\Downloads\AWSCLIV2.msi /qb TARGETDIR=%USERPROFILE%\awscli
- It will install the AWS CLI on the user profile on your machine
C:\Users\%USERPROFILE%\awscli\Amazon\AWSCLIV2\awscli
- Alternatively, you can use the below command line to install the AWS CLI but it would prompts you for an Administrative privilege
msiexec.exe
/i https://awscli.amazonaws.com/AWSCLIV2.msi
- Update the windows user PATH variable with the full path in order to access the aws cli from any location on dos prompt
C:\Users\%USERPROFILE%\awscli\Amazon\AWSCLIV2
- Once done type "aws" on DOS prompt you could see the CLI working & could be able to execute all the commands related to AWS
- Download the terraform CLI for Windows from terraform site
https://www.terraform.io/downloads
- Copy the downloaded .zip file to your user profile folder for example
“C:\Users\%USERPROFILE%\TERRAFORM\terraform_1.1.9_windows_386.zip”
- unzip the file terraform_x.x.x_windows_386.zip, you would see an terraform.exe file under your below folder
“C:\Users\%USERPROFILE%\TERRAFORM\terraform.exe”
- Update the windows PATH variable with the full path in order to access the terraform cli from any location on DOS prompt
- Once done type "terraform" on DOS prompt, you could see the CLI working & could be able to execute all the commands related to terraform
By
following the below steps to configure the aws credentials environment
variables you will be able to connect to your aws account seamlessly via aws or
terraform command lines and will be able to deploy the infrastructure via
terraform commands.
- Create a .aws folder on your user profile folder path & place the .credentials file
C:\Users\%USERPROFILE%\.aws
- Update the .credentials with the below variables to connect to your AWS account from windows machine
aws_access_key_id=<your_aws_account_access_key_id>
aws_secret_access_key=<your_aws_account_access_key>
No comments:
Post a Comment