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 Answers
0
Accepted Answer

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
EXPERT
answered a year ago
  • 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
answered a year ago

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