-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EC-310] Revise terraform code structure to follow engineering standa…
…rd (#870) * feat: create bucket containing ai knowledge base * chore: applying newly introduced engineering standards for terraform repository structure * fix: formatted modules * fix: added missing providers to modules * fix: added missing providers to modules * fix: added missing providers to modules * feat: subdivided in cms, website and chatbot * fix: added moved.tf file containing the moves from old repo structure to the new * fix: update terraform lock * feat: returning name servers records as output * fix: some resources not moved correctly * fix: some resources not moved correctly * fix: moving production website certificate records * chore: changed modules folder from _modules to modules
- Loading branch information
1 parent
4f6aebf
commit d1d8fa9
Showing
50 changed files
with
2,106 additions
and
583 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
terraform { | ||
required_providers { | ||
aws = { | ||
source = "hashicorp/aws" | ||
version = "5.33.0" | ||
} | ||
} | ||
} |
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,19 @@ | ||
resource "random_integer" "ai_kb_bucket_random_integer" { | ||
min = 1 | ||
max = 9999 | ||
} | ||
|
||
module "s3_bucket_ai_kb" { | ||
source = "git::https://github.com/terraform-aws-modules/terraform-aws-s3-bucket.git?ref=3a1c80b29fdf8fc682d2749456ec36ecbaf4ce14" # v4.1.0 | ||
|
||
bucket = "ai-knowledge-base-${random_integer.ai_kb_bucket_random_integer.result}" | ||
block_public_acls = true | ||
block_public_policy = true | ||
ignore_public_acls = true | ||
restrict_public_buckets = true | ||
|
||
versioning = { | ||
status = true | ||
enabled = true | ||
} | ||
} |
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,17 @@ | ||
variable "aws_region" { | ||
type = string | ||
description = "AWS region to create resources. Default Milan" | ||
default = "eu-south-1" | ||
} | ||
|
||
variable "environment" { | ||
type = string | ||
description = "Environment" | ||
} | ||
|
||
variable "tags" { | ||
type = map(any) | ||
default = { | ||
CreatedBy = "Terraform" | ||
} | ||
} |
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.