-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from kukushking/chores/readmes
chore: add deployment guide; improve readmes
- Loading branch information
Showing
5 changed files
with
73 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Deployment Guide | ||
|
||
## Set-up the environment(s) | ||
|
||
1. Clone the repository and checkout a release branch using the below command: | ||
|
||
``` | ||
git clone --origin upstream --branch release/1.0.0 https://github.com/awslabs/mlops-modules | ||
``` | ||
The release version can be replaced with the version of interest. | ||
|
||
2. Move into the `mlops-modules` repository: | ||
``` | ||
cd mlops-modules | ||
``` | ||
3. Create and activate a Virtual environment | ||
``` | ||
python3 -m venv .venv && source .venv/bin/activate | ||
``` | ||
4. Install the requirements | ||
``` | ||
pip install -r ./requirements.txt | ||
``` | ||
5. Set environment variables | ||
|
||
Replace the values below with your AWS account id and Administrator IAM Role. | ||
``` | ||
export PRIMARY_ACCOUNT=XXXXXXXXXXXX | ||
export ADMIN_ROLE_ARN=arn:aws:iam::XXXXXXXXXXXX:role/XXXXX | ||
``` | ||
|
||
5. Bbootstrap the CDK environment (one time per region) with CDK V2. Asuming you are deploying in `us-east-1`: | ||
``` | ||
cdk bootstrap aws://${PRIMARY_ACCOUNT}/us-east-1 | ||
``` | ||
6. Bootstrap AWS Account(s) | ||
|
||
Assuming that you will be using a single account, follow the guide [here](https://seed-farmer.readthedocs.io/en/latest/bootstrapping.html#) to bootstrap your account(s) to function as a toolchain and target account. | ||
|
||
Following is the command to bootstrap your existing account to a toolchain and target account. | ||
``` | ||
seedfarmer bootstrap toolchain --project mlops --trusted-principal ${ADMIN_ROLE_ARN} --as-target | ||
``` | ||
|
||
## Deployment | ||
|
||
Note: if you are deploying into a region different from `us-east-1`, change the `regionMappings` in `manifests/deployment.yaml`. | ||
``` | ||
seedfarmer apply manifests/deployment.yaml | ||
``` | ||
## Clean-up | ||
|
||
Do destroy all modules, run: | ||
``` | ||
seedfarmer destroy mlops | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+58.1 KB
...atalog/docs/_static/sagemaker-templates-service-catalog-module-architecture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
...-service-catalog/docs/_static/sagemaker-templates-service-catalog-module-architecture.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<mxfile modified="2024-03-08T16:10:54.204Z" host="design-inspector.a2z.com" agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36" etag="XvEalUsI_Iix9xmwL0iL" version="10.1.8" type="device"><diagram id="0HyKlEar5IaDk0uKpzP5G" name="Page-1">7V1bd5u6Ev41eSQLAeLyaDtJd1bbs3Lq7u7T89IlQNg0GPkAjuP++jPiYnMLcWI7hkRt2qBBiJEYaT59GsGFOlk8forIcv6VuTS4UGT38UK9ulAUS9fgfy7YZAId54JZ5LuZCO0EU/8PzYVyLl35Lo0rGRPGgsRfVoUOC0PqJBUZiSK2rmbzWFC965LMaEMwdUjQlP7ju8k8k5qKsZP/Rf3ZvLgz0q3szIIUmfOaxHPisnVJpF5fqJOIsSQ7WjxOaMDbrmiX/LqQPib8zK37gwSrXC1V25bwj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