cool-wall-66940
12/16/2021, 9:31 AMimport pulumi
import pulumi_digitalocean as digitalocean
foobar = digitalocean.SpacesBucket("foobarrandom615243", region="nyc3")
I get the following error:
Diagnostics:
pulumi:pulumi:Stack (pulumispacecreate-dev):
error: update failed
digitalocean:index:SpacesBucket (foobarrandom615243):
error: 1 error occurred:
* Error creating bucket: Spaces credentials not configured
billowy-army-68599
12/16/2021, 9:37 AMpulumi config set spaces_access_id <my access_id>
pulumi config set spaces_secret_key <my_secret_key> --secret
cool-wall-66940
12/16/2021, 9:49 AMSPACES_ACCESS_KEY_ID SPACES_SECRET_ACCESS_KEY
then I tried with
spaces_access_id
spaces_secret_key
I copied the two values starting with M and T, was I copying the wrong tokens?
I tried with the commands above you wrote but I get the same error:
Error creating bucket: Spaces credentials not configured
billowy-army-68599
12/16/2021, 9:52 AMlimited-rainbow-51650
12/16/2021, 9:53 AMspaces_access_id
and spaces_secret_key
? These keys should prefixed with the digitalocean
namespace:
$ pulumi config set digitalocean:spaces_access_id <YOUR_ACCESS_KEY_HERE>
$ pulumi config set digitalocean:spaces_secret_key <YOUR_SECRET_KEY_HERE> --secret
cool-wall-66940
12/16/2021, 9:54 AMbillowy-army-68599
12/16/2021, 9:58 AMPulumi.dev.yaml
should look like this:
config:
digitalocean:spaces_access_id: FQFYFUXOEWEF7GYVUPPB
digitalocean:spaces_secret_key:
secure: AAABACcw7Bh1kmEVZwedBFXJkqudxX7PaHorF7FHDz3J76MFkA3D1N/pgRQKWfHlSQFUvN7LcJKJE7edpT7nJcUF2TdfrUIvE6ZT
Updating (dev)
View Live: <https://app.pulumi.com/jaxxstorm/spaces/dev/updates/1>
Type Name Status
+ pulumi:pulumi:Stack spaces-dev created
+ └─ digitalocean:index:SpacesBucket example created
Resources:
+ 2 created
Duration: 33s
cool-wall-66940
12/16/2021, 9:58 AMdigitalocean
in front of the variable names.
This did the trick and it created the space. Let me try to do it with
digitalocean:SPACES_ACCESS_KEY_ID
billowy-army-68599
12/16/2021, 9:59 AMcool-wall-66940
12/16/2021, 10:00 AMbillowy-army-68599
12/16/2021, 10:03 AMlimited-rainbow-51650
12/16/2021, 10:04 AMConfiguring Credentials
is extended with Spaces specific settings
https://www.pulumi.com/registry/packages/digitalocean/installation-configuration/#configuring-credentialsbillowy-army-68599
12/16/2021, 10:05 AMexport SPACES_ACCESS_KEY_ID=<key>
export SPACES_SECRET_ACCESS_KEY=<key>
cool-wall-66940
12/16/2021, 10:08 AMexport SPACES_ACCESS_KEY_ID=<key>
export SPACES_SECRET_ACCESS_KEY=<key>
this didn't work what I tried, and which was obviously wrong:
pulumi config set SPACES_ACCESS_KEY_ID <key>
pulumi config set SPACES_SECRET_ACCESS_KEY <key>
brainy-church-78120
12/16/2021, 1:59 PM