Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

166
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda