Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't create CDN for existing bucket #406

Closed
orcutt989 opened this issue Apr 28, 2023 · 6 comments
Closed

Can't create CDN for existing bucket #406

orcutt989 opened this issue Apr 28, 2023 · 6 comments
Labels
awaiting-feedback Blocked on input from the author kind/bug Some behavior is incorrect or out of spec

Comments

@orcutt989
Copy link

What happened?

Diagnostics:
  digitalocean:index:Cdn (mumbainet-digitalocean-digitalocean-spaces-cdn):
    error: 1 error occurred:
    	* Error creating CDN: POST https://api.digitalocean.com/v2/cdn/endpoints: 401 (request "43fec770-c28d-4074-8ca8-840a024e1b3a") Unable to authenticate you

Expected Behavior

Create CDN for existing bucket

Steps to reproduce

Create a bucket

Try to add a CDN to it

Output of pulumi about

CLI
Version      3.55.0
Go Version   go1.19.5
Go Compiler  gc

Plugins
NAME          VERSION
aws           5.21.1
aws           5.10.0
aws           4.38.1
digitalocean  4.19.1
docker        3.1.0
eks           0.42.7
eks           0.41.2
eks           0.33.0
kubernetes    3.22.1
kubernetes    3.20.2
nodejs        unknown

Host
OS       darwin
Version  13.3.1
Arch     x86_64

This project is written in nodejs: executable='/usr/local/bin/node' version='v18.11.0'

Backend
Name           pulumi.com
URL            https://app.pulumi.com/xxxx
User           xxxx
Organizations  xxxx, xxxx

Dependencies:
NAME                       VERSION
@oxheadalpha/tezos-pulumi  1.1.1
@pulumi/aws                5.21.1
@pulumi/awsx               0.40.1
@pulumi/digitalocean       4.19.1
@pulumi/pulumi             3.47.1
@types/node                16.9.6
yaml                       1.10.2
@pulumi/eks                0.42.7
@pulumi/kubernetes         3.22.1
dotenv                     10.0.0
tezos-pulumi               2.0.0

Additional context

I have a read/write token as a pulumi secret and I'm able to create a spaces bucket without issue, but when I try to add a CDN to it I get Unable to authenticate you.

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@orcutt989 orcutt989 added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Apr 28, 2023
@aq17
Copy link
Contributor

aq17 commented May 2, 2023

Hi @orcutt989 , thanks for opening this issue. Do you have the token attribute set in the digitalocean provider, and if not could you try that?

@aq17 aq17 added awaiting-feedback Blocked on input from the author and removed needs-triage Needs attention from the triage team labels May 2, 2023
@orcutt989
Copy link
Author

Hi @orcutt989 , thanks for opening this issue. Do you have the token attribute set in the digitalocean provider, and if not could you try that?

I didnt create a provider. Should I? I have been able to create spaces without one.

@aq17 aq17 added the needs-triage Needs attention from the triage team label May 2, 2023
@aq17
Copy link
Contributor

aq17 commented May 3, 2023

@orcutt989 did you set your spaces API credentials alongside the digitalocean token? (https://www.pulumi.com/registry/packages/digitalocean/installation-configuration/#configuring-credentials)

This might be useful to reference as well: https://docs.digitalocean.com/products/spaces/how-to/manage-access/.

It looks like both may be required.

@aq17 aq17 removed the needs-triage Needs attention from the triage team label May 3, 2023
@mikhailshilkov
Copy link
Member

@orcutt989 Were you able to resolve your issue?

@orcutt989
Copy link
Author

Yep thanks!

@edelbalso
Copy link

I'm experiencing a similar issue with digitalocean provider. Do you folks remember what was the resolution here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-feedback Blocked on input from the author kind/bug Some behavior is incorrect or out of spec
Projects
None yet
Development

No branches or pull requests

4 participants