Changing the main S3 bucket name since it appears in URLs

This commit is contained in:
Erik Stambaugh 2024-02-12 19:50:15 -08:00
parent 377dfa5c81
commit 1b124f457c

View file

@ -1,6 +1,6 @@
resource "aws_s3_bucket" "s3_bucket" { resource "aws_s3_bucket" "s3_bucket" {
bucket = "mastodon-${random_pet.name.id}" bucket = "mastodon-${local.domain_name}"
} }
resource "aws_s3_bucket_ownership_controls" "s3_bucket" { resource "aws_s3_bucket_ownership_controls" "s3_bucket" {
@ -34,7 +34,7 @@ resource "aws_iam_access_key" "s3" {
} }
resource "aws_iam_user" "s3" { resource "aws_iam_user" "s3" {
name = "mastodon-s3-${random_pet.name.id}" name = "mastodon-s3-${local.domain_name}"
path = "/system/" path = "/system/"
} }