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
已提问 2 年前280 查看次数
1 回答
0
已接受的回答

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
专家
Greg_B
已回答 2 年前
profile picture
专家
已审核 10 个月前
  • Thank you @Greg_B. Custom build should be the way to go.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则