https://pulumi.com logo
#general
Title
# general
r

rough-island-84087

09/29/2023, 7:55 AM
Hello, new to Pulumi, I try to start a new project to plat and try 😉 I'd like to store state files on a local AWS S3 compatible bucket stored on my NAS but it fails to connect, trying instead to connect to real AWS S3 endpoints ! So my question is simple: is local S3 compatible buckets are supported, and in this case how to configure Pulumi to use it ? I browsed the online documentation but did not found any pointer... Thanks !
g

great-sunset-355

09/29/2023, 10:01 AM
I suspect it has to do something with the service endpoint
Copy code
$ pulumi login <s3://my-pulumi-state-bucket>
will default to AWS S3 url so you can explore changing AWS_ENDPOINT env var described here https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-options.html
r

rough-island-84087

09/29/2023, 10:05 AM
seems pulumi does not handle all AWS env vars... I Finally succeeded by tuning the S3 URL like this:
"s3://<bucket>/<path_in_bucket>?endpoint=<http://minio.example.org|minio.example.org>>:<port>&region=<s3-reg-1>s3ForcePathStyle=true"
The only way I found to pass an alternate S3 endpoint
2 Views