GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — terraformcodesDecemberbatch/rds.tf at main · Mors91/terraformcodesDecemberbatch

Expand file tree

/

rds.tf

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
38 lines (33 loc) · 1.79 KB
/

rds.tf

Copy path

File metadata and controls

38 lines (33 loc) · 1.79 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
resource "aws_db_subnet_group" "postgresqlsubnet" {
name = join("-", [local.network.Environment, "postgresqlsubnet"])
subnet_ids = [aws_subnet.main-public.id, aws_subnet.main-public-2.id]
tags = merge(local.common_tags, { Name = "postgresqlsubnet", Company = "EliteSolutionsIT" })
}
resource "aws_db_parameter_group" "postgresqlsubnet_param" {
name = join("-", [local.network.Environment, "postgresqlsubnet-param"])
family = "postgres11"
# parameter {
# name = "character_set_client"
# value = "utf8mb4"
# }
}
resource "aws_db_instance" "postgresdb" {
allocated_storage = 10 #100 GB of storage, gives us more IOPS than a lower number
engine = "postgres"
engine_version = "11.10"
instance_class = "db.t3.micro" #use micro if you want to use the free tier
identifier = "postgres"
name = "postgresadmin"
username = "postgresadminuser" #username
password = var.password #password
db_subnet_group_name = aws_db_subnet_group.postgresqlsubnet.name
parameter_group_name = aws_db_parameter_group.postgresqlsubnet_param.name
multi_az = false #set to true to have high availability: 2 instances synchronized with each other
vpc_security_group_ids = [aws_security_group.allow_ssh.id]
storage_type = "gp2"
backup_retention_period = 30 #how long you’re going to keep your backups
availability_zone = aws_subnet.main-public.availability_zone # prefered AZ
skip_final_snapshot = true
publicly_accessible = true #skip final snapshot when doing terraform destroy
tags = merge(local.common_tags, { Name = "postgreSQLdb", Company = "EliteSolutionsIT" })
}
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.