aws-samples / aws-iot-greengrass-v2-deploy-nvidia-deepstream

How to use AWS IoT Greengrass V2 for Image classification and Video Analytics Pipelines
MIT No Attribution
17 stars 6 forks source link

failed to create component - Specified artifact resource cannot be accessed #5

Open danjhd opened 3 years ago

danjhd commented 3 years ago

Issue: When running those 3 create-component-version commands from the instructions.

aws greengrassv2 create-component-version --inline-recipe fileb://recipes/aws.greengrass.JetsonDLRImageClassification-1.0.0.json
aws greengrassv2 create-component-version --inline-recipe fileb://recipes/variant.Jetson.DLR-1.0.0.json
aws greengrassv2 create-component-version --inline-recipe fileb://recipes/variant.Jetson.ImageClassification.ModelStore-1.0.0.json

It complains S3 resources cannot be accessed. See the following for details:

{An error occurred (ValidationException) when calling the CreateComponentVersion operation: Invalid Input: Encountered following errors in Artifacts: {s3://BUCKET_NAME/artifacts/aws.greengrass.JetsonDLRImageClassification/1.0.0/image_classification.zip = Specified artifact resource cannot be accessed}

I know that BUCKET should be replaced with your own bucket, however the referenced ZIP files do not seem to be part of this repo so it would be not be possible to upload them to a bucket to get these commands to work.

It seems this is a re-occurance of the issue that was opened and then closed before: https://github.com/aws-samples/aws-iot-greengrass-v2-deploy-nvidia-deepstream/issues/4

danjhd commented 3 years ago

@rvanderwerf please could you help?

rvanderwerf commented 3 years ago

I need to tweak the instructions here.

1) On your checked out repo, zip up

/jetson_inference/artifacts/aws.greengrass.JetsonDLRImageClassification/1.0.0/* into image_classification.zip and put that in a bucket your GGv2 can access, and change the recipe to point to that. 2) I've restored the missing file resnet18_v1-jetson.zip back into my public bucket which you can find at s3://public-ryan/jetson/models/resnet18_v1-jetson.zip

rvanderwerf commented 3 years ago

also if you don't want to zip up the image_classification.zip, you can find it here: s3://public-ryan/jetson/models/image_classification.zip

ahmedmuzammilAI commented 1 year ago

I have the same issue.. I've tried that using a zip file as well in the same place as @rvanderwerf mentioned and that didn't solve the problem.. also I have the permission "s3:GetObject" set in the [GreengrassV2TokenExchangeRoleAccess] policy still no use.. please help with this issue. would really appreciate it. I'm sorry I'm new this please excuse my lack of experience, I guess that the maybe s3GetObject permission comes into action later on and it's not affected by this or may in anyway be related idk.

freitasartur commented 7 months ago

I'm experiencing the same issue as mentioned above with accessing the S3 object. Has anyone been able to solve it?