Creating s3 bucket for static content

This commit is contained in:
shockrah 2023-01-21 16:58:11 -08:00
parent 57965a2a5a
commit 5e978b5766
2 changed files with 36 additions and 0 deletions

View File

@ -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
}

8
infra/s3.tf Normal file
View File

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