Custom resource names for cloud provider(Azure) #424
-
Team, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Application level resources are all named by the developer, so that they're easy to reference and recognise. For example, in this code snippet I'm creating an API and a Bucket, giving them both names. import { api, bucket } from "@nitric/sdk";
// create a new API named 'photos'
const photoApi = api('photos');
// create a new Bucket named 'photo-files'
const imgs = bucket('photo-files').for('reading'); During deployment these names may be modified to ensure they don't collide with existing resources in your cloud account. Nitric takes care of the name resolution at runtime, so you don't need to be conserned about those renames. There are other resources deployed by Nitric that are needed to facilitate applications which aren't explicitly defined by the developer (such as Roles, Containers, etc.), those resources can't be named currently. Instead, they get a name derived from context, for example they will be named after your project or the funtion they're associated with. I'm curious if you need another naming feature I haven't mentioned and what you're trying to achieve. We may be able to help further. |
Beta Was this translation helpful? Give feedback.
-
Thanks @jyecusch , This is helpful and understanding. One other thing, I noticed with cloud provider |
Beta Was this translation helpful? Give feedback.
Hi @sbalajisivaram
Application level resources are all named by the developer, so that they're easy to reference and recognise. For example, in this code snippet I'm creating an API and a Bucket, giving them both names.
During deployment these names may be modified to ensure they don't collide with existing resources in your cloud account. Nitric takes care of the name resolution at runtime, so you don't need to be conserned about those renames.
There are other resources deployed by Nitr…