Skip to content

Commit

Permalink
TF static analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
prakash-moj committed Dec 8, 2023
1 parent 3a656ed commit a30ab32
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
24 changes: 24 additions & 0 deletions infra/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
terraform {
backend "s3" {
}
}

provider "aws" {
region = "eu-west-2"
}

provider "aws" {
alias = "london"
region = "eu-west-2"
default_tags {
tags = {
GithubTeam = "platform"
}
}
}

provider "aws" {
alias = "ireland"
region = "eu-west-1"
}

resource "random_string" "random" {
length = 16
special = true
Expand Down
28 changes: 28 additions & 0 deletions infra/rds.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

module "rds" {
source = "github.com/ministryofjustice/cloud-platform-terraform-rds-instance?ref=6.0.0"

vpc_name = var.vpc_name

application = "test"
environment_name = "development"
is_production = false
infrastructure_support = "support"
team_name = "cloud"
db_instance_class = "db.t4g.small"
db_max_allocated_storage = "10000"
rds_family = "postgres12"
db_engine_version = "12"
namespace = "prakash-dev"
business_unit = "cloud-platform"

db_name = "test"

# Set to true for replica database. No backups or snapshots are created for read replica
skip_final_snapshot = "true"
db_backup_retention_period = 0

providers = {
aws = aws.london
}
}

0 comments on commit a30ab32

Please sign in to comment.