Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

170
Visualizações
How to determine the number of random characters CDK adds to Logical IDs?

I'm trying to strip off the random characters from a set of Logical IDs in AWS CDK. (Won't go into too much detail about why as it isn't relevant to the question but the basic reason is so some resources can be retained after stack deletion and then left as-is when recreating the stack. Would like to write a function that will do this automatically for all nodes in a tree).

Have noticed that CDK adds its own random characters onto the end of Logical IDs. E.g:

  • exampleservicevpc0CD2D33A
  • exampleservicevpcingresssubnetEIPFE5428D1
  • exampleservicerole41CC6F17
  • exampleserviceanothervpcIGW1CABF45D

As can be seen above, some of these have 8 random characters and others have 11. (There might be other lengths too but haven't come across any yet). The question I'd like an answer for is how to reliably determine the number of random characters used in any Logical ID?

about 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

CDK Logical IDs are suffixed by 8 characters taken from the md5 hash of the construct tree path.

The OP's examples all conform to the 8-character pattern. The "extra" characters you see are part of the resource name: IGW = Internet Gateway and EIP = Elastic IP.

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda