https://pulumi.com logo
Title
p

prehistoric-morning-13772

11/07/2022, 1:32 AM
Does anyone have the proper incantation for a
pulumi login
command using a DigitalOcean spaces s3 bucket?
b

brainy-church-78120

11/07/2022, 2:17 AM
what have you tried? what error are you getting back?
p

prehistoric-morning-13772

11/07/2022, 2:40 AM
pulumi login "s3://<bucket name>?endpoint=<http://digitaloceanspaces.com|digitaloceanspaces.com>&disableSSL=true&s3ForcePathStyle=true&region=nyc3"
with the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY env vars set
plus a few other iterations, like
spaces/<bucket name>
and having an endpoint of nyc3.digitaloceanspaces.com
most recent iteration gave me this response:
error: problem logging in: unable to check if bucket s3://<bucket>?endpoint=<http://digitaloceanspaces.com|digitaloceanspaces.com>&disableSSL=true&s3ForcePathStyle=true&region=nyc3 is accessible: blob (code=Unknown): SerializationError: failed to decode REST XML response
        status code: 200, request id: 
caused by: XML syntax error on line 1: attribute name without = in element
e

echoing-dinner-19531

11/07/2022, 9:53 AM
https://docs.digitalocean.com/reference/api/spaces-api/ suggests that ForcePathStyle should be false.
p

prehistoric-morning-13772

11/07/2022, 1:08 PM
Thanks @echoing-dinner-19531 - it was a combination of forceStylePath=false, disableSSL=false, and tacking on the DO region to the endpoint