diff --git a/infrastructure/.auto.tfvars.example b/infrastructure/.auto.tfvars.example index f3e3bc36..505294e7 100644 --- a/infrastructure/.auto.tfvars.example +++ b/infrastructure/.auto.tfvars.example @@ -1,2 +1,6 @@ -atlas_uri = "" -aws_account_id = "" \ No newline at end of file +atlas_uri = "mongodb+srv://OOO" +cookie_secret = "any-string" +sendgrid_api_key = "SG.OOO" +sendgrid_email_address = "OOO" + +aws_account_id = "524180002245" diff --git a/infrastructure/main.tf b/infrastructure/main.tf index 9c95677a..777987ac 100644 --- a/infrastructure/main.tf +++ b/infrastructure/main.tf @@ -53,9 +53,9 @@ resource "aws_ecs_task_definition" "app" { ], environment = [ { "name" : "ATLAS_URI", "value" : var.atlas_uri }, - { "name" : "COOKIE_SECRET", "value" : "any-string" }, - { "name" : "SENDGRID_API_KEY", "value" : "SG.sendgrid-api-key-from-above" }, - { "name" : "SENDGRID_EMAIL_ADDRESS", "value" : "sendgrid-sender-identity-email-from-above" } + { "name" : "COOKIE_SECRET", "value" : var.cookie_secret }, + { "name" : "SENDGRID_API_KEY", "value" : var.sendgrid_api_key }, + { "name" : "SENDGRID_EMAIL_ADDRESS", "value" : var.sendgrid_email_address } ], logConfiguration = { logDriver = "awslogs"