aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'rss.jinwei.me/infra')
-rw-r--r--rss.jinwei.me/infra/rds.tf2
-rw-r--r--rss.jinwei.me/infra/ssm.tf28
-rw-r--r--rss.jinwei.me/infra/variables.tf10
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 @@
1resource "random_password" "ttrss_password" { 1resource "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 @@
1resource "aws_ssm_parameter" "ttrss_site_url" { 1resource "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
7resource "aws_ssm_parameter" "ttrss_db_name" { 7resource "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
13resource "aws_ssm_parameter" "ttrss_db_user" { 13resource "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
19resource "aws_ssm_parameter" "ttrss_db_password" { 19resource "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
25resource "aws_ssm_parameter" "ttrss_tgbot_token" { 25resource "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
31resource "aws_ssm_parameter" "ttrss_tgbot_version" { 31resource "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
15variable "ttrss_db_name" { 15variable "rss_db_name" {
16 default = "ttrss" 16 default = "rss"
17} 17}
18 18
19variable "ttrss_db_user" { 19variable "rss_db_user" {
20 default = "ttrss" 20 default = "rss"
21} 21}
22 22
23variable "ttrss_site_url" { 23variable "rss_site_url" {
24 default = "https://feed.jinwei.me" 24 default = "https://feed.jinwei.me"
25} 25}
26 26
Powered by cgit v1.2.3 (git 2.41.0)