| 1 | provider "aws" { |
| 2 | region = "eu-west-1" |
| 3 | profile = "nixos-prod" |
| 4 | |
| 5 | ignore_tags { |
| 6 | keys = ["nixos-cost-tag"] |
| 7 | } |
| 8 | } |
| 9 | |
| 10 | provider "aws" { |
| 11 | alias = "us" |
| 12 | region = "us-east-1" |
| 13 | profile = "nixos-prod" |
| 14 | |
| 15 | ignore_tags { |
| 16 | keys = ["nixos-cost-tag"] |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | provider "fastly" {} |
| 21 | |
| 22 | # Create a token at https://app.netlify.com/user/applications/personal |
| 23 | # And then import using |
| 24 | # - terraform state rm secret_resource.netlify_token |
| 25 | # - terraform import secret_resource.netlify_token <TOKEN> |
| 26 | resource "secret_resource" "netlify_token" { |
| 27 | lifecycle { prevent_destroy = true } |
| 28 | } |
| 29 | |
| 30 | provider "netlify" { |
| 31 | token = secret_resource.netlify_token.value |
| 32 | } |