Comments (10)
As I cannot reproduce this, I'll close the issue for now to keep the ticket load a little lower. If there's more information and it's still a problem with the current code, don't hesitate to open a new issue referencing this one.
from terraform-provider-minio.
I encountered the same error using same code
From access log at minio backend
"PUT /minio/admin/v3/add-user?accessKey=test_user HTTP/1.1" 301 178 "-" "MinIO (linux; amd64) madmin-go/0.0.1"
"GET /minio/admin/v3/add-user?accessKey=test_user HTTP/1.1" 426 215 "http://minio.files.com/minio/admin/v3/add-user?accessKey=test_user" "MinIO (linux; amd64) madmin-go/0.0.1"
I am not sure but I think it's related to using an old madmin-go/0.0.1
, current version is >1.x
@felladrin
from terraform-provider-minio.
Heya @Lykos153 or @AMKamel could you retest it in that mode? The 1.3.0
release might have fixed your problem.
from terraform-provider-minio.
@BuJo Still running into this issue. I'm using the user
example code from this repository.
✦ × terraform apply
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# minio_iam_user.minio_user will be created
+ resource "minio_iam_user" "minio_user" {
+ disable_user = false
+ force_destroy = false
+ id = (known after apply)
+ name = "minio_user_tf"
+ secret = (sensitive value)
+ status = (known after apply)
+ update_secret = false
}
Plan: 1 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ minio_user_status = (known after apply)
+ user_minio_user = (known after apply)
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
minio_iam_user.minio_user: Creating...
╷
│ Error: [FATAL] Error creating user (minio_user_tf): This 'admin' API is not supported by server in 'mode-server-fs'
│
│ with minio_iam_user.minio_user,
│ on user.tf line 1, in resource "minio_iam_user" "minio_user":
│ 1: resource "minio_iam_user" "minio_user" {
from terraform-provider-minio.
Allright, since it can be reproduced with the new release, let's reopen this. Thanks for reporting!
from terraform-provider-minio.
I investigated. According to minio/console#863 and related issues, this is seems to be simply something that the server cannot do when running in this mode. And the terraform adapter cannot provide a workaround for missing server functionality.
Is there something other than the already present error message we could do to help users tripping up on that @pinpox @Lykos153 or @AMKamel ?
from terraform-provider-minio.
I investigated. According to minio/console#863 and related issues, this is seems to be simply something that the server cannot do when running in this mode. And the terraform adapter cannot provide a workaround for missing server functionality.
Is there something other than the already present error message we could do to help users tripping up on that @pinpox @Lykos153 or @AMKamel ?
I couldn't find anyway to workaround this but using minio/mc cli client to do this, and I have to do that using pulumi
as they have something like command provider which is somehow mimicing null provisioners in terraform. minio provider at pulumi is suffering from the same issue as it's bridged from minio terraform provider.
Only creating bucket is possible using either terraform or minio provider, you can't creates users, policies at all when using minio fs-mode
from terraform-provider-minio.
@AMKamel Could you write up how you're using the mc cli in detail to add users in fs-mode
?
I mean, if the server tells the client that it is unwilling to perform, the client shouldn't be able to do this. But, the mc
could be doing something behind the servers back, so I could investigate that further if I know which "path" to take.
from terraform-provider-minio.
@AMKamel Could you write up how you're using the mc cli in detail to add users in
fs-mode
?I mean, if the server tells the client that it is unwilling to perform, the client shouldn't be able to do this. But, the
mc
could be doing something behind the servers back, so I could investigate that further if I know which "path" to take.
I am using it like this
create: pulumi.interpolate`mc admin user add --json ${minioAliasName} ${args.userName} ${args.userPassword}`,
delete: pulumi.interpolate`mc admin user remove --json ${minioAliasName} ${args.userName}`,
create: pulumi.interpolate`mc admin policy set --json ${minioAliasName} ${args.policyName} user=${this.userName}`,
delete: pulumi.interpolate`mc admin policy unset --json ${minioAliasName} ${args.policyName} user=${this.userName}`,
create: pulumi.interpolate`mc admin policy add --json ${minioAliasName} ${args.policyName} ${policyFilePath}`,
delete: pulumi.interpolate`mc admin policy remove --json ${minioAliasName} ${args.policyName}`,
create: pulumi.interpolate`mc policy set-json ${policyFilePath} ${minioAliasName}/${args.bucketName}`,
delete: pulumi.interpolate`mc policy set none ${minioAliasName}/${args.bucketName}`,
from terraform-provider-minio.
any updates please? I got the same issue with VERSION2020-12-23T02:24:12Z
from terraform-provider-minio.
Related Issues (20)
- Add NonCurrentVersionExpiration to Lifecycle Management Rules
- Module publishing - Terraform Registry HOT 7
- Add a description for every attribute in the documentation
- Can't install versions after 1.18.0 HOT 16
- Missing checksum list for 1.19.0 HOT 2
- terraform providfer does not work if api minio is running via proxy on port 443 HOT 1
- [Feature Request] Consider replacing Adminio-UI with the native MinIO Console
- [Feature_request] Set Expire delete marker on noncurrent_version_expiration_days life cycle management rule
- Lifecycle rule with noncurrent_version_expiration_days causes a update every plan/apply in 2.0.0 HOT 4
- minio_iam_service_account resource is updated on every run in 2.0.0 HOT 13
- Returned bucket_domain_name is wrong HOT 1
- [BUG] Root object was present, but now absent.
- [FATAL] unable to read policy: The canned policy does not exist
- Allow STS credentials instead of username/password HOT 1
- [FATAL] putting object failed (): one of source / content / content_base64 is not set
- [ilm] tier transitioning
- How create a folder into a specified bucket
- No Documentation for the `DeleteMarker` value of ilm policy's `expiration` field HOT 1
- Support Minio STS AssumeRoleWithWebIdentity to obtain dynamic credentials
- Inconsistent number of remote target and bucket replication rules HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-minio.