Skip to content

Commit

Permalink
Merge pull request #3 from Thomas-mcinally/NAT-removed-use-if-no-free…
Browse files Browse the repository at this point in the history
…-tier

Config without NAT - use if no free tier
  • Loading branch information
Thomas-mcinally committed Feb 7, 2024
2 parents 67cdfae + be0c929 commit 88ce987
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 156 deletions.
4 changes: 2 additions & 2 deletions terraform/eventbridge.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
resource "aws_cloudwatch_event_rule" "kraken_dca_lambda_event_rule" {
name = "kraken_dca_lambda_event_rule"
description = "Buy BTC every day at 10:00 UTC"
schedule_expression = "cron(0 8 * * ? *)"
description = "Buy BTC every day at 08:30 UTC"
schedule_expression = "cron(30 8 * * ? *)"
}

resource "aws_cloudwatch_event_target" "kraken_dca_lambda_event_target" {
Expand Down
8 changes: 0 additions & 8 deletions terraform/lambda.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ resource "aws_lambda_function" "kraken-dca-lambda" {

timeout = 10

vpc_config {
subnet_ids = [aws_subnet.private_subnet.id]
security_group_ids = [aws_default_security_group.default_security_group_for_vpc.id]
}
}

resource "aws_lambda_function" "kraken-withdraw-lambda" {
Expand All @@ -43,8 +39,4 @@ resource "aws_lambda_function" "kraken-withdraw-lambda" {

timeout = 10

vpc_config {
subnet_ids = [aws_subnet.private_subnet.id]
security_group_ids = [aws_default_security_group.default_security_group_for_vpc.id]
}
}
55 changes: 0 additions & 55 deletions terraform/nat.tf

This file was deleted.

91 changes: 0 additions & 91 deletions terraform/vpc.tf

This file was deleted.

0 comments on commit 88ce987

Please sign in to comment.