diff --git a/README.md b/README.md index 4e6e4e4..05f4c63 100644 --- a/README.md +++ b/README.md @@ -55,14 +55,15 @@ as Terraform will ask you to fill in the different values, but it is convenient. ```ini aws_account_id = "account-id" -aws_access_key = "access-key" -aws_secret_key = "secret-key" aws_region = "eu-west-1" ``` You are now ready to use Terraform! - $ terraform plan +```bash +$ terraform get +$ terraform plan +``` If everything is OK, you can build the whole infrastructure: diff --git a/providers.tf b/providers.tf index 13a1107..7094729 100644 --- a/providers.tf +++ b/providers.tf @@ -1,5 +1,4 @@ +variable "AWS_PROFILE" {} provider "aws" { - access_key = "${var.aws_access_key}" - secret_key = "${var.aws_secret_key}" region = "${var.aws_region}" } diff --git a/variables.tf b/variables.tf index 925b7de..9f7c1dd 100644 --- a/variables.tf +++ b/variables.tf @@ -1,16 +1,9 @@ variable "aws_account_id" { description = "AWS account id" -} - -variable "aws_access_key" { - description = "AWS access key" -} - -variable "aws_secret_key" { - description = "AWS secret key" + default = "405322537961" } variable "aws_region" { description = "AWS region" - default = "eu-west-1" + default = "us-west-2" }