How to ignore some folders while building a Greengrass component

0

Hello

When I'm developing a component locally, I may have some folders in the root, such as .git, .github, etc.. However, these folders are not needed to run the component. My question is, while using

gdk component build 

to build the component, is there any way to specify which folders are needed in the resulting .zip file, and which should be igored?

For example, the following figure shows the contents in the .zip file built by gdk. An expected behaviour is, only the folder/file marked by the blue arrows are included in the .zip file, whereas the rest are excluded.

Enter image description here

Thank you for your help!

cweng
preguntada hace 2 años280 visualizaciones
1 Respuesta
0
Respuesta aceptada

Hi cweng. I take it you're using the Zip Build system. There is no way to specify the folders to include. You can see here what GDK will ignore:

If you want more control, I think your best option will be to use a custom build type.

profile pictureAWS
EXPERTO
Greg_B
respondido hace 2 años
profile picture
EXPERTO
revisado hace 10 meses
  • Thank you @Greg_B. Custom build should be the way to go.

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas