One way is by using aws cli
. Run the following command in your terminal:
$ aws configure
For Reference and other methods visit https://docs.aws.amazon.com/cli/latest/userguide/cli-config-files.html
$ git clone https://github.com/mabdullah353/terra_form_es.git
terraform init terra_form_es/
terraform validate terra_form_es/
terraform plan terra_form_es/
This will actually create instances for us on AWS.
terraform apply terra_form_es/
Clean everything from AWS.
terraform destroy terra_form_es/