Skip to content

Commit

Permalink
removed hardcoded vars
Browse files Browse the repository at this point in the history
  • Loading branch information
BEW111 committed May 21, 2024
1 parent 2eaf878 commit b50d815
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions infrastructure/.auto.tfvars.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
atlas_uri = ""
aws_account_id = ""
atlas_uri = "mongodb+srv://OOO"
cookie_secret = "any-string"
sendgrid_api_key = "SG.OOO"
sendgrid_email_address = "OOO"

aws_account_id = "524180002245"
6 changes: 3 additions & 3 deletions infrastructure/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b50d815

Please sign in to comment.