You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
export SAGEMAKER_NOTEBOOK_INSTANCE="ssh-helper-notebook"# Create manually, run SageMaker_SSH_Notebook.ipynb
37
46
38
-
export SKIP_CDK="false"
47
+
export SKIP_CDK="false"
39
48
export SKIP_PROFILE_TESTS="false"
40
49
41
50
export PYTEST_EXTRA_ARGS=""
@@ -45,7 +54,15 @@ export PYTEST_KEYWORDS=" "
45
54
bash run_tests.sh
46
55
```
47
56
48
-
Now write a failing test, put code to make it pass, and make sure other tests are still working to avoid any regression.
57
+
*Note:* You can find example CDK bootstrap policy for the AWS access key role in [tests/iam/CDKBootstrapPolicy.json](tests/iam/CDKBootstrapPolicy.json). This role should be also able to access SageMaker default buckets, see [tests/iam/GitLabCIPolicy.json](tests/iam/GitLabCIPolicy.json).
58
+
59
+
Now write a failing test, put code to make it pass, and make sure other tests are still working to avoid any regression. See [.gitlab-ci.yml](.gitlab-ci.yml) and [run_tests.sh](run_tests.sh) to learn how to do that.
60
+
61
+
For the full run of all tests, at the moment of writing, you need ~9 hours. The user role should allow [session duration](https://docs.aws.amazon.com/IAM/latest/UserGuide/roles-managingrole-editing-console.html#roles-modify_max-session-duration) for at least 10 hours. We recommend setting the max duration through AWS Console to 12 hours.
62
+
63
+
**TODO** (for developers): Because IAM role chaining doesn't allow to assume the chained role for more than 1 hour, ACCESS_KEY (for now) should be the IAM user. We should reverse the assume role logic so that tests run under USER_ROLE which in turn assumes the CDK bootstrap role. Now the logic in [run_tests.sh](run_tests.sh) is the opposite.
64
+
65
+
**TODO** (for developers): We should create CDK to set up domains, users and VPCs.
0 commit comments