forked from hashicorp/tfc-guide-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
36 lines (29 loc) · 839 Bytes
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
variable "region" {
description = "AWS region"
default = "us-west-1"
}
variable "instance_type" {
description = "Type of EC2 instance to provision"
default = "t2.micro"
}
variable "instance_name" {
description = "EC2 instance name"
default = "Provisioned by Terraform"
}
// DO NOT put your AWS credentials in code
//DO NOT run AWS CLI locally
//DO NOT RUN TERRAFORM LOCALLY
//Because credentials are stored in plain text locally
//And anyone with access to your comnmputer can have your level of access
//to company resources.
variable "AWS_ACCESS_KEY_ID" {
description = "Temp AWS creds"
default = ""
}
variable "AWS_SECRET_ACCESS_KEY" {
description = "Temp AWS creds"
default = ""
}
//Keep the values in code stored blank