Skip to content

Commit 3264710

Browse files
committed
Change: change config.json(profile, project name)
1 parent b79b5e2 commit 3264710

File tree

9 files changed

+16
-16
lines changed

9 files changed

+16
-16
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ aws sts get-caller-identity --profile [your-profile]
8686
```json
8787
{
8888
"Project": {
89-
"Name": "MLOpsPipeline", <----- your project name, all stacks wil be prefixed with [Project.Name+Project.Stage]
89+
"Name": "MLOps", <----- your project name, all stacks wil be prefixed with [Project.Name+Project.Stage]
9090
"Stage": "Demo", <----- your project stage, all stacks wil be prefixed with [Project.Name+Project.Stage]
9191
"Account": "75157*******", <----- update according to your AWS Account
9292
"Region": "us-east-2", <----- update according to your target resion
@@ -123,7 +123,7 @@ cdk list
123123
...
124124
==> CDK App-Config File is config/app-config-demo.json, which is from Environment-Variable.
125125

126-
MLOpsPipelineDemo-ChurnXgboostPipelineStack
126+
MLOpsDemo-ChurnXgboostPipelineStack
127127

128128
...
129129
...
@@ -175,10 +175,10 @@ Just execute the following command:
175175
sh codes/glue/churn-xgboost/script/upload_input.sh config/app-config-demo.json data/request-01.csv
176176
...
177177
...
178-
upload: codes/glue/churn-xgboost/data/input.csv to s3://mlopspipelinedemo-churn-xgboost-[region]-[account 5 digits]/input/data/request-01.csv
178+
upload: codes/glue/churn-xgboost/data/input.csv to s3://mlopsdemo-churnxgboostpipelinestack-asset-[region]-[account 5 digits]/input/data/request-01.csv
179179
```
180180

181-
This command will upload `input.csv` file into S3 bucket such as `mlopspipelinedemo-churn-xgboost-[region]-[account 5 digits]` with `input/data/request-01.csv` key.
181+
This command will upload `input.csv` file into S3 bucket such as `mlopsdemo-churnxgboostpipelinestack-asset-[region]-[account 5 digits]` with `input/data/request-01.csv` key.
182182

183183
![s3-input-data](docs/asset/s3-input-data.png)
184184

@@ -211,7 +211,7 @@ sh script/deploy_stacks.sh config/app-config-demo.json
211211
sh codes/glue/churn-xgboost/script/upload_input.sh config/app-config-demo.json data/request-02.csv
212212
...
213213
...
214-
upload: codes/glue/churn-xgboost/data/input.csv to s3://mlopspipelinedemo-churn-xgboost-[region]-[account 5 digits]/input/data/request-02.csv
214+
upload: codes/glue/churn-xgboost/data/input.csv to s3://mlopsdemo-churnxgboostpipelinestack-asset-[region]-[account 5 digits]/input/data/request-02.csv
215215
```
216216

217217
Amazon SageMaker Endpoint
@@ -244,7 +244,7 @@ Before invocation, open `codes/glue/churn-xgboost/script/test_invoke.py` file, a
244244
...
245245

246246
os.environ['AWS_PROFILE'] = 'cdk-demo'
247-
_endpoint_name = 'MLOpsPipelineDemo-churn-xgboost'
247+
_endpoint_name = 'MLOpsDemo-churn-xgboost'
248248

249249
...
250250
...
@@ -282,7 +282,7 @@ python3 codes/glue/churn-xgboost/script/test_invoke.py
282282

283283
### **How to re-trigger the StateMachine in Step Functions**
284284

285-
Because a S3-event trigger is registered in `Lambda Function`, it is restarted when you upload a file with a different name(s3 key) under `input` in `mlopspipelinedemo-churn-xgboost-region-account`.
285+
Because a S3-event trigger is registered in `Lambda Function`, it is restarted when you upload a file with a different name(s3 key) under `input` in `mlopsdemo-churnxgboostpipelinestack-asset-region-account`.
286286

287287
![lambda-s3-event](docs/asset/lambda-s3-event.png)
288288

codes/glue/churn-xgboost/script/test_invoke.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import boto3
44

55

6-
os.environ['AWS_PROFILE'] = 'cdk-demo'
7-
_endpoint_name = 'MLOpsPipelineDemo-churn-xgboost'
6+
os.environ['AWS_PROFILE'] = 'cdk-v2'
7+
_endpoint_name = 'MLOpsDemo-churn-xgboost'
88

99
_input_file = 'codes/glue/churn-xgboost/data/input.csv'
1010
_sagemaker = boto3.client('sagemaker-runtime')

config/app-config-demo.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"Project": {
3-
"Name": "MLOpsPipeline",
3+
"Name": "MLOps",
44
"Stage": "Demo",
55
"Account": "75157*******",
6-
"Region": "us-east-2",
7-
"Profile": "cdk-demo"
6+
"Region": "eu-central-1",
7+
"Profile": "cdk-v2"
88
},
99

1010
"Stack": {
@@ -16,7 +16,7 @@
1616
"GlueJobFilePath": "codes/glue/churn-xgboost/src/glue_etl.py",
1717
"GlueJobTimeoutInMin": 30,
1818

19-
"TrainContainerImage": "825641698319.dkr.ecr.us-east-2.amazonaws.com/xgboost:latest",
19+
"TrainContainerImage": "813361260812.dkr.ecr.eu-central-1.amazonaws.com/xgboost:latest",
2020
"TrainParameters": {
2121
"max_depth": "5",
2222
"eval_metric": "error",

docs/asset/glue-etl-output.png

-26.1 KB
Loading

docs/asset/s3-input-data.png

-32.4 KB
Loading
-16 KB
Loading

script/deploy_stacks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export APP_CONFIG=$1
55

66
PROJECT_NAME=$(cat $APP_CONFIG | jq -r '.Project.Name') #ex> IoTData
77
PROJECT_STAGE=$(cat $APP_CONFIG | jq -r '.Project.Stage') #ex> Dev
8-
PROFILE_NAME=$(cat $APP_CONFIG | jq -r '.Project.Profile') #ex> cdk-demo
8+
PROFILE_NAME=$(cat $APP_CONFIG | jq -r '.Project.Profile') #ex> cdk-v2
99

1010
echo ==--------ConfigInfo---------==
1111
echo $APP_CONFIG

script/destroy_stacks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Configuration File Path
44
export APP_CONFIG=$1
55

6-
PROFILE_NAME=$(cat $APP_CONFIG | jq -r '.Project.Profile') #ex> cdk-demo
6+
PROFILE_NAME=$(cat $APP_CONFIG | jq -r '.Project.Profile') #ex> cdk-v2
77

88
echo ==--------ConfigInfo---------==
99
echo $APP_CONFIG

script/setup_initial.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jq --version
1212

1313
ACCOUNT=$(cat $APP_CONFIG | jq -r '.Project.Account') #ex> 123456789123
1414
REGION=$(cat $APP_CONFIG | jq -r '.Project.Region') #ex> us-east-1
15-
PROFILE_NAME=$(cat $APP_CONFIG | jq -r '.Project.Profile') #ex> cdk-demo
15+
PROFILE_NAME=$(cat $APP_CONFIG | jq -r '.Project.Profile') #ex> cdk-v2
1616

1717
echo ==--------ConfigInfo---------==
1818
echo $APP_CONFIG

0 commit comments

Comments
 (0)