-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ee5ccb9
commit cf7c1f0
Showing
13 changed files
with
142 additions
and
116 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
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 |
---|---|---|
@@ -1,3 +1,15 @@ | ||
project-name = "" | ||
stage = "" | ||
region = "" | ||
region = "" | ||
domain_name = "" | ||
nextauth_url = "" | ||
nextauth_secret = "" | ||
next_public_url = "" | ||
plausible_api_key = "" | ||
database_url = "" | ||
direct_url = "" | ||
edge_config = "" | ||
admin_email = "" | ||
github_client_id = "" | ||
github_client_secret = "" | ||
openai_api_key = "" |
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 |
---|---|---|
@@ -1,14 +1,17 @@ | ||
variable "project-name" { | ||
description = "Project name" | ||
default = "personal-website" | ||
} | ||
variable "project-name" { description = "Project name" } | ||
variable "stage" { description = "Stage (dev, prod)" } | ||
variable "region" { description = "AWS region" } | ||
variable "domain_name" { description = "Domain name" } | ||
|
||
variable "stage" { | ||
description = "Stage (dev, prod)" | ||
default = "dev" | ||
} | ||
|
||
variable "region" { | ||
description = "AWS region" | ||
default = "us-east-1" | ||
} | ||
/* Secrets */ | ||
variable "nextauth_url" { description = "NEXTAUTH_URL" } | ||
variable "nextauth_secret" { description = "NEXTAUTH_SECRET" } | ||
variable "next_public_url" { description = "NEXT_PUBLIC_URL" } | ||
variable "plausible_api_key" { description = "PLAUSIBLE_API_KEY" } | ||
variable "database_url" { description = "DATABASE_URL" } | ||
variable "direct_url" { description = "DIRECT_URL" } | ||
variable "edge_config" { description = "EDGE_CONFIG" } | ||
variable "admin_email" { description = "ADMIN_EMAIL" } | ||
variable "github_client_id" { description = "GITHUB_CLIENT_ID" } | ||
variable "github_client_secret" { description = "GITHUB_CLIENT_SECRET" } | ||
variable "openai_api_key" { description = "OPENAI_API_KEY" } |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,12 @@ | ||
variable "common_tags" { | ||
description = "Common tags to be applied to all resources" | ||
type = map(string) | ||
default = { | ||
awsApplication = "personal-website" | ||
} | ||
} | ||
|
||
variable "project-name" { | ||
description = "Project name" | ||
default = "personal-website" | ||
} | ||
|
||
variable "region" { | ||
description = "AWS region" | ||
default = "us-east-1" | ||
} | ||
|
||
variable "domain_name" { | ||
description = "Domain name" | ||
default = "example.com" | ||
} | ||
variable "project-name" { description = "Project name" } | ||
variable "region" { description = "AWS region" } | ||
variable "domain_name" { description = "Domain name" } | ||
|
||
locals { | ||
bucket_name = "${var.project-name}-${data.aws_caller_identity.current.account_id}-terraform-state" | ||
dynamodb_table_name = "${var.project-name}-terraform-locks" | ||
|
||
common_tags = { | ||
awsApplication = var.project-name | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
project-name = "" | ||
stage = "" | ||
region = "" | ||
region = "" | ||
domain_name = "" | ||
nextauth_url = "" | ||
nextauth_secret = "" | ||
next_public_url = "" | ||
plausible_api_key = "" | ||
database_url = "" | ||
direct_url = "" | ||
edge_config = "" | ||
admin_email = "" | ||
github_client_id = "" | ||
github_client_secret = "" | ||
openai_api_key = "" |
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 |
---|---|---|
@@ -1,14 +1,17 @@ | ||
variable "project-name" { | ||
description = "Project name" | ||
default = "personal-website" | ||
} | ||
variable "project-name" { description = "Project name" } | ||
variable "stage" { description = "Stage (dev, prod)" } | ||
variable "region" { description = "AWS region" } | ||
variable "domain_name" { description = "Domain name" } | ||
|
||
variable "stage" { | ||
description = "Stage (dev, prod)" | ||
default = "dev" | ||
} | ||
|
||
variable "region" { | ||
description = "AWS region" | ||
default = "us-east-1" | ||
} | ||
/* Secrets */ | ||
variable "nextauth_url" { description = "NEXTAUTH_URL" } | ||
variable "nextauth_secret" { description = "NEXTAUTH_SECRET" } | ||
variable "next_public_url" { description = "NEXT_PUBLIC_URL" } | ||
variable "plausible_api_key" { description = "PLAUSIBLE_API_KEY" } | ||
variable "database_url" { description = "DATABASE_URL" } | ||
variable "direct_url" { description = "DIRECT_URL" } | ||
variable "edge_config" { description = "EDGE_CONFIG" } | ||
variable "admin_email" { description = "ADMIN_EMAIL" } | ||
variable "github_client_id" { description = "GITHUB_CLIENT_ID" } | ||
variable "github_client_secret" { description = "GITHUB_CLIENT_SECRET" } | ||
variable "openai_api_key" { description = "OPENAI_API_KEY" } |
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
Oops, something went wrong.