self serve-infrastructure¶
Components¶
Component |
Description |
Ref |
|---|---|---|
<<config_service>> |
this is to fetch the configuration from the service json |
|
<<DynamoDB>> |
this dynamodb to store the refundRequestId |
|
<<SNS>> |
this SNS to publish the request id which is not present in the dynamodb |
|
<<SQS>> |
this sqs is pick reqestid from sns and trigger the lambda function |
|
<<Lambda>> |
this lambda function will get the value from API and process the refundRequestId |
|
<<Lambda>> |
this function will process the requestid got from sqs |
|
<<ECS Task>> |
This task will use to read file received from DataFeed for refund and then process message to SNS |
|
<<KAKFA TOPIC>> |
Kafka topic to publish auto approved refunds |
|
<<S3>> |
This bucket is used for datafeed files |
|
<<CLOUDWATCH LOG GROUP>> |
CLOUDWATCH LOG to show storepick refund salesforce adaptor logger messages |
|
<<CLOUDWATCH LOG GROUP>> |
CLOUDWATCH LOG to show storepick refund-pending request logger messages |
|
<<CLOUDWATCH LOG GROUP>> |
CLOUDWATCH LOG to show refund auto approve handler task logger messages |
Configuration(from config service)¶
Config File Name |
|---|
storepick-webshop-service.json |
Value:
{
"REFUND_REQUEST_ID_TABLE": "$ENV.xxwmm.storepick.refund.request_ids",
"OSP_BASE_URL": "https://mocks.dev.spt.digital.morconnect.com/osp",
"OSP_ORDERSREFUNDREQUEST_SERVICE_URL": "/v4",
"REFUND_REQUEST_SNS_NAME": "arn:aws:sns:eu-west-1:928369729144:sns-euw1-$ENV-storepick-refund-pending-request-001",
"REFUND_REQUEST_SNS_BATCH_SIZE": 10,
"OSP_ORDER_SERVICE_URL": "v3/morrisons/orders",
"OSP_PRODUCT_PROPOSITIONS_SERVICE_URL": "/v4/morrisons",
"SALESFORCE_CASECREATION_URL": "services/apexrest",
"SALESFORCE_BASE_URL": "https://mocks.dev.spt.digital.morconnect.com/osp/",
"REFUND_API_AUDIT_TABLE": "$ENV.xxwmm.storepick.refund.api_audit",
"OSP_REFUND_SERVICE_URL": "/v4/morrisons",
"REFUND_REQUEST_ID_TABLE_TTL_DAYS": 1,
"REFUND_API_AUDIT_TABLE_TTL_DAYS": 1,
"S3_BUCKET": "m$ENV.xxwmm.storepick.self-serve-lambdas",
"KAFKA_BROKER": "b-1.picktask-test.k8bixh.c5.kafka.eu-west-1.amazonaws.com:9094,b-2.picktask-test.k8bixh.c5.kafka.eu-west-1.amazonaws.com:9094,b-3.picktask-test.k8bixh.c5.kafka.eu-west-1.amazonaws.com:9094",
"KAFKA_TOPIC": "kafka-euw1-$ENV-digital-storepick-refund-auto-approved"
}
Attribute |
Description |
|---|---|
REFUND_REQUEST_ID_TABLE |
this get the name of the dynamodb table |
OSP_BASE_URL |
osp base url is to get the main url of the process |
OSP_ORDERREFUNDREQUEST_SERVICE_URL |
this will get the url of the API where we fetch our data |
REFUND_REQUEST_SNS_NAME |
this will provide the arn of the sns |
REFUND_REQUEST_SNS_BATCH_SIZE |
batch size for SNS publish batch |
OSP_ORDER_SERVICE_URL |
this will get the url of the API where we fetch our data |
OSP_PRODUCT_PROPOSITIONS_SERVICE_URL |
this will get the url of the API where we fetch our data |
SALESFORCE_CASECREATION_URL |
this will get the url of the API where we fetch our data |
SALESFORCE_BASE_URL |
this will get the base url of the API where we fetch our data |
REFUND_API_AUDIT_TABLE |
this get the name of the dynamodb table |
REFUND_REQUEST_ID_TABLE_TTL_DAYS |
this get the TTL for dynamodb table |
REFUND_API_AUDIT_TABLE_TTL_DAYS |
this get the TTL for dynamodb table |
S3_BUCKET_NAME |
this gives the S3 bucket name |
OSP_REFUND_SERVICE_URL |
this will get the url of the API where we fetch our data |
KAFKA_BROKER |
this will give the kafka broker |
KAFKA_TOPIC |
this will give the kafka topic to write data in kafka |
AWS Dynamodb¶
Environment |
dynamodb |
|---|---|
dev |
dev.xxwmm.storepick.refund.request_ids |
sit |
sit.xxwmm.storepick.refund.request_ids |
prd |
prd.xxwmm.storepick.refund.request_ids |
AWS SNS¶
Environment |
SNS |
|---|---|
dev |
sns-euw1-dev-storepick-refund-pending-request |
sit |
sns-euw1-sit-storepick-refund-pending-request |
prd |
sns-euw1-prd-storepick-refund-pending-request |
AWS SQS¶
Environment |
SQS |
|---|---|
dev |
sns-euw1-dev-storepick-refund-pending-request-001 |
sit |
sns-euw1-sit-storepick-refund-pending-request-001 |
prd |
sns-euw1-prd-storepick-refund-pending-request-001 |
AWS Lambda¶
Environment |
Lambda |
|---|---|
dev |
lmb-euw1-dev-storepick-refund-pending-request-001 |
sit |
lmb-euw1-sit-storepick-refund-pending-request-001 |
prd |
lmb-euw1-prd-storepick-refund-pending-request-001 |
AWS Lambda¶
Environment |
Lambda |
|---|---|
dev |
lmb-euw1-dev-storepick-refund-salesforce-adaptor-001 |
sit |
lmb-euw1-sit-storepick-refund-salesforce-adaptor-001 |
prd |
lmb-euw1-prd-storepick-refund-salesforce-adaptor-001 |
AWS ECS¶
Environment |
ECS Fargate Task |
|---|---|
dev |
storepick-ecs-refund-auto-approve-handler-task-dev-002 |
sit |
storepick-ecs-refund-auto-approve-handler-task-sit-002 |
prd |
storepick-ecs-refund-auto-approve-handler-task-prd-002 |
KAFKA TOPIC¶
Environment |
Kafka |
|---|---|
dev |
kafka-euw1-dev-digital-storepick-refund-auto-approved |
sit |
kafka-euw1-sit-digital-storepick-refund-auto-approved |
prd |
kafka-euw1-prd-digital-storepick-refund-auto-approved |
AWS S3¶
Environment |
AWS S3 |
|---|---|
dev |
mdev.xxwmm.storepick.self-serve-lambdas |
sit |
msit.xxwmm.storepick.self-serve-lambdas |
prd |
mprd.xxwmm.storepick.self-serve-lambdas |
STOREPICK REFUND SALESFORCE ADAPTOR CLOUDWATCH LOG¶
Environment |
Cloudwatch Log Group |
|---|---|
dev |
lmb-euw1-dev-storepick-refund-salesforce-adapter-001 |
sit |
lmb-euw1-sit-storepick-refund-salesforce-adapter-001 |
prd |
lmb-euw1-prd-storepick-refund-salesforce-adapter-001 |
STOREPICK REFUND PENDING REQUEST CLOUDWATCH LOG¶
Environment |
Cloudwatch Log Group |
|---|---|
dev |
lmb-euw1-dev-storepick-refund-pending-request-001 |
sit |
lmb-euw1-sit-storepick-refund-pending-request-001 |
prd |
lmb-euw1-prd-storepick-refund-pending-request-001 |
REFUND AUTO APPROVE HANDLER TASK CLOUDWATCH LOG¶
Environment |
Cloudwatch Log Group |
|---|---|
dev |
clg-euw1-dev-storepick-webshop-refund-auto-approve-handler-task-002 |
sit |
clg-euw1-sit-storepick-webshop-refund-auto-approve-handler-task-002 |
prd |
clg-euw1-prd-storepick-webshop-refund-auto-approve-handler-task-002 |