NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

1. Update AWS Lambda stack for CustomerContactsPut,CustomerPreferencesPut using CloudFormation template.
cd AWSScripts/Lambda/CCI
aws cloudformation update-stack --stack-name esbapi-lambdacciputs-apig-stack --template-body file://LambdaPutsCCI_v1.json --parameters ParameterKey=LambdaRole,ParameterValue=arn:aws:iam::247227683711:role/LambdaRole ParameterKey=securitygroup,ParameterValue=sg-b9fedcc3 ParameterKey=SourceCodeBucketName,ParameterValue=api-esb-lambda-sourcecode ParameterKey=subnet1,ParameterValue=subnet-fb6f97a0 ParameterKey=subnet2,ParameterValue=subnet-512ef97c --tags Key=Owner,Value=esbuser --profile=saml


2. Create AWS Lambda stack for ESBLambdaHeadersDDBStreams,InsertHeadersEsbApis, commoncallerforesbapis using CloudFormation template.
cd AWSScripts/Lambda/api.wm.com/PRD
aws cloudformation create-stack --stack-name esbapi-commonlambda-prd-lambda-stack --template-body file://esb-api-prd-common-lambda.json --tags Key=Owner,Value=esbuser --profile=saml


-----DR------
3. Create AWS Lambda stack for ESBLambdaHeadersDDBStreams,InsertHeadersEsbApis, commoncallerforesbapis using CloudFormation template.
cd AWSScripts/Lambda/api.wm.com/DR
aws cloudformation create-stack --stack-name esbapi-commonlambda-dr-lambda-stack --template-body file://esb-api-dr-common-lambda.json --tags Key=Owner,Value=esbuser --profile=saml


4. Create AWS Lambda stack for jwtv3,ApiPersonalWebTokensV2 using CloudFormation template.
cd AWSScripts/Lambda/api.wm.com/PRD
aws cloudformation create-stack --stack-name esbapi-authorizers-prd-lambda-stack --template-body file://esb-api-prd-authorizers-lambda.json --tags Key=Owner,Value=esbuser --profile=saml


-----DR------
5. Create AWS Lambda stack for jwtv3,ApiPersonalWebTokensV2 using CloudFormation template.
cd AWSScripts/Lambda/api.wm.com/DR
aws cloudformation create-stack --stack-name esbapi-authorizers-dr-lambda-stack --template-body file://esb-api-dr-authorizers-lambda.json --tags Key=Owner,Value=esbuser --profile=saml


6. Create ESBLambdaHeaders Table
cd AWSScripts/DynamoDB/api.wm.com/PRD
aws cloudformation create-stack --stack-name esb-api-prd-ddb-esblambdaheaders-stack --template-body file://esb-api-prd-ddb-esblambdaheaders-streams-mapping.json --tags Key=Owner,Value=esbuser --profile saml


----DR-----Incomplete----
7. Create ESBLambdaHeaders Table
cd AWSScripts/DynamoDB/api.wm.com/DR
aws cloudformation create-stack --stack-name esb-api-dr-ddb-esblambdaheaders-stack --template-body file://esb-api-dr-ddb-esblambdaheaders-streams-mapping.json --tags Key=Owner,Value=esbuser --profile saml


8. Update PreferencesCategories-GET-OPTIONS-LambdaPermission
cd AWSScripts/APIG/CCI/Enhance
aws cloudformation update-stack --stack-name esbapi-ccipreferencescategoriesget-apig-stack --template-body file://PreferencesCategories-GET-OPTIONS-LambdaPermission.json --parameters ParameterKey=AuthorizerId,ParameterValue=n6bhfg ParameterKey=ESBAPIGatewayPreferencesResourceiId,ParameterValue=s2236i ParameterKey=ESBAPIGatewayRestApiId,ParameterValue=787s6d695m ParameterKey=PreferencesCategoriesGetFunctionWithARN,ParameterValue=arn:aws:lambda:us-east-1:247227683711:function:common_caller_for_esb_apis --tags Key=Owner,Value=esbuser --profile saml

9. Update Contacts-GET-PUT-OPTIONS-LambdaPermission
cd AWSScripts/APIG/CCI/Enhance
aws cloudformation update-stack --stack-name esbapi-ccicontactsgetput-apig-stack --template-body file://Contacts-GET-PUT-OPTIONS-LambdaPermission.json --parameters ParameterKey=AuthorizerId,ParameterValue=n6bhfg ParameterKey=ContactsGetFunctionWithARN,ParameterValue=arn:aws:lambda:us-east-1:247227683711:function:common_caller_for_esb_apis ParameterKey=ContactsPutFunctionWithARN,ParameterValue=arn:aws:lambda:us-east-1:247227683711:function:common_caller_for_esb_apis ParameterKey=ESBAPIGatewayContactsResourceiId,ParameterValue=8ccaya ParameterKey=ESBAPIGatewayRestApiId,ParameterValue=787s6d695m --tags Key=Owner,Value=esbuser --profile saml

