From 5e978b576610ad936ccb52a32616fb6fe6444bcf Mon Sep 17 00:00:00 2001 From: shockrah Date: Sat, 21 Jan 2023 16:58:11 -0800 Subject: [PATCH] Creating s3 bucket for static content --- infra/input-vars.tf | 28 ++++++++++++++++++++++++++++ infra/s3.tf | 8 ++++++++ 2 files changed, 36 insertions(+) create mode 100644 infra/s3.tf diff --git a/infra/input-vars.tf b/infra/input-vars.tf index 9e233ef..7d9030c 100644 --- a/infra/input-vars.tf +++ b/infra/input-vars.tf @@ -111,3 +111,31 @@ variable "athens_prefix" { type = string default = "athens" } + + +######################### Nginx reverse proxy vars + +variable "shockray_xyz_s3_access_key_id" { + description = "Acess key-id for shockrah.xyz bucket service user" + type = string + sensitive = true +} + +variable "shockrah_xyz_s3_secret_key" { + description = "Secret key for shockrah.xyz bucket service user" + type = string + sensitive = true +} + +variable "shockrah_xyz_bucket_name" { + description = "shockrah.xyz bucket name" + type = string + sensitive = true +} + +variable "shockrah_xyz_s3_server" { + description = "S3 target server" + type = string + sensitive = true +} + diff --git a/infra/s3.tf b/infra/s3.tf new file mode 100644 index 0000000..88ed4b6 --- /dev/null +++ b/infra/s3.tf @@ -0,0 +1,8 @@ +resource "aws_s3_bucket" "shockrah_xyz" { + bucket = var.shockrah_xyz_bucket_name + + tags = { + Name = var.shockrah_xyz_bucket_name + Description = "Bucket for star.shockrah.xyz" + } +}