-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate AWS Blake env to its own TF directory (#321)
- Loading branch information
Showing
10 changed files
with
199 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
infrastructure/terraform/aws/environments/blake/.terraform.lock.hcl
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
infrastructure/terraform/aws/environments/blake/blake.s3.tfbackend
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
###### | ||
## | ||
## Terraform-meta configurations | ||
## | ||
###### | ||
|
||
terraform { | ||
required_version = ">= 1.5.0" | ||
required_providers { | ||
aws = { | ||
source = "hashicorp/aws" | ||
version = ">= 5.0" | ||
} | ||
|
||
honeycombio = { | ||
source = "honeycombio/honeycombio" | ||
version = ">= 0.22.0" | ||
} | ||
} | ||
backend "s3" { | ||
bucket = "pubpub-tfstates" | ||
key = "ecs-blake.tfstate" | ||
region = "us-east-1" | ||
} | ||
} | ||
|
||
provider "aws" { | ||
region = local.region | ||
} | ||
|
||
###### | ||
## | ||
## Environment-specific configuration | ||
## | ||
###### | ||
|
||
locals { | ||
name = "blake" | ||
environment = "staging" | ||
region = "us-east-1" | ||
|
||
# TODO: Resume using this once we also Terraform the Route53 | ||
# pubpub_url = "https://v7.pubpub.org" | ||
|
||
MAILGUN_SMTP_USERNAME = "[email protected]" | ||
NEXT_PUBLIC_SUPABASE_URL = "https://dsleqjuvzuoycpeotdws.supabase.co" | ||
NEXT_PUBLIC_SUPABASE_PUBLIC_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImRzbGVxanV2enVveWNwZW90ZHdzIiwicm9sZSI6ImFub24iLCJpYXQiOjE2ODIzNTE0MjEsImV4cCI6MTk5NzkyNzQyMX0.3HHC0f7zlFXP77N0U8cS3blr7n6hhjqdYI6_ciQJams" | ||
ASSETS_BUCKET_NAME = "assets.blake.pubpub.org" | ||
} | ||
|
||
###### | ||
## | ||
## Complete generic environment | ||
## | ||
###### | ||
|
||
module "deployment" { | ||
source = "../../modules/deployment" | ||
|
||
name = local.name | ||
environment = local.environment | ||
region = local.region | ||
|
||
MAILGUN_SMTP_USERNAME = local.MAILGUN_SMTP_USERNAME | ||
NEXT_PUBLIC_SUPABASE_URL = local.NEXT_PUBLIC_SUPABASE_URL | ||
NEXT_PUBLIC_SUPABASE_PUBLIC_KEY = local.NEXT_PUBLIC_SUPABASE_PUBLIC_KEY | ||
ASSETS_BUCKET_NAME = local.ASSETS_BUCKET_NAME | ||
} |
12 changes: 0 additions & 12 deletions
12
infrastructure/terraform/aws/environments/blake/variables.tfvars
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.