Skip to content

Custom resource names for cloud provider(Azure) #424

Answered by jyecusch
sbalajisivaram asked this question in Q&A
Discussion options

You must be logged in to vote

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.

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 Nitr…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by jyecusch
Comment options

You must be logged in to vote
1 reply
@jyecusch
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants