Skip to content

hyperpod-eks-cluster-creation.sh #634

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
gmgtamz opened this issue Apr 8, 2025 · 1 comment
Open

hyperpod-eks-cluster-creation.sh #634

gmgtamz opened this issue Apr 8, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@gmgtamz
Copy link
Contributor

gmgtamz commented Apr 8, 2025

https://github.com/aws-samples/awsome-distributed-training/blob/main/1.architectures/7.sagemaker-hyperpod-eks/automate-smhp-eks/hyperpod-eks-cluster-creation.sh

From CloudFormation/Q

This Custom::SageMakerStudioCodeEditor resource is in a CREATE_FAILED state. Received response status [FAILED] from custom resource. Message returned: An error occurred (AccessDeniedException) when calling the CreateApp operation: User: arn:aws:sts::432522970596:assumed-role/sagemaker-hyperpod-eks-CodeEditorFn-Role-us-west-2/sagemaker-hyperpod-eks-CodeEditorFunction is not authorized to perform: sagemaker:AddTags on resource: arn:aws:sagemaker:us-west-2:432522970596:app/d-hdlassjgbslh/default/CodeEditor/default because no identity-based policy allows the sagemaker:AddTags action (RequestId: aae1932e-a4b3-43a7-a86e-4406c42fcb88)

Less
Analysis
The error message indicates that the AWS Identity and Access Management (IAM) role associated with the Custom::SageMakerStudioCodeEditor resource does not have the necessary permissions to perform the sagemaker:AddTags action on the SageMaker app resource. This is likely due to a missing or incorrect IAM policy attached to the role.
Resolution

Try the following steps to resolve your error:

If you don't have permissions to do the following changes, contact your AWS Administrator.

Open the AWS IAM console.

Navigate to the IAM role named 'sagemaker-hyperpod-eks-CodeEditorFn-Role-us-west-2'.

In the 'Permissions' tab, click on 'Add permissions' and then 'Create inline policy'.

Choose the JSON tab and add the following policy:

(my admin is full perm btw)
but looks it's realted to sagemaker-hyperpod-eks-CodeEditorFn-Role-us-west-2
with not enough perm)

@mhuguesaws mhuguesaws added the bug Something isn't working label Apr 10, 2025
@mhuguesaws
Copy link
Contributor

@gmgtamz @bluecrayon52 any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants