Cloud formation for MLflow stack

0

I'm trying to follow MLflow command line documentation to make a server on Fargate but I face this error can anyone please guide me to solve it thanks:

error: User: arn:aws:sts::567791023873:assumed-role/AmazonSageMaker-ExecutionRole-20230615T154712/SageMaker is not authorized to perform: cloudformation:DescribeStacks on resource: arn:aws:cloudformation:us-east-1:567791023873:stack/CDKToolkit/* because no identity-based policy allows the cloudformation:DescribeStacks action

1 Respuesta
1
Respuesta aceptada

Hi,

I am assuming you are following the steps mentioned on this blog. It appears the execution role (shown in bold) doesn't have the required permissions.

mlflow.sagemaker.deploy( mode='create', app_name=endpoint_name, model_uri=model_uri, image_url=image_uri, execution_role_arn=role, instance_type='ml.m5.xlarge', instance_count=1, region_name=region )

I would suggest finding the role in IAM->Roles and adding the cloudformation:DescribeStacks action as a valid permission to that role.

Thanks, Rama

profile pictureAWS
Rama
respondido hace un mes
profile picture
EXPERTO
revisado hace un mes

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas