We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using Terraform to create a minio_iam_service_account resource, the following error occurs:
minio_iam_service_account
Error: [FATAL] error creating service account (test-user-name): Policy, user or group names are not allowed to begin or end with space characters
However, if the service account is created manually and then imported into the Terraform state, it works without issues.
test-user-name
minio_iam_user
test-policy
test-bucket
minio_iam_policy
minio_iam_user_policy_attachment
resource "minio_iam_user" "test_user" { name = "test-user-name" } resource "minio_iam_policy" "test_policy" { name = "test-policy" policy = <<-EOF { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "s3:*" ], "Resource": [ "arn:aws:s3:::test-bucket" ] }, { "Effect": "Allow", "Action": [ "s3:*" ], "Resource": [ "arn:aws:s3:::test-bucket/*" ] } ] } EOF } resource "minio_iam_user_policy_attachment" "test_pol_at" { depends_on = [resource.minio_iam_user.test_user, resource.minio_iam_policy.test_policy] user_name = "test-user-name" policy_name = "test-policy" } resource "minio_iam_service_account" "test_sc" { depends_on = [resource.minio_iam_user_policy_attachment.test_pol_at] target_user = "test-user-name" }
Expected behavior: The service account is created successfully without errors.
Actual behavior: The process fails with the error:
Reproduces how often: This issue occurs consistently on every run.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
When using Terraform to create a
minio_iam_service_account
resource, the following error occurs:However, if the service account is created manually and then imported into the Terraform state, it works without issues.
Steps to Reproduce
test-user-name
using theminio_iam_user
resource.test-policy
that grants full access to thetest-bucket
using theminio_iam_policy
resource.minio_iam_user_policy_attachment
resource.test-user-name
using theminio_iam_service_account
resource.Expected behavior: The service account is created successfully without errors.
Actual behavior: The process fails with the error:
Reproduces how often: This issue occurs consistently on every run.
Versions
Additional Information
The text was updated successfully, but these errors were encountered: