Add role for minio state management
This commit is contained in:
parent
9ac9380387
commit
094091dd21
2 changed files with 5 additions and 1 deletions
3
terraform/minio.tf
Normal file
3
terraform/minio.tf
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
resource "aws_iam_user" "minio" {
|
||||||
|
name = "minio"
|
||||||
|
}
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue