From 7d5cbef8a6f0bd666808ca672cc8999a4f4723f8 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Tue, 31 Jan 2023 22:43:36 -0800 Subject: fix rds and ec2 creation --- README | 1 + infra/keypair.tf | 2 +- infra/rds.tf | 6 ------ infra/variables.tf | 2 +- 4 files changed, 3 insertions(+), 8 deletions(-) create mode 100644 README diff --git a/README b/README new file mode 100644 index 0000000..827b5b3 --- /dev/null +++ b/README @@ -0,0 +1 @@ +# zjw.social diff --git a/infra/keypair.tf b/infra/keypair.tf index a73a0af..c74c802 100644 --- a/infra/keypair.tf +++ b/infra/keypair.tf @@ -1,4 +1,4 @@ resource "aws_key_pair" "framework" { - key_name = "framework" + key_name = "ssh-key" public_key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILS2i5/x9r+cv2j2/SUZ2x2fgQeGnJP1I7PUHC0UdWN6 framework" } diff --git a/infra/rds.tf b/infra/rds.tf index d9ba204..ae9a8f8 100644 --- a/infra/rds.tf +++ b/infra/rds.tf @@ -39,12 +39,6 @@ resource "aws_ssm_parameter" "rds_port" { value = aws_db_instance.mastodon.port } -resource "aws_ssm_parameter" "mastodon_db_name" { - name = "/${local.name}/rds/name" - type = "String" - value = aws_db_instance.mastodon.db_name -} - resource "aws_ssm_parameter" "mastodon_db_user" { name = "/${local.name}/rds/username" type = "String" diff --git a/infra/variables.tf b/infra/variables.tf index 66c6e5c..f44cf78 100644 --- a/infra/variables.tf +++ b/infra/variables.tf @@ -34,7 +34,7 @@ variable "rds_engine_version" { } variable "rds_parameter_group" { - default = "default.postgres13" + default = "postgres13" } variable "rds_port" { -- cgit v1.2.3