10. Update Preferences-GET-PUT-OPTIONS-LambdaPermission
cd AWSScripts/APIG/CCI/Enhance
aws cloudformation update-stack --stack-name esbapi-ccipreferencesgetput-apig-stack --template-body file://Preferences-GET-PUT-OPTIONS-LambdaPermission.json --parameters ParameterKey=AuthorizerId,ParameterValue=n6bhfg ParameterKey=PreferencesGetFunctionWithARN,ParameterValue=arn:aws:lambda:us-east-1:247227683711:function:common_caller_for_esb_apis ParameterKey=PreferencesPutFunctionWithARN,ParameterValue=arn:aws:lambda:us-east-1:247227683711:function:common_caller_for_esb_apis ParameterKey=ESBAPIGatewayCommunicationPreferencesResourceiId,ParameterValue=nbsx5d ParameterKey=ESBAPIGatewayRestApiId,ParameterValue=787s6d695m --tags Key=Owner,Value=esbuser --profile saml

11. Create ESBAPIPRDv1
cd AWSScripts/APIG/api.wm.com/PRD
aws cloudformation create-stack --stack-name esb-api-prd-apig-enhance-common-stack --template-body file://esb-api-prd-apig-enhance-common.json --tags Key=Owner,Value=esbuser --profile saml

aws cloudformation create-stack --stack-name esb-api-prd-apig-customers-enhance-common-stack --template-body file://esb-api-prd-apig-customers-enhance-common.json --parameters ParameterKey=JWTAuthorizerId,ParameterValue=2snxwu ParameterKey=ESBTokenAuthorizerId,ParameterValue=qpa44e ParameterKey=ESBApiGatewayId,ParameterValue=u46expq4g3 ParameterKey=ESBApiGatewayCustomerId,ParameterValue=g461mc --tags Key=Owner,Value=esbuser --profile saml

aws cloudformation create-stack --stack-name esb-api-prd-apig-tokens-enhance-common-stack --template-body file://esb-api-prd-apig-tokens-enhance-common.json --parameters ParameterKey=JWTAuthorizerId,ParameterValue=2snxwu ParameterKey=ESBTokenAuthorizerId,ParameterValue=qpa44e ParameterKey=ESBApiGatewayId,ParameterValue=u46expq4g3 ParameterKey=ESBApiGatewayRootId,ParameterValue=wh825wye5f --tags Key=Owner,Value=esbuser --profile saml

aws cloudformation create-stack --stack-name esb-api-prd-apig-headers-stack --template-body file://esb-api-prd-header.json --tags Key=Owner,Value=esbuser --profile saml


12. Create ESBAPIDRv1
cd AWSScripts/APIG/api.wm.com/DR
aws cloudformation create-stack --stack-name esb-api-dr-apig-enhance-common-stack --template-body file://esb-api-dr-apig-enhance-common.json --tags Key=Owner,Value=esbuser --profile saml

aws cloudformation create-stack --stack-name esb-api-dr-apig-customers-enhance-common-stack --template-body file://esb-api-dr-apig-customers-enhance-common.json --parameters ParameterKey=JWTAuthorizerId,ParameterValue=nx6got ParameterKey=ESBTokenAuthorizerId,ParameterValue=l69efo ParameterKey=ESBApiGatewayId,ParameterValue=rxz8v5ow31 ParameterKey=ESBApiGatewayCustomerId,ParameterValue=q7wq08 --tags Key=Owner,Value=esbuser --profile saml

aws cloudformation create-stack --stack-name esb-api-dr-apig-tokens-enhance-common-stack --template-body file://esb-api-dr-apig-tokens-enhance-common.json --parameters ParameterKey=JWTAuthorizerId,ParameterValue=nx6got ParameterKey=ESBTokenAuthorizerId,ParameterValue=l69efo ParameterKey=ESBApiGatewayId,ParameterValue=rxz8v5ow31 ParameterKey=ESBApiGatewayRootId,ParameterValue=9fogkud5u8 --tags Key=Owner,Value=esbuser --profile saml

aws cloudformation create-stack --stack-name esb-api-dr-apig-headers-stack --template-body file://esb-api-dr-header.json --tags Key=Owner,Value=esbuser --profile saml


13. Create encryptlink resources in ESBAPIPRDv1
cd AWSScripts/APIG/CCI
aws cloudformation create-stack --stack-name esb-api-prd-cciencryptlink-apig-stack --template-body file://Resources_EncryptLink.json --parameters ParameterKey=ESBAPIGatewayParentId,ParameterValue=wh825wye5f ParameterKey=ESBAPIGatewayRestApiId,ParameterValue=u46expq4g3 --profile saml

14. Create EncryptLink-GET-OPTIONS-LambdaPermission in ESBAPIPRD
cd AWSScripts/APIG/CCI
aws cloudformation create-stack --stack-name esb-api-prd-cciencryptlinkget-apig-stack --template-body file://EncryptLink-GET-OPTIONS-LambdaPermission.json --parameters ParameterKey=AuthorizerId,ParameterValue=qpa44e ParameterKey=EncryptLinkGetFunctionWithARN,ParameterValue=arn:aws:lambda:us-east-1:247227683711:function:EncryptLinkGet ParameterKey=ESBAPIGatewayEncryptLinkResourceiId,ParameterValue=vxomgo ParameterKey=ESBAPIGatewayRestApiId,ParameterValue=u46expq4g3 --profile saml


-----DR------
Move Lambda from prod to dr:
Source: s3://api-esb-lambda-sourcecode/EncryptLinkGet.zip
Destination:s3://api-esb-lambda-sourcecode

-----DR------
15.Create encryptlink lambda
cd AWSScripts/Lambda/CCI
aws cloudformation create-stack --stack-name esb-api-dr-encryptlink-lambda-stack --template-body file://LambdaEncryptLinkCCI.json --parameters ParameterKey=LambdaRole,ParameterValue=arn:aws:iam::247227683711:role/LambdaRole ParameterKey=securitygroup,ParameterValue=sg-36cf6451 ParameterKey=SourceCodeBucketName,ParameterValue=api-esb-lambda-sourcecode-replica ParameterKey=subnet1,ParameterValue=subnet-5ac25a3e ParameterKey=subnet2,ParameterValue=subnet-44d1781c --profile=saml

-----DR------
16. Create encryptlink resources in ESBAPIDRv1
cd AWSScripts/APIG/CCI
aws cloudformation create-stack --stack-name esb-api-dr-cciencryptlink-apig-stack --template-body file://Resources_EncryptLink.json --parameters ParameterKey=ESBAPIGatewayParentId,ParameterValue=9fogkud5u8 ParameterKey=ESBAPIGatewayRestApiId,ParameterValue=rxz8v5ow31 --profile saml

-----DR------
17. Create EncryptLink-GET-OPTIONS-LambdaPermission in ESBAPIDRv1
cd AWSScripts/APIG/CCI
aws cloudformation create-stack --stack-name esb-api-dr-cciencryptlinkget-apig-stack --template-body file://EncryptLink-GET-OPTIONS-LambdaPermission.json --parameters ParameterKey=AuthorizerId,ParameterValue=l69efo ParameterKey=EncryptLinkGetFunctionWithARN,ParameterValue=arn:aws:lambda:us-west-1:247227683711:function:EncryptLinkGet ParameterKey=ESBAPIGatewayEncryptLinkResourceiId,ParameterValue=e97sia ParameterKey=ESBAPIGatewayRestApiId,ParameterValue=rxz8v5ow31 --profile saml


18. Create encryptlink resources in ESBAPIPRD
cd AWSScripts/APIG/CCI
aws cloudformation create-stack --stack-name esb-api-prdold-cciencryptlink-apig-stack --template-body file://Resources_EncryptLink.json --parameters ParameterKey=ESBAPIGatewayParentId,ParameterValue=phyus1tvg1 ParameterKey=ESBAPIGatewayRestApiId,ParameterValue=jjtqy3svi8 --tags Key=Owner,Value=esbuser --profile saml


19. Create EncryptLink-GET-OPTIONS-LambdaPermission in ESBAPIPRD
cd AWSScripts/APIG/CCI
aws cloudformation create-stack --stack-name esb-api-prdold-cciencryptlinkget-apig-stack --template-body file://EncryptLink-GET-OPTIONS-LambdaPermission.json --parameters ParameterKey=AuthorizerId,ParameterValue=icv3e4 ParameterKey=EncryptLinkGetFunctionWithARN,ParameterValue=arn:aws:lambda:us-east-1:247227683711:function:EncryptLinkGet ParameterKey=ESBAPIGatewayEncryptLinkResourceiId,ParameterValue=u4num6 ParameterKey=ESBAPIGatewayRestApiId,ParameterValue=jjtqy3svi8 --tags Key=Owner,Value=esbuser --profile saml



3. Point APIG ESBAPI to common Lambda
4. Include resend flag in Dynamo DB and APIG
3. Deploy API


backup:(DONOT EXECUTE)

Update Preferences-GET-PUT-OPTIONS-LambdaPermission
cd AWSScripts/APIG/CCI
aws cloudformation update-stack --stack-name esbapi-ccipreferencesgetput-apig-stack --template-body file://Preferences-GET-PUT-OPTIONS-LambdaPermission_v1.json --parameters ParameterKey=AuthorizerId,ParameterValue=n6bhfg ParameterKey=PreferencesGetFunctionWithARN,ParameterValue=arn:aws:lambda:us-east-1:247227683711:function:CustomerPreferencesGet ParameterKey=PreferencesPutFunctionWithARN,ParameterValue=arn:aws:lambda:us-east-1:247227683711:function:CustomerPreferencesPut ParameterKey=ESBAPIGatewayCommunicationPreferencesResourceiId,ParameterValue=nbsx5d ParameterKey=ESBAPIGatewayRestApiId,ParameterValue=787s6d695m --profile saml
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.