Environment Groups in YAML with sync false does not ask for variables on deployment

When creating a render.yaml file with a envVarGroups option with multiple keys that all have sync: false. There is no option during the build process where these can be added before all the services are built etc. Image below shows the Environment Group setup I currently have where none of these are prompted for when adding this YAML to the render interface. Not sure why this is the case considering the example YAML shows that you can use the sync: false functionality.

Screen Shot 2021-03-02 at 5.39.30 pm

2 Likes

If this is an automated build or sync, you won’t have an opportunity to fill those values. But, if you’re creating a new set of services via “New from YAML”

new_from_yaml

you should be prompted to enter in values for those environment variables.

That is the issue unfortunately. There was no prompt at all when importing the YAML file to add those variable values and so the build fails. I will try again today but I never got any text fields when the YAML file was added despite having sync false on all variables in the group

Ah, you’re right. It doesn’t work for environment groups. Let’s see if we can get that supported.

3 Likes

+1 for this please. Also, environment groups with variables as sync: false don’t even get created for me.

The ideal scenario would be for them to work exactly the same as sync: false variables in services. Just ask for the value on deploy.

I’m having to do this ugly thing:
Screenshot 2022-04-29 at 12.15.07

And then after deploy I have to remember to go and set that.

I have to do it this way because this value is used by multiple services in the blueprint and is a JWT secret in the format: {"type":"HS256","key":"OrgDWKuSbPEIAARaaRAQQcjCmJePU8rdslkjURocpVlaLCttcMqjIBIYCC6MwT1JMDo3yiOJpIGvjd"} and I can’t generate that format randomly on the fly. If there was some sort of string interpolation syntax for blueprints then I could… Which would be great

Please. Thanks

Yep, we hear you! We’re working to improve this area for sure!

1 Like

+1, having the prompt for envVarGroups would be great!

EDIT: Actually, this is weird because it seems to work if the env group is updated. If you create it before setting up the blueprint, you’ll have the input prompts. However, if it’s not created, the inputs are not showed.

Creation :

Update: