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
demandé il y a 2 ans280 vues
1 réponse
0
Réponse acceptée

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
EXPERT
Greg_B
répondu il y a 2 ans
profile picture
EXPERT
vérifié il y a 10 mois
  • Thank you @Greg_B. Custom build should be the way to go.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions