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
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'>
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!