From 41a97aa43ed021a57da2f0bdabda677ba39e1786 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Mon, 12 Dec 2022 14:33:53 -0800 Subject: infra: remove rss --- rss.jinwei.me/infra/rds.tf | 2 +- rss.jinwei.me/infra/ssm.tf | 28 ++++++++++++++-------------- rss.jinwei.me/infra/variables.tf | 10 +++++----- 3 files changed, 20 insertions(+), 20 deletions(-) (limited to 'rss.jinwei.me/infra') 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 @@ -resource "random_password" "ttrss_password" { +resource "random_password" "rss_password" { length = 16 special = false } 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 @@ -resource "aws_ssm_parameter" "ttrss_site_url" { - name = "/${var.name}/ttrss/url" +resource "aws_ssm_parameter" "rss_site_url" { + name = "/${var.name}/rss/url" type = "String" - value = var.ttrss_site_url + value = var.rss_site_url } -resource "aws_ssm_parameter" "ttrss_db_name" { - name = "/${var.name}/mysql/ttrss_db_name" +resource "aws_ssm_parameter" "rss_db_name" { + name = "/${var.name}/mysql/rss_db_name" type = "String" - value = var.ttrss_db_name + value = var.rss_db_name } -resource "aws_ssm_parameter" "ttrss_db_user" { - name = "/${var.name}/mysql/ttrss_db_user" +resource "aws_ssm_parameter" "rss_db_user" { + name = "/${var.name}/mysql/rss_db_user" type = "String" - value = var.ttrss_db_user + value = var.rss_db_user } -resource "aws_ssm_parameter" "ttrss_db_password" { - name = "/${var.name}/mysql/ttrss_db_password" +resource "aws_ssm_parameter" "rss_db_password" { + name = "/${var.name}/mysql/rss_user_password" type = "SecureString" - value = random_password.ttrss_password.result + value = random_password.rss_password.result } -resource "aws_ssm_parameter" "ttrss_tgbot_token" { +resource "aws_ssm_parameter" "rss_tgbot_token" { name = "/${var.name}/tgbot/token" type = "SecureString" value = var.rss_tgbot_token } -resource "aws_ssm_parameter" "ttrss_tgbot_version" { +resource "aws_ssm_parameter" "rss_tgbot_version" { name = "/${var.name}/tgbot/version" type = "String" 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" { description = "AWS region" } -variable "ttrss_db_name" { - default = "ttrss" +variable "rss_db_name" { + default = "rss" } -variable "ttrss_db_user" { - default = "ttrss" +variable "rss_db_user" { + default = "rss" } -variable "ttrss_site_url" { +variable "rss_site_url" { default = "https://feed.jinwei.me" } -- cgit v1.2.3