From 55bf0526c86c88f5ae0d20bad6587c72cd91e835 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Tue, 31 Jan 2023 14:24:47 -0800 Subject: add ec2, rds --- infra/variables.tf | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 infra/variables.tf (limited to 'infra/variables.tf') diff --git a/infra/variables.tf b/infra/variables.tf new file mode 100644 index 0000000..66c6e5c --- /dev/null +++ b/infra/variables.tf @@ -0,0 +1,58 @@ +provider "aws" { + region = var.region +} + +variable "name" { + description = "Name of the service. It will be used to name EC2, and RDS instances." + default = "mastodon" +} + +variable "region" { + default = "us-west-2" + description = "AWS region" +} + +# RDS +variable "rds_instance_class" { + default = "db.t3.micro" +} + +variable "rds_storage_size" { + default = 20 +} + +variable "rds_username" { + default = "mastodon" +} + +variable "rds_engine" { + default = "postgres" +} + +variable "rds_engine_version" { + default = "13.7" +} + +variable "rds_parameter_group" { + default = "default.postgres13" +} + +variable "rds_port" { + default = 33060 +} + +# EC 2 +variable "ec2_instance_type" { + default = "t3a.medium" +} + +variable "site_domain" { + type = string + default = "m.jinwei.me" +} + +variable "cloudflare_account_id" { + description = "The Cloudflare UUID for the Account the Zone lives in." + type = string + sensitive = true +} -- cgit v1.2.3