Greegrass v2: Deleting a local deployment

1

I've been using local deployments (bin/greengrass-cli deployment create) during development of my Component. I'm at the point where I'm happy with it and want to do a clean deploy to verify I have all the right settings before I start a publish/deploy/test cycle. I tried deleting the package manually on the machine, but that doesn't fix things.

The main reason I want to do this is, during development, I was editing the recipe in the LocalDebugConsole webpage and it seems that now any updates to my source package recipe don't make it to the effective config (at least through local deployments). Without deleting my container volume and starting over, is there a way to delete/reset/clear/clean these local deployments or otherwise get my recipe to use the source recipe instead of the locally edited one?

Casey
질문됨 2년 전876회 조회
2개 답변
5
수락된 답변

To delete a local deployment use the greengrass-cli with a command similar to:

sudo /greengrass/v2/bin/greengrass-cli \
    --ggcRootPath /greengrass/v2 deployment create \
    --remove "your.component.without.version"

Cheers,

Philipp

AWS
전문가
답변함 2년 전
0

Hi Casey

By "editing the recipe in the LocalDebugConsole webpage", do you mean you edit the "Running config" section under the detail page of your component?

Lihao
답변함 2년 전
  • @Phillip S's solved my primary issue, but for more info on the config situation:

    Yes, I was talking about the "Running config" on the details page of my component. I was playing with the accessControl statements (specifically the resources) in LocalDebugConsole>My-Component>Running config. I then manually propagated those back to my source recipe and from then on, local-deployments weren't updating the "Running config" (I added another resource in my source recipe and it didn't show up in the running config after many "Reinstall"s).

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

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

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

관련 콘텐츠