Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

removed aws access/secret keys #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
3 changes: 1 addition & 2 deletions providers.tf
Original file line number Diff line number Diff line change
@@ -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}"
}
11 changes: 2 additions & 9 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -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"
}