Skip to content

Commit

Permalink
configure basis window start in tf
Browse files Browse the repository at this point in the history
  • Loading branch information
swhite24 committed Apr 16, 2021
1 parent 4591019 commit 84d948f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
17 changes: 9 additions & 8 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,15 @@ resource "aws_lambda_function" "cbpro_buy" {

environment {
variables = {
CBPRO_BUY_KEY = var.cbpro_key
CBPRO_BUY_PASSPHRASE = var.cbpro_passphrase
CBPRO_BUY_SECRET = var.cbpro_secret
CBPRO_BUY_CURRENCY = var.currency
CBPRO_BUY_PRODUCT = var.product
CBPRO_BUY_AMOUNT = var.amount
CBPRO_BUY_AUTODEPOSIT = var.auto_deposit
CBPRO_BUY_USE_BASIS = var.use_basis
CBPRO_BUY_KEY = var.cbpro_key
CBPRO_BUY_PASSPHRASE = var.cbpro_passphrase
CBPRO_BUY_SECRET = var.cbpro_secret
CBPRO_BUY_CURRENCY = var.currency
CBPRO_BUY_PRODUCT = var.product
CBPRO_BUY_AMOUNT = var.amount
CBPRO_BUY_AUTODEPOSIT = var.auto_deposit
CBPRO_BUY_USE_BASIS = var.use_basis
CBPRO_BUY_BASIS_WINDOW_START = var.basis_window_start
}
}
}
Expand Down
1 change: 1 addition & 0 deletions terraform/var.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ variable "amount" { default = 50 }
variable "currency" { default = "USD" }
variable "product" { default = "BTC" }
variable "use_basis" { default = true }
variable "basis_window_start" { default = 60 }
variable "cbpro_key" {
type = string
sensitive = true
Expand Down

0 comments on commit 84d948f

Please sign in to comment.