-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
57 lines (55 loc) · 3.32 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
53
54
55
56
57
module "web-prod" {
source = "./modules/web"
stage = "prod"
aws_region = var.AWS_REGION
sentry_dsn = data.aws_kms_secrets.sentry.plaintext["dsn"]
ssl_certificate_arn = "arn:aws:acm:us-east-1:202868668807:certificate/c6c35492-9e92-4d6c-bd12-9ff974c373df"
lambda_proxy_password = data.aws_kms_secrets.web_prod_lambda_proxy.plaintext["password"] # Password to authenticate schedule requests
domain = "app.seamlesscloud.io"
rds_password = data.aws_kms_secrets.web_prod_rds.plaintext["password"]
rds_backups = true
rds_deletion_protection = true
auth0_base_url = "https://seamlesscloud.us.auth0.com"
auth0_client_id = data.aws_kms_secrets.web_prod_env.plaintext["AUTH0_CLIENT_ID"]
auth0_client_secret = data.aws_kms_secrets.web_prod_env.plaintext["AUTH0_CLIENT_SECRET"]
auth0_web_api_audience = "seamless-web-api"
deployment_policy = "RollingWithAdditionalBatch" # https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.rolling-version-deploy.html
ec2_instance_type = "t2.micro"
min_ec2_instances = 1
max_ec2_instances = 1
telegram_bot_api_key = data.aws_kms_secrets.telegram.plaintext["bot_api_key"]
telegram_channel_id = data.aws_kms_secrets.telegram.plaintext["channel_id"]
email_automation_password = data.aws_kms_secrets.andrey_gmail_app.plaintext["password"]
jobs_s3_versioning = true
github_actions_password = data.aws_kms_secrets.github_actions.plaintext["password"]
email_smtp_username = ""
email_smtp_password = ""
}
//module "web-staging" {
// source = "./modules/web"
//
// stage = "staging"
// aws_region = var.AWS_REGION
// sentry_dsn = ""
// ssl_certificate_arn = "arn:aws:acm:us-east-1:202868668807:certificate/267891b7-66fe-4ce8-b54d-2f85fce9b8de"
// lambda_proxy_password = data.aws_kms_secrets.web_staging_lambda_proxy.plaintext["password"] # Password to authenticate schedule requests
// domain = "staging-app.seamlesscloud.io"
// rds_password = data.aws_kms_secrets.web_staging_rds.plaintext["password"]
// rds_backups = false
// rds_deletion_protection = false
// auth0_base_url = "https://staging-seamlesscloud.us.auth0.com"
// auth0_client_id = data.aws_kms_secrets.web_staging_env.plaintext["AUTH0_CLIENT_ID"]
// auth0_client_secret = data.aws_kms_secrets.web_staging_env.plaintext["AUTH0_CLIENT_SECRET"]
// auth0_web_api_audience = "seamless-web-api"
// deployment_policy = "AllAtOnce" # https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.rolling-version-deploy.html
// ec2_instance_type = "t2.micro"
// min_ec2_instances = 1
// max_ec2_instances = 5
// telegram_bot_api_key = ""
// telegram_channel_id = ""
// email_automation_password = ""
// jobs_s3_versioning = false
// github_actions_password = data.aws_kms_secrets.github_actions.plaintext["password"]
// email_smtp_username = data.aws_kms_secrets.email_smtp.plaintext["username"]
// email_smtp_password = data.aws_kms_secrets.email_smtp.plaintext["password"]
//}