Skip to content

AWS CDK: Deploying cross env stack error #28835

Answered by khushail
iiljazi asked this question in Q&A
Discussion options

You must be logged in to vote

@iiljazi , for deplyment across environment, GENERATE_IF_NEEDED inherently invokes this method and checks if the account details are provided-

export function generatePhysicalName(resource: IResource): string {

export function generatePhysicalName(resource: IResource): string {
  const stack = Stack.of(resource);
  const stackPart = new PrefixNamePart(stack.stackName, 25);
  const idPart = new SuffixNamePart(Names.nodeUniqueId(resource.node), 24);

  const region: string = stack.region;
  if (Token.isUnresolved(region) || !region) {
    throw new Error(`Cannot generate a physical …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by khushail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants