Skip to content

Commit

Permalink
Update pre-commit, cleanup old comments
Browse files Browse the repository at this point in the history
  • Loading branch information
manics committed Aug 28, 2023
1 parent a735a08 commit 432f115
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 12 deletions.
8 changes: 5 additions & 3 deletions .pre-commit-config-terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
# - terraform
# - tflint

# Currently only aws/curvenote is checked
files: "^terraform/aws/curvenote/"
# Currently only aws/ is checked
files: "^terraform/aws/"
exclude: "^terraform/aws/pangeo/"

repos:
# We can't run any CI tests on production Terraform code, so use as many static linters as possible
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.81.0
rev: v1.83.0
hooks:
- id: terraform_fmt
- id: terraform_tflint
Expand Down
20 changes: 20 additions & 0 deletions terraform/aws/binder-eks/provider.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.5"
}

kubernetes = {
source = "hashicorp/kubernetes"
version = "~> 2.21"
}

tls = {
source = "hashicorp/tls"
version = "~> 4.0"
}
}

required_version = ">= 1.4.6"
}
10 changes: 1 addition & 9 deletions terraform/aws/curvenote/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,11 @@ terraform {
source = "hashicorp/kubernetes"
version = "~> 2.21"
}

tls = {
source = "hashicorp/tls"
version = "~> 4.0"
}
}

required_version = ">= 1.4.6"

# Bootstrapping
# 1. comment this out for a new deployment
# 2. run the deployment to create the S3 bucket
# 3. uncomment this and migrate the tfstate to S3
# Bootstrapping: Create the bucket and DynamoDB table using the ./bootstrap directory
backend "s3" {
bucket = "binderhub-tfstate-7rjazazm1c7k"
key = "tfstate/dev/binderhub-dev"
Expand Down

0 comments on commit 432f115

Please sign in to comment.