diff options
author | clarkzjw <[email protected]> | 2023-01-31 22:43:36 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-02-16 11:23:37 -0800 |
commit | 7d5cbef8a6f0bd666808ca672cc8999a4f4723f8 (patch) | |
tree | 39f209516dbd1d7fdf48876138869a01370a6cd2 | |
parent | 55bf0526c86c88f5ae0d20bad6587c72cd91e835 (diff) | |
download | zjw.social-master.tar.gz |
-rw-r--r-- | README | 1 | ||||
-rw-r--r-- | infra/keypair.tf | 2 | ||||
-rw-r--r-- | infra/rds.tf | 6 | ||||
-rw-r--r-- | infra/variables.tf | 2 |
4 files changed, 3 insertions, 8 deletions
@@ -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 @@ | |||
1 | resource "aws_key_pair" "framework" { | 1 | resource "aws_key_pair" "framework" { |
2 | key_name = "framework" | 2 | key_name = "ssh-key" |
3 | public_key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILS2i5/x9r+cv2j2/SUZ2x2fgQeGnJP1I7PUHC0UdWN6 framework" | 3 | public_key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILS2i5/x9r+cv2j2/SUZ2x2fgQeGnJP1I7PUHC0UdWN6 framework" |
4 | } | 4 | } |
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" { | |||
39 | value = aws_db_instance.mastodon.port | 39 | value = aws_db_instance.mastodon.port |
40 | } | 40 | } |
41 | 41 | ||
42 | resource "aws_ssm_parameter" "mastodon_db_name" { | ||
43 | name = "/${local.name}/rds/name" | ||
44 | type = "String" | ||
45 | value = aws_db_instance.mastodon.db_name | ||
46 | } | ||
47 | |||
48 | resource "aws_ssm_parameter" "mastodon_db_user" { | 42 | resource "aws_ssm_parameter" "mastodon_db_user" { |
49 | name = "/${local.name}/rds/username" | 43 | name = "/${local.name}/rds/username" |
50 | type = "String" | 44 | 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" { | |||
34 | } | 34 | } |
35 | 35 | ||
36 | variable "rds_parameter_group" { | 36 | variable "rds_parameter_group" { |
37 | default = "default.postgres13" | 37 | default = "postgres13" |
38 | } | 38 | } |
39 | 39 | ||
40 | variable "rds_port" { | 40 | variable "rds_port" { |