Skip to content

Commit c621f1b

Browse files
committed
Make AWS keys env variables again (for consistency with documentation)
1 parent 49d6194 commit c621f1b

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ When you set up a Workspace on Terraform Cloud, you can link to this repository.
1111
## What are the prerequisites?
1212

1313
You must have an AWS account and provide your AWS Access Key ID and AWS Secret Access Key to Terraform Cloud. Terraform Cloud encrypts and stores variables using [Vault](https://www.vaultproject.io/). For more information on how to store variables in Terraform Cloud, see [our variable documentation](https://www.terraform.io/docs/cloud/workspaces/variables.html).
14+
15+
The values for `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` should be saved as environment variables on your workspace.

main.tf

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ provider "aws" {
22
version = "2.33.0"
33

44
region = var.aws_region
5-
access_key = var.aws_access_key_id
6-
secret_key = var.aws_secret_access_key
75
}
86

97
provider "random" {

variables.tf

-8
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@ variable "aws_region" {
33
default = "us-west-1"
44
}
55

6-
variable "aws_access_key_id" {
7-
type = string
8-
}
9-
10-
variable "aws_secret_access_key" {
11-
type = string
12-
}
13-
146
variable "db_table_name" {
157
type = string
168
default = "terraform-learn"

0 commit comments

Comments
 (0)