- Download and install AWS CLI:
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" unzip awscliv2.zip sudo ./aws/install
- Verify installation:
aws --version
- Download the installer from AWS CLI Official Site
- Run the installer and follow the setup instructions.
- Verify installation:
aws --version
- Install using Homebrew:
brew install awscli
- Verify installation:
aws --version
- Run the following command to configure AWS credentials:
aws configure
- Provide the following details when prompted:
- AWS Access Key ID
- AWS Secret Access Key
- Default region name (e.g.,
us-east-1
) - Default output format (e.g.,
json
ortext
)
NOTE: Above command stores AWS credentials in ~/.aws/credentials
, Terraform uses those credentails to interact with AWS.