powerful-lighter-63321
07/21/2023, 5:14 AMfunc (MyResource) Delete(ctx p.Context, id string, input MyResourceArgs) error {
deleteMyResource(ctx, id)
Within this method, I've got to initialize the api-client. This needs the config values for the api, because I call another library which is needed to work. Or can I initialize it somewhere else except in the Create,Delete,... Methods? But I definitively need the secrets. As of now, I'm using environment variables to achive this. But I think they're better kept in the secrets, as a single source of truth.echoing-dinner-19531
07/22/2023, 9:45 AMpowerful-lighter-63321
07/25/2023, 5:31 AM