-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
53 lines (42 loc) · 1.19 KB
/
main.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
terraform {
backend "s3" {
key = "alm"
encrypt = true
}
}
variable "sandbox" {
description = "Behave as if we are running in sandbox (as opposed to prod)"
default = true
}
variable "alm_role_arn" {
description = "The ARN for the assume role for ALM access"
}
variable "alm_state_bucket_name" {
description = "The name of the S3 state bucket for ALM"
}
resource "aws_key_pair" "cloud_key" {
key_name = "${terraform.workspace}_cloud_key"
public_key = var.key_pair_public_key
}
variable "region" {
description = "AWS Region"
default = "us-east-2"
}
variable "owner" {
description = "User creating this VPC. It should be done through jenkins"
default = "jenkins"
}
variable "environment" {
description = "VPC environment. It can be sandbox, dev, staging or production"
}
variable "cluster_instance_ssh_public_key_path" {
description = "AWS The path to the 'oasis@MBP-' public key to use for the container instances"
}
variable "allowed_cidrs" {
description = "The CIDRs allowed access to containers"
type = list(string)
default = ["0.0.0.0/0"]
}
variable "key_pair_public_key" {
description = "The public key used to create a key pair"
}