-
Notifications
You must be signed in to change notification settings - Fork 250
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
Deployment to CloudFlare StaticSite Fails with Resolved credential object is not valid
#26
Comments
@claughinghouse Currently, StaticSite uses R2 bucket to store assets. You'd need to create an R2 token via the R2 Console > Manage R2 tokens. That token will give you an ACCESS KEY and SECRET KEY. And then pass those in via environment variable. ie.
That said, I'm making a change to StaticSite to use RV for storing assets. So in the next version, it won't use R2, and you won't need this token. Just the API Token would be enough. |
Same results after upgrading to v0.0.135 and logging into both AWS SSO and running
|
I will give it a try. I posted my update above right as you had posted the info about R2. Thank you and I will report back shortly! This is the current permission list for the apiToken: |
This did the trick. I will close the issue pending the next version you listed. Thank you @fwang! |
@claughinghouse Just released 0.137. Swapped out R2 with KV. No need for the R2 tokens. If you run into the "The bucket you tried to delete is not empty" error when deploying, go to ur R2 dashboard and delete all files in it, then run deploy again. |
I keep getting this error with the Cloudflare provider. I set the
providers.cloudflare.apiToken
but had the same error.with this
sst.config.ts
:I have the
CLOUDFLARE_API_TOKEN
env var set and valid AWS credentials.Discord Link
The text was updated successfully, but these errors were encountered: