Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Terraform Syntax and Ruby Function Version #14

Merged
merged 2 commits into from
Dec 21, 2023

Conversation

FinnIckler
Copy link
Member

This PR:

  • Updates the Terraform Syntax to work with Version 14 (no more deprecation warnings come up when I run terraform plan)
  • Updates the Lambda Function Version to 3.2 because 2.7 is EOL.
  • Changes the Read Capacity from DynamoDB from 20 to 5 because 20 is waaaaaay too much and costs us like 20 bucks a year unnecessarily. This should better yet just be a on demand DynamoDB Table

@FinnIckler
Copy link
Member Author

This should fix #10 and thewca/worldcubeassociation.org#8235

@FinnIckler
Copy link
Member Author

@lgarron are you reviewing this or should I get someone else?

@@ -21,8 +16,8 @@ resource "aws_s3_bucket" "terraform-state-storage-s3" {
resource "aws_dynamodb_table" "dynamodb-terraform-state-lock" {
name = "wca-terraform-state-lock-dynamo"
hash_key = "LockID"
read_capacity = 20
write_capacity = 20
read_capacity = 5
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this lead to downtime?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this dynamodb table is just there so two people don't update the terraform template at once (I honestly think it's quite unnecessary anyway). But it can't lead to downtime for wca.link has it's unrelated

@lgarron
Copy link
Member

lgarron commented Aug 30, 2023

@lgarron are you reviewing this or should I get someone else?

Is there anyone more qualified to review? I don't know Terraform, but I don't see any obvious issues with the changes.

(Also, all this configuration makes me miss Google App Engine. Or at least some sort of edge workers.)

@dunkOnIT dunkOnIT merged commit 1aaa262 into thewca:main Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants