Creating s3 bucket for static content
This commit is contained in:
parent
57965a2a5a
commit
5e978b5766
@ -111,3 +111,31 @@ variable "athens_prefix" {
|
|||||||
type = string
|
type = string
|
||||||
default = "athens"
|
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
8
infra/s3.tf
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user