2019-05-28 16:33:58 +00:00
|
|
|
/* REQUIRED -------------------------------------*/
|
|
|
|
|
2019-07-30 18:36:52 +00:00
|
|
|
variable "aws_access_key" {
|
2019-05-28 16:33:58 +00:00
|
|
|
description = "Access key for the AWS API."
|
|
|
|
}
|
|
|
|
|
2019-07-30 18:36:52 +00:00
|
|
|
variable "aws_secret_key" {
|
2019-05-28 16:33:58 +00:00
|
|
|
description = "Secret key for the AWS API."
|
|
|
|
}
|
|
|
|
|
2019-07-30 18:36:52 +00:00
|
|
|
variable "gandi_api_token" {
|
2019-05-28 19:17:01 +00:00
|
|
|
description = "API token for Gandi DNS API"
|
|
|
|
}
|
|
|
|
|
2019-05-28 16:33:58 +00:00
|
|
|
/* GENERAL --------------------------------------*/
|
|
|
|
|
2019-07-30 18:36:52 +00:00
|
|
|
variable "hosts_subdomain" {
|
2019-05-28 16:33:58 +00:00
|
|
|
description = "Domain for hosts entries."
|
2019-05-28 21:30:23 +00:00
|
|
|
default = "hosts"
|
2019-05-28 16:33:58 +00:00
|
|
|
}
|
|
|
|
|
2019-07-30 18:36:52 +00:00
|
|
|
variable "public_domain" {
|
2019-05-28 16:33:58 +00:00
|
|
|
description = "Public DNS Domain address"
|
|
|
|
default = "dap.ps"
|
|
|
|
}
|
2019-05-28 18:42:16 +00:00
|
|
|
|
|
|
|
/* ENVIRONMENT ----------------------------------*/
|
|
|
|
|
2019-07-30 18:36:52 +00:00
|
|
|
variable "group" {
|
2019-05-29 15:10:50 +00:00
|
|
|
description = "Name of Ansible group"
|
|
|
|
default = "dap-ps-dev"
|
|
|
|
}
|
|
|
|
|
2019-07-30 18:36:52 +00:00
|
|
|
variable "env" {
|
2019-05-28 18:42:16 +00:00
|
|
|
description = "Name of environment to create"
|
|
|
|
default = "dapps"
|
|
|
|
}
|
2019-05-28 20:15:26 +00:00
|
|
|
|
2019-07-30 18:36:52 +00:00
|
|
|
variable "image_name" {
|
2019-05-28 21:23:18 +00:00
|
|
|
description = "Name of AMI image to use."
|
|
|
|
default = "ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-20190212.1"
|
|
|
|
}
|
|
|
|
|
2019-07-30 18:36:52 +00:00
|
|
|
variable "ssh_user" {
|
2019-05-28 22:32:52 +00:00
|
|
|
description = "Default user to use when accesing host via SSH."
|
|
|
|
default = "ubuntu"
|
|
|
|
}
|
2019-05-31 18:04:43 +00:00
|
|
|
|
2019-07-30 18:36:52 +00:00
|
|
|
variable "stack_name" {
|
2019-07-25 21:05:05 +00:00
|
|
|
description = "Elastic Beanstalk stack, e.g. Docker, Go, Node, Java, IIS."
|
2019-11-02 13:45:16 +00:00
|
|
|
default = "64bit Amazon Linux 2018.03 v4.11.0 running Node.js"
|
2019-07-25 21:05:05 +00:00
|
|
|
/* http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/concepts.platforms.html */
|
|
|
|
}
|
|
|
|
|
2019-06-03 16:32:11 +00:00
|
|
|
/* DEV Dap.ps -----------------------------------*/
|
|
|
|
|
2019-07-30 18:36:52 +00:00
|
|
|
variable "dap_ps_app_bucket_name" {
|
2019-06-03 16:32:11 +00:00
|
|
|
description = "Name of bucket to which we deploy the dap.ps dapp"
|
|
|
|
default = "dev-dap-ps-app"
|
|
|
|
}
|
|
|
|
|
2019-07-30 18:36:52 +00:00
|
|
|
variable "dap_ps_admin_user" {
|
2019-07-29 15:00:31 +00:00
|
|
|
description = "Name of admin user for Dapp Store application."
|
|
|
|
}
|
|
|
|
|
2019-07-30 18:36:52 +00:00
|
|
|
variable "dap_ps_admin_pass" {
|
2019-07-29 15:00:31 +00:00
|
|
|
description = "Password for admin user for Dapp Store application."
|
|
|
|
}
|
|
|
|
|
2019-07-30 18:36:52 +00:00
|
|
|
variable "dap_ps_smtp_user" {
|
2019-07-29 15:00:31 +00:00
|
|
|
description = "User for accessing AWS SES SMTP endpoint."
|
|
|
|
}
|
|
|
|
|
2019-07-30 18:36:52 +00:00
|
|
|
variable "dap_ps_smtp_pass" {
|
2019-07-29 15:00:31 +00:00
|
|
|
description = "Password for accessing AWS SES SMTP endpoint."
|
|
|
|
}
|
|
|
|
|
2019-07-30 19:08:34 +00:00
|
|
|
variable "dap_ps_dev_db_uri" {
|
|
|
|
description = "An URI for DEV MongoDB database including auth information."
|
|
|
|
/* https://docs.mongodb.com/manual/reference/connection-string/ */
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "dap_ps_prod_db_uri" {
|
|
|
|
description = "An URI for PROD MongoDB database including auth information."
|
2019-07-29 21:10:36 +00:00
|
|
|
/* https://docs.mongodb.com/manual/reference/connection-string/ */
|
|
|
|
}
|
|
|
|
|
2019-05-31 18:04:43 +00:00
|
|
|
/* SES FORWARDER --------------------------------*/
|
|
|
|
|
2019-07-30 18:36:52 +00:00
|
|
|
variable "ses_forwarder_bucket_name" {
|
2019-05-31 18:04:43 +00:00
|
|
|
description = "Name of bucket to use for storing forwarded emails"
|
|
|
|
default = "ses-forwarder-emails"
|
|
|
|
}
|
|
|
|
|
2019-07-30 18:36:52 +00:00
|
|
|
variable "ses_forwarder_admin_account_arn" {
|
2019-05-31 18:04:43 +00:00
|
|
|
description = "Name of bucket to use for storing forwarded emails"
|
|
|
|
default = "arn:aws:iam::760668534108:user/jakubgs"
|
|
|
|
}
|
2019-07-30 18:36:52 +00:00
|
|
|
|