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
asked 2 years ago273 views
1 Answer
0
Accepted Answer

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
answered 2 years ago
profile picture
EXPERT
reviewed 10 months ago
  • Thank you @Greg_B. Custom build should be the way to go.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions