Skip to content

Commit 884e6ee

Browse files
committed
chore: add S3 backend config, Terraform gitignore, and nix terraform
1 parent 3771f49 commit 884e6ee

3 files changed

Lines changed: 27 additions & 1 deletion

File tree

.gitignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,21 @@
1616
# MkDocs
1717
/site/
1818
/.cache/
19+
20+
# Terraform
21+
*.tfstate
22+
*.tfstate.*
23+
.terraform/
24+
crash.log
25+
crash.*.log
26+
*.tfplan
27+
*.tfplan.*
28+
override.tf
29+
override.tf.json
30+
*_override.tf
31+
*_override.tf.json
32+
.terraformrc
33+
terraform.rc
34+
35+
# Backend config (local-only, not committed)
36+
terraform/backend.hcl

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535

3636
# Cloud tooling
3737
awscli2
38+
terraform
3839

3940
goreleaser
4041
actionlint

terraform/versions.tf

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
terraform {
2-
required_version = ">= 1.5"
2+
required_version = ">= 1.11"
3+
4+
backend "s3" {
5+
region = "eu-central-1"
6+
encrypt = true
7+
use_lockfile = true
8+
# bucket and key supplied via -backend-config at init time.
9+
}
310

411
required_providers {
512
aws = {

0 commit comments

Comments
 (0)