aws-samples / aws-cdk-sagemaker-studio Goto Github PK
View Code? Open in Web Editor NEWBuild and automatize the management of your Sagemaker Studio Users using AWS CDK!
License: MIT No Attribution
Build and automatize the management of your Sagemaker Studio Users using AWS CDK!
License: MIT No Attribution
[Error at /sagemakerStudioCDK] Could not find any VPCs matching {"account":"","region":"us-east-1","filter":{"isDefault":"true"},"returnAsymmetricSubnets":true}
Found errors
I followed the README and when I run cdk synthesize
I got the error:
[Error at /sagemakerStudioCDK] Could not find any VPCs matching {"account":"nnnnnnnnnn","region":"us-west-2","filter":{"isDefault":"true"},"returnAsymmetricSubnets":true}
Found errors
I modified app.py
with the right region.
Is there a VPC I need to create before running this?
P.S. Don't attach files. Please, prefer add code snippets directly in the message body.
I am trying to create sagemaker project following below steps:
create domain (using the example)
create user (using the example)
create jupyter app
create project
Code for creating jupyter app:
`class SagemakerStudioJupyterAppConstruct(Construct):
def __init__(self, scope: Construct,
construct_id: str, *,
app_name: str,
app_type: str,
domain_id: str,
user_profile_name: str,
depends_on=None, **kwargs) -> None:
super().__init__(scope, construct_id)
sagemaker_jupyter_app = sg.CfnApp(self, construct_id,
app_name=app_name,
app_type=app_type,
domain_id=domain_id,
user_profile_name=user_profile_name
)
sagemaker_jupyter_app.add_depends_on(depends_on_user_creation)`
Code for creating project:
`class SagemakerStudioProjectConstruct(Construct):
def __init__(self, scope: Construct,
construct_id: str, *,
project_name: str,
project_description: str,
product_id: str,
depends_on=None,
**kwargs) -> None:
super().__init__(scope, construct_id)
sagemaker_studio_project = sg.CfnProject(self, construct_id,
project_name=project_name,
service_catalog_provisioning_details={
"ProductId": "prod-7tjedn5dz4jrw"
},
project_description=project_description
)`
Domain, user, jupyter app all gets created successfully. The problem comes in with project.
Below is the error :
Resource handler returned message: "Product prod-7tjedn5dz4jrw does not exist or access was denied (Service: SageMaker, Status Code: 400, Request ID: 768116aa-e77b-4691-a972-38b83093fdc4)" (RequestToken: 45ca2a0c-3f03-e3e0-f29d-d9443ff4dfc1, HandlerErrorCode: GeneralServiceException)
I am running this code from an ec2 instance that has SagemakerFullAccess
I also tried attaching SagemakerFullAccess execution role with project...but got the same error.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.