diff options
Diffstat (limited to 'rss.jinwei.me/infra')
-rw-r--r-- | rss.jinwei.me/infra/rds.tf | 2 | ||||
-rw-r--r-- | rss.jinwei.me/infra/ssm.tf | 28 | ||||
-rw-r--r-- | rss.jinwei.me/infra/variables.tf | 10 |
3 files changed, 20 insertions, 20 deletions
diff --git a/rss.jinwei.me/infra/rds.tf b/rss.jinwei.me/infra/rds.tf index ad719ea..d1a77a4 100644 --- a/rss.jinwei.me/infra/rds.tf +++ b/rss.jinwei.me/infra/rds.tf | |||
@@ -1,4 +1,4 @@ | |||
1 | resource "random_password" "ttrss_password" { | 1 | resource "random_password" "rss_password" { |
2 | length = 16 | 2 | length = 16 |
3 | special = false | 3 | special = false |
4 | } | 4 | } |
diff --git a/rss.jinwei.me/infra/ssm.tf b/rss.jinwei.me/infra/ssm.tf index 62aaba7..59d0f36 100644 --- a/rss.jinwei.me/infra/ssm.tf +++ b/rss.jinwei.me/infra/ssm.tf | |||
@@ -1,34 +1,34 @@ | |||
1 | resource "aws_ssm_parameter" "ttrss_site_url" { | 1 | resource "aws_ssm_parameter" "rss_site_url" { |
2 | name = "/${var.name}/ttrss/url" | 2 | name = "/${var.name}/rss/url" |
3 | type = "String" | 3 | type = "String" |
4 | value = var.ttrss_site_url | 4 | value = var.rss_site_url |
5 | } | 5 | } |
6 | 6 | ||
7 | resource "aws_ssm_parameter" "ttrss_db_name" { | 7 | resource "aws_ssm_parameter" "rss_db_name" { |
8 | name = "/${var.name}/mysql/ttrss_db_name" | 8 | name = "/${var.name}/mysql/rss_db_name" |
9 | type = "String" | 9 | type = "String" |
10 | value = var.ttrss_db_name | 10 | value = var.rss_db_name |
11 | } | 11 | } |
12 | 12 | ||
13 | resource "aws_ssm_parameter" "ttrss_db_user" { | 13 | resource "aws_ssm_parameter" "rss_db_user" { |
14 | name = "/${var.name}/mysql/ttrss_db_user" | 14 | name = "/${var.name}/mysql/rss_db_user" |
15 | type = "String" | 15 | type = "String" |
16 | value = var.ttrss_db_user | 16 | value = var.rss_db_user |
17 | } | 17 | } |
18 | 18 | ||
19 | resource "aws_ssm_parameter" "ttrss_db_password" { | 19 | resource "aws_ssm_parameter" "rss_db_password" { |
20 | name = "/${var.name}/mysql/ttrss_db_password" | 20 | name = "/${var.name}/mysql/rss_user_password" |
21 | type = "SecureString" | 21 | type = "SecureString" |
22 | value = random_password.ttrss_password.result | 22 | value = random_password.rss_password.result |
23 | } | 23 | } |
24 | 24 | ||
25 | resource "aws_ssm_parameter" "ttrss_tgbot_token" { | 25 | resource "aws_ssm_parameter" "rss_tgbot_token" { |
26 | name = "/${var.name}/tgbot/token" | 26 | name = "/${var.name}/tgbot/token" |
27 | type = "SecureString" | 27 | type = "SecureString" |
28 | value = var.rss_tgbot_token | 28 | value = var.rss_tgbot_token |
29 | } | 29 | } |
30 | 30 | ||
31 | resource "aws_ssm_parameter" "ttrss_tgbot_version" { | 31 | resource "aws_ssm_parameter" "rss_tgbot_version" { |
32 | name = "/${var.name}/tgbot/version" | 32 | name = "/${var.name}/tgbot/version" |
33 | type = "String" | 33 | type = "String" |
34 | value = var.tg_bot_version | 34 | value = var.tg_bot_version |
diff --git a/rss.jinwei.me/infra/variables.tf b/rss.jinwei.me/infra/variables.tf index 01b051b..667b41b 100644 --- a/rss.jinwei.me/infra/variables.tf +++ b/rss.jinwei.me/infra/variables.tf | |||
@@ -12,15 +12,15 @@ variable "region" { | |||
12 | description = "AWS region" | 12 | description = "AWS region" |
13 | } | 13 | } |
14 | 14 | ||
15 | variable "ttrss_db_name" { | 15 | variable "rss_db_name" { |
16 | default = "ttrss" | 16 | default = "rss" |
17 | } | 17 | } |
18 | 18 | ||
19 | variable "ttrss_db_user" { | 19 | variable "rss_db_user" { |
20 | default = "ttrss" | 20 | default = "rss" |
21 | } | 21 | } |
22 | 22 | ||
23 | variable "ttrss_site_url" { | 23 | variable "rss_site_url" { |
24 | default = "https://feed.jinwei.me" | 24 | default = "https://feed.jinwei.me" |
25 | } | 25 | } |
26 | 26 | ||