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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