Add role for minio state management

This commit is contained in:
Jake Howard 2024-01-07 13:04:09 +00:00
parent 9ac9380387
commit 094091dd21
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 5 additions and 1 deletions

3
terraform/minio.tf Normal file
View file

@ -0,0 +1,3 @@
resource "aws_iam_user" "minio" {
name = "minio"
}

View file

@ -63,7 +63,8 @@ EOF
resource "aws_iam_user_policy_attachment" "terraform-state" { resource "aws_iam_user_policy_attachment" "terraform-state" {
for_each = toset([ for_each = toset([
aws_iam_user.terraform.name aws_iam_user.terraform.name,
aws_iam_user.minio.name,
]) ])
user = each.key user = each.key