Deploy service stack - Notifications
Jump to navigation
Jump to search
Deploy instructions per service
Message Config Manager (MsgCfgMng)
- Clone project and npm install
- cd \MsgCfgMng\resource
- npm install
- cd \MsgCfgMng\app
- npm install
- modify /MsgCfgMng/config/serverless.config.yml
- Prefix (optional)
- Stage (optional)
- ...
- authorizer_appLevel(hardcode): "arn:aws:lambda:us-east-2:468568093265:function:{func_name}"
- cd \MsgCfgMng\resource
- serverless deploy
- cd \MsgCfgMng\app
- serverless deploy
- modify app/src/initial_setup/config
- Edit/Add seed data to initial_setup
- re-deploy
- In AWS console invoke initial_setup lambda (Services > Lambda > MsgCfgMng...initialSetup)
- Click "test" for invoke
ActivitySwitchboard
- Clone project and npm install
- cd \ActivitySwitchboard\resource
- npm install
- cd \ActivitySwitchboard\app
- npm install
- modify /ActivitySwitchboard/config/serverless.config.yml
- Prefix (optional)
- Stage (optional)
- ...
- authorizer_appLevel(hardcode): "arn:aws:lambda:us-east-2:468568093265:function:{func_name}"
- cd \ActivitySwitchboard\resource
- serverless deploy
- cd \ActivitySwitchboard\app
- serverless deploy
- modify app/src/initial_setup/config
- Edit/Add seed data to initial_setup
- re-deploy
- In AWS console invoke initial_setup lambda (Services > Lambda > ActivitySwitchboard...initialSetup)
- Click "test" for invoke
For client:
- update client /src/config.js > apiGateway endpoint
- Get endpoint: Services > APIs > ActivitySwitchboard... > stages > ... > Invoke URL: https://{api code}.execute-api.{region}.amazonaws.com/{stage}
- Put endpoint: Test-request-web service > /src/config.js > apiGateway endpoint > ACTIVITYSWITCHBOARD: xxxxxx
Notification Manager(NotificationMgr)
- Clone project and npm install
- cd \NotificationMgr\resource
- npm install
- cd \NotificationMgr\app
- npm install
- modify /NotificationMgr/config/serverless.config.yml
- Prefix (optional)
- Stage (optional)
- ...
- authorizer_appLevel(hardcode): "arn:aws:lambda:us-east-2:468568093265:function:{func_name}"
- cd \NotificationMgr\resource
- serverless deploy
- cd \NotificationMgr\app
- serverless deploy
- modify app/src/initial_setup/config
- Edit/Add seed data to initial_setup
- re-deploy
- In AWS console invoke initial_setup lambda (Services > Lambda > NotificationMgr...initialSetup)
- Click "test" for invoke
For client:
- update client /src/config.js > apiGateway endpoint
- Get endpoint: Services > APIs > NotificationMgr... > stages > ... > Invoke URL: https://{api code}.execute-api.{region}.amazonaws.com/{stage}
- Put endpoint: Test-request-web service > /src/config.js > apiGateway endpoint > NOTIFICATIONMGR: xxxxxx
Contact Method(ContactMethodEmail)
- Clone project and npm install
- cd \ContactMethodEmail\resource
- npm install
- cd \ContactMethodEmail\app
- npm install
- modify /ContactMethodEmail/config/serverless.config.yml
- Prefix (optional)
- Stage (optional)
- ...
- authorizer_appLevel(hardcode): "arn:aws:lambda:us-east-2:468568093265:function:{func_name}"
- cd \ContactMethodEmail\resource
- serverless deploy
- cd \ContactMethodEmail\app
- serverless deploy
- modify app/src/initial_setup/config
- Edit/Add seed data to initial_setup
- re-deploy
- In AWS console invoke initial_setup lambda (Services > Lambda > ContactMethodEmail...initialSetup)
- Click "test" for invoke
For client:
- update client /src/config.js > apiGateway endpoint
- Get endpoint: Services > APIs > ContactMethodEmail... > stages > ... > Invoke URL: https://{api code}.execute-api.{region}.amazonaws.com/{stage}
- Put endpoint: Test-request-web service > /src/config.js > apiGateway endpoint > CONTACTMETHODEMAIL: xxxxxx
User Contact Manager(UsrCntMgr)
- Clone project and npm install
- cd \UsrCntMgr\resource
- npm install
- cd \UsrCntMgr\app
- npm install
- modify /UsrCntMgr/config/serverless.config.yml
- Prefix (optional)
- Stage (optional)
- ...
- authorizer_appLevel(hardcode): "arn:aws:lambda:us-east-2:468568093265:function:{func_name}"
- cd \UsrCntMgr\resource
- serverless deploy
- cd \UsrCntMgr\app
- serverless deploy
- modify app/src/initial_setup/config
- Edit/Add seed data to initial_setup
- re-deploy
- In AWS console invoke initial_setup lambda (Services > Lambda > UsrCntMgr...initialSetup)
- Click "test" for invoke
For client:
- update client /src/config.js > apiGateway endpoint
- Get endpoint: Services > APIs > UsrCntMgr... > stages > ... > Invoke URL: https://{api code}.execute-api.{region}.amazonaws.com/{stage}
- Put endpoint: Test-request-web service > /src/config.js > apiGateway endpoint > USRCNTMGR: xxxxxx
Inject seed data after deploy
If want to run seeddata immediately after deploying each service, should sequentially deploy services as follows:
- MsgCfgMng
- ActivitySwitchboard
- NotificationMgr
- ContactMethodEmail
- UsrCntMgr
Alternatively can deploy resource and app for all services and run seeddata for each service in any order.