-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
303 additions
and
4 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
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,37 @@ | ||
name: mlops-sagemaker | ||
toolchainRegion: us-east-1 | ||
forceDependencyRedeploy: true | ||
groups: | ||
- name: networking | ||
path: manifests/mlops-sagemaker-multiacc/networking-modules.yaml | ||
- name: storage | ||
path: manifests/mlops-sagemaker-multiacc/storage-modules.yaml | ||
- name: sagemaker-studio | ||
path: manifests/mlops-sagemaker-multiacc/sagemaker-studio-modules.yaml | ||
- name: sagemaker-templates | ||
path: manifests/mlops-sagemaker-multiacc/sagemaker-templates-modules.yaml | ||
- name: sagemaker-kernels | ||
path: manifests/mlops-sagemaker-multiacc/kernels-modules.yaml | ||
targetAccountMappings: | ||
- alias: dev | ||
accountId: | ||
valueFrom: | ||
envVariable: DEV_ACCOUNT | ||
default: true | ||
regionMappings: | ||
- region: us-east-1 | ||
default: true | ||
- alias: pre-prod | ||
accountId: | ||
valueFrom: | ||
envVariable: PRE_PROD_ACCOUNT | ||
regionMappings: | ||
- region: us-east-1 | ||
default: true | ||
- alias: prod | ||
accountId: | ||
valueFrom: | ||
envVariable: PROD_ACCOUNT | ||
regionMappings: | ||
- region: us-east-1 | ||
default: true |
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,40 @@ | ||
name: sagemaker-custom-kernel | ||
path: modules/sagemaker/sagemaker-custom-kernel/ | ||
targetAccount: dev | ||
parameters: | ||
- name: ecr-repo-name | ||
valueFrom: | ||
moduleMetadata: | ||
group: storage | ||
name: ecr-sagemaker-kernel | ||
key: EcrRepositoryName | ||
- name: studio-domain-id | ||
valueFrom: | ||
moduleMetadata: | ||
group: sagemaker-studio | ||
name: studio | ||
key: StudioDomainId | ||
- name: studio-domain-name | ||
valueFrom: | ||
moduleMetadata: | ||
group: sagemaker-studio | ||
name: studio | ||
key: StudioDomainName | ||
- name: studio-execution-role-arn | ||
valueFrom: | ||
moduleMetadata: | ||
group: sagemaker-studio | ||
name: studio | ||
key: SageMakerExecutionRoleArn | ||
- name: sagemaker-image-name | ||
value: echo-kernel | ||
- name: app-image-config-name | ||
value: echo-kernel-app-config | ||
- name: custom-kernel-name | ||
value: echo | ||
- name: kernel-user-uid | ||
value: '0' | ||
- name: kernel-user-gid | ||
value: '0' | ||
- name: kernel-user-home-mount-path | ||
value: /root |
20 changes: 20 additions & 0 deletions
20
manifests/mlops-sagemaker-multiacc/networking-modules.yaml
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,20 @@ | ||
name: networking-dev | ||
path: git::https://github.com/awslabs/idf-modules.git//modules/network/basic-cdk?ref=release/1.3.0&depth=1 | ||
targetAccount: dev | ||
parameters: | ||
- name: internet-accessible | ||
value: True | ||
--- | ||
name: networking-pre-prod | ||
path: git::https://github.com/awslabs/idf-modules.git//modules/network/basic-cdk?ref=release/1.3.0&depth=1 | ||
targetAccount: pre-prod | ||
parameters: | ||
- name: internet-accessible | ||
value: True | ||
--- | ||
name: networking-prod | ||
path: git::https://github.com/awslabs/idf-modules.git//modules/network/basic-cdk?ref=release/1.3.0&depth=1 | ||
targetAccount: prod | ||
parameters: | ||
- name: internet-accessible | ||
value: True |
30 changes: 30 additions & 0 deletions
30
manifests/mlops-sagemaker-multiacc/sagemaker-studio-modules.yaml
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,30 @@ | ||
name: studio | ||
path: modules/sagemaker/sagemaker-studio | ||
targetAccount: dev | ||
parameters: | ||
- name: vpc_id | ||
valueFrom: | ||
moduleMetadata: | ||
group: networking | ||
name: networking-dev | ||
key: VpcId | ||
- name: subnet_ids | ||
valueFrom: | ||
moduleMetadata: | ||
group: networking | ||
name: networking-dev | ||
key: PrivateSubnetIds | ||
- name: data_science_users | ||
value: | ||
- ds-user-1 | ||
- name: lead_data_science_users | ||
value: | ||
- lead-ds-user-1 | ||
- name: server_lifecycle_name | ||
value: studio-auto-shutdown | ||
- name: studio_bucket_name | ||
value: mlops-* | ||
- name: retain_efs | ||
value: 'False' | ||
- name: enable_custom_sagemaker_projects | ||
value: 'True' |
64 changes: 64 additions & 0 deletions
64
manifests/mlops-sagemaker-multiacc/sagemaker-templates-modules.yaml
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,64 @@ | ||
name: service-catalog | ||
path: modules/sagemaker/sagemaker-templates-service-catalog | ||
targetAccount: dev | ||
parameters: | ||
- name: portfolio-access-role-arn | ||
valueFrom: | ||
moduleMetadata: | ||
group: sagemaker-studio | ||
name: studio | ||
key: LeadDataScientistRoleArn | ||
- name: dev-account-id | ||
valueFrom: | ||
envVariable: DEV_ACCOUNT | ||
- name: dev-region | ||
valueFrom: | ||
envVariable: DEV_REGION | ||
- name: dev-vpc-id | ||
valueFrom: | ||
moduleMetadata: | ||
group: networking | ||
name: networking-dev | ||
key: VpcId | ||
- name: dev-subnet-ids | ||
valueFrom: | ||
moduleMetadata: | ||
group: networking | ||
name: networking-dev | ||
key: PrivateSubnetIds | ||
- name: pre-prod-account-id | ||
valueFrom: | ||
envVariable: PRE_PROD_ACCOUNT | ||
- name: pre-prod-region | ||
valueFrom: | ||
envVariable: PRE_PROD_REGION | ||
- name: pre-prod-vpc-id | ||
valueFrom: | ||
moduleMetadata: | ||
group: networking | ||
name: networking-pre-prod | ||
key: VpcId | ||
- name: pre-prod-subnet-ids | ||
valueFrom: | ||
moduleMetadata: | ||
group: networking | ||
name: networking-pre-prod | ||
key: PrivateSubnetIds | ||
- name: prod-account-id | ||
valueFrom: | ||
envVariable: PROD_ACCOUNT | ||
- name: prod-region | ||
valueFrom: | ||
envVariable: PROD_REGION | ||
- name: prod-vpc-id | ||
valueFrom: | ||
moduleMetadata: | ||
group: networking | ||
name: networking-prod | ||
key: VpcId | ||
- name: prod-subnet-ids | ||
valueFrom: | ||
moduleMetadata: | ||
group: networking | ||
name: networking-prod | ||
key: PrivateSubnetIds |
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,15 @@ | ||
name: ecr-sagemaker-kernel | ||
path: git::https://github.com/awslabs/idf-modules.git//modules/storage/ecr?ref=release/1.7.0&depth=1 | ||
targetAccount: dev | ||
parameters: | ||
- name: image-tag-mutability | ||
value: MUTABLE | ||
--- | ||
name: buckets | ||
path: git::https://github.com/awslabs/idf-modules.git//modules/storage/buckets?ref=release/1.7.0&depth=1 | ||
targetAccount: dev | ||
parameters: | ||
- name: encryption-type | ||
value: SSE | ||
- name: retention-type | ||
value: RETAIN |
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
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