ym1198
ym11982y ago

Resource vs (Secret) Variable

Suppose I created a resource for , let's say, Postgres db (ignore that it is existing if it is ) The resource will have fields like port, host, username, password, database. If instead of this I use 5 secret variables of one value each (host, port, etc) OR one secret json variable having all 5 fields/properties, how does it affect ? Any extra benefits of using resource ?
2 Replies
rubenf
rubenf2y ago
resources can be filtered by type and are deserialized automatically. They also have a rich UI builder. Last they can used as input per type using Resource<'my-type'>
ym1198
ym1198OP2y ago
okay, it seems in my case it is not much needed as I don't need that in input but it would be better in other scenarios thanks!

Did you find this page helpful?