Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

I am receiving the following error when doing a subsequent deployment through doctl:
errors validating app spec; first error in field "envs.0.value": secret env value must not be encrypted before app is created
This is the command: doctl apps create --upsert --spec app-spec.yml --wait --verbose
Version: 1.68.0
Here is the relevant section of the app-spec.yml file:
envs:
- key: DISCORD_BOT_TOKEN
scope: RUN_AND_BUILD_TIME
type: SECRET
value: <REDACTED>
I have tried multiple approaches (wondering if I did something wrong), and I am getting the error no matter what.
Approach 1:
Approach 2:
I have read the documentation and community questions, and it seems that I am doing this correctly. e.g. https://www.digitalocean.com/community/questions/how-to-use-environment-values-of-type-secret-on-following-submissions
As you make updates to your app spec, if you don’t intend to change those encrypted values, then you should just submit with the in-place encrypted values unchanged.
What is the correct approach to this? If there is an issue with the DOAP, is there a temporary workaround?
c21c0b00bb284130a0d0cd3b7bdab4
IsaacMvd
Leon Junior
hashembarret@gmail.com
JetForMe
24608ead89f046a8abab394f968f2c
Philipp Mayerhofer
enews
Brian Magnosi
jairunet
Nikolas Jakson