Component version doesn't exist in the AWS cloud

0

I have deleted the component from AWS cloud, from local device, and built another device in another region as well, but it shows device unhealthy, and showing error like this.... Error like this. Can anyone tell the reason behind this. Thank you Nik

2개 답변
0
수락된 답변

Hi Nik,

did you create your component in the other AWS Region? Greengrass components are regional resources that must be created in every region where you want to use them.

Is your component showing up under My components? You can also use list-components and list-component-versions with the AWS CLI.

Cheers,
Philipp

AWS
전문가
답변함 일 년 전
  • Can you tell me that how can I delete this components using aws-cli Thank you Philipp

  • You can use the delete-component API. To delete a component you provide the component arn. You can find the arns of your components with the list-components command.

  • Thank you Philipp, but I think, it’s different error because it has no ARN, so how can i delete it, I tried but it shows…..is not a valid ARN.

  • Can you find your component with list-components? As arn you need to provide the arn including version, for exampel arn:aws:greengrass:AWS_REGION:AWS_ACCOUNT:components:com.example.learndevice:versions:YOUR_VERSION

  • No, I cannot find because it has no ARN. That's because I confused about this error.

0

Hey Nik,

It shows that error because you deleted the component on Iot Core (hence it tells you it can not find it because it was deleted). If your device is unhealthy, use the aws.greengress.Cli greengrass-cli component list and check which component is broken or failing which would cause it to report to Iot core as unhealthy, also check the logs on your device which will give you more insights as to what might have gone wrong. Try creating a new deployment adding or removing the components you want it to have and the device status should update.

Cheers,

Nelson

AWS
답변함 일 년 전

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

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

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