terraform: update to 1.0
Eelco Dolstra committed
Aug 28, 2021 at 19:50 UTC
53d6118b7c85f5bfd07e8397d460a709c08be450
6 files changed
+62
-15
terraform/.gitignore
+2
-1
@@ -1,3 +1,4 @@
1
-/.terraform
1
+.terraform
2
+.terraform.*
3
terraform.tfstate
4
terraform.tfstate.*
terraform/flake.lock
new
+26
@@ -0,0 +1,26 @@
1
+{
2
+ "nodes": {
3
+ "nixpkgs": {
4
+ "locked": {
5
+ "lastModified": 1630069564,
6
+ "narHash": "sha256-QI0K96Ym4WVStq/R6+RjHdJsziUGzPFHsM3yocRIZTg=",
7
+ "owner": "NixOS",
8
+ "repo": "nixpkgs",
9
+ "rev": "a0eae3b8777f1d0d9e865a50fec1728bf279b009",
10
+ "type": "github"
11
+ },
12
+ "original": {
13
+ "id": "nixpkgs",
14
+ "ref": "master",
15
+ "type": "indirect"
16
+ }
17
+ },
18
+ "root": {
19
+ "inputs": {
20
+ "nixpkgs": "nixpkgs"
21
+ }
22
+ }
23
+ },
24
+ "root": "root",
25
+ "version": 7
26
+}
terraform/flake.nix
new
+19
@@ -0,0 +1,19 @@
1
+{
2
+ inputs.nixpkgs.url = "nixpkgs/master";
3
+
4
+ outputs = flakes @ { self, nixpkgs }: {
5
+
6
+ devShell.x86_64-linux =
7
+ with import nixpkgs { system = "x86_64-linux"; };
8
+ mkShell {
9
+ buildInputs =
10
+ [ (terraform.withPlugins (p: with p; [
11
+ aws
12
+ fastly
13
+ ]))
14
+ ];
15
+ };
16
+
17
+ };
18
+
19
+}
terraform/releases.tf
+4
-4
@@ -68,11 +68,11 @@ resource "aws_cloudfront_distribution" "releases" {
68
origin_id = "default"
69
domain_name = aws_s3_bucket.releases.bucket_domain_name
70
71
- s3_origin_config {
72
- origin_access_identity = ""
71
+ #s3_origin_config {
72
+ # origin_access_identity = ""
73
74
- #origin_access_identity = aws_cloudfront_origin_access_identity.releases.cloudfront_access_identity_path
75
- }
74
+ # #origin_access_identity = aws_cloudfront_origin_access_identity.releases.cloudfront_access_identity_path
75
+ #}
76
}
77
78
default_cache_behavior {
terraform/shell.nix
deleted
-10
@@ -1,10 +0,0 @@
1
-with import <nixpkgs> {};
2
-let
3
- my-terraform = terraform.withPlugins (p: with p; [
4
- aws
5
- fastly
6
- ]);
7
-in
8
-mkShell {
9
- buildInputs = [ my-terraform ];
10
-}
terraform/versions.tf
new
+11
@@ -0,0 +1,11 @@
1
+terraform {
2
+ required_providers {
3
+ aws = {
4
+ source = "hashicorp/aws"
5
+ }
6
+ fastly = {
7
+ source = "nixpkgs/fastly"
8
+ }
9
+ }
10
+ required_version = ">= 0.13"
11
+}