How to grant permission to create a log file in sagemaker?

1

I created a serverless endpoint in sagemaker based on the documentation provided. I have my model (artifactory) zipped up and uploaded to s3, created a model and then created an endpoint configuration , then finally created the endpoint

response = client.create_endpoint(
    EndpointName="serverless-endpoint",
    EndpointConfigName="serverless-endpoint-config"
)

on the endpoint invocation, cloudwatch logs show error below - log4j:ERROR setFile(null, true) called failed. java.io.FileNotFoundException: logs/ts_metrics.log (No such file or directory) at java.base/java.io.FileOutputStream.open0 (Native Method) at java.base/java.io.File......

this looks like permission error , but i'm not sure how to give access/permission to create file in sagemaker.

gefragt vor 2 Jahren648 Aufrufe
1 Antwort
0

Hello, does the execution role associated with the model have the proper CloudWatch permissions ?

AWS
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen