mirror of
https://github.com/BishopFox/cloudfoxable.git
synced 2026-11-10 01:31:24 -10:00
89 lines
2.0 KiB
Terraform
89 lines
2.0 KiB
Terraform
variable "aws_local_profile" {
|
|
description = "What local profile should terraform use to interact with your AWS account(s)"
|
|
type = string
|
|
default = "default"
|
|
}
|
|
|
|
variable "aws_local_creds_file" {
|
|
description = "Location of your local credentials file"
|
|
type = string
|
|
default = "~/.aws/credentials"
|
|
}
|
|
|
|
variable "aws_assume_role_arn" {
|
|
description = "This is the arn of an already existing principal that can assume into any roles that are created"
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "account_id" {
|
|
description = "This is the ID of the caller account"
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
|
|
variable "shared_high_priv_servicerole" {
|
|
description = "This is the arn of high priv service role that is attached to lambda's ec2's, etc. to facilitate privesc"
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "AWS_REGION" {
|
|
type = string
|
|
default = "us-west-2"
|
|
}
|
|
|
|
variable "AWS_REGION_SUB_1" {
|
|
type = string
|
|
default = "us-west-2a"
|
|
}
|
|
|
|
variable "AWS_REGION_SUB_2" {
|
|
type = string
|
|
default = "us-west-2b"
|
|
}
|
|
|
|
variable "AWS_REGION_SUB_3" {
|
|
type = string
|
|
default = "us-west-2c"
|
|
}
|
|
|
|
# Resources
|
|
resource "random_password" "database-secret" {
|
|
length = 31
|
|
special = true
|
|
min_special = 5
|
|
override_special = "!#$%^&*()-_=+[]{}<>:?"
|
|
keepers = {
|
|
pass_version = 1
|
|
}
|
|
}
|
|
|
|
resource "random_password" "app-secret" {
|
|
length = 31
|
|
special = true
|
|
min_special = 5
|
|
override_special = "!#$%^&*()-_=+[]{}<>:?"
|
|
keepers = {
|
|
pass_version = 1
|
|
}
|
|
}
|
|
|
|
resource "random_string" "resource-suffix" {
|
|
length = 5
|
|
upper = false
|
|
special = false
|
|
}
|
|
|
|
variable "user_ip" {
|
|
description = "The current user's IP address"
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "github_repo" {
|
|
description = "The github repo for the OIDC-GitHub challenge"
|
|
type = string
|
|
default = null
|
|
} |