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" + } +}