This message was deleted.
# general
s
This message was deleted.
b
@worried-terabyte-60325 how are you setting your access key for Minio? the access key you set in your stack config needs to be different to your access key/secret key for your pulumi program
w
I set access key like this. Seems like I have a configuration conflict? What's the right approach to pass minio's access key if I want to use aws pprovider? Thanks for quick reply😃.
b
just to confirm, you're provisioning AWS infrastructure? whats in your pulumi program (the thing that runs when you run
pulumi up
w
Yes, I am provisioning AWS resources. I try to setup an EC2 instance as a demo.
b
@worried-terabyte-60325 in that case, the access keys used for state storage are different to the keys use inside the provider (ie, the keys used to create infrastructure) so you'll need to define a profile for talking to MinIO, and then a profile for talking to AWS
right now you have access keys for MinIO defined, and those keys don't exist in AWS
you'll need to grab some IAM keys and then do:
Copy code
pulumi config aws:accessKey <key>
pulumi config aws:secretKey <key> --secret
w
Trying right now👍. I tried
AWS_PROFILE=minio
, that didn't work.
b
that'll only work for talking to MinIO, those keys dont work for aws
w
Yes, I didn't realize that.
b
you can also define two different profiles:
Copy code
[minio]
aws_access_key_id = xxx
aws_secret_access_key = xxx
[aws]
aws_access_key_id = xxx
aws_secret_access_key = xxx
And then do:
Copy code
pulumi config set aws:profile aws
and then do:
Copy code
AWS_PROFILE=minio pulumi up
that'll work too
🙏 1
w
That works, thanks a great lot. I will add a comment to the issue above later, in case someone meets the same problem. I think that's good to mention it in the document. It's a bit obscure for new users to find out.
b
i already did 🙂
w
😃You already did.
431 Views