Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "Resources": {
- "discribeCustomersServiceRoleAA8DAF3A": {
- "Type": "AWS::IAM::Role",
- "Properties": {
- "AssumeRolePolicyDocument": {
- "Statement": [
- {
- "Action": "sts:AssumeRole",
- "Effect": "Allow",
- "Principal": {
- "Service": "lambda.amazonaws.com"
- }
- }
- ],
- "Version": "2012-10-17"
- },
- "ManagedPolicyArns": [
- {
- "Fn::Join": [
- "",
- [
- "arn:",
- {
- "Ref": "AWS::Partition"
- },
- ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
- ]
- ]
- }
- ]
- },
- "Metadata": {
- "aws:cdk:path": "DiscoveryStack/discribeCustomers/ServiceRole/Resource"
- }
- },
- "discribeCustomers97E0D99F": {
- "Type": "AWS::Lambda::Function",
- "Properties": {
- "Code": {
- "S3Bucket": {
- "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
- },
- "S3Key": "3c07089370c3688de077408a0d15ae3dddffe9d4c9f40051e2da65acb6e47d8c.zip"
- },
- "Environment": {
- "Variables": {
- "DB_URI": "mongodb://mongodb:27017/manage-stores-app",
- "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1"
- }
- },
- "FunctionName": "discribeCustomers",
- "Handler": "index.handler",
- "Role": {
- "Fn::GetAtt": [
- "discribeCustomersServiceRoleAA8DAF3A",
- "Arn"
- ]
- },
- "Runtime": "nodejs18.x",
- "Timeout": 29
- },
- "DependsOn": [
- "discribeCustomersServiceRoleAA8DAF3A"
- ],
- "Metadata": {
- "aws:cdk:path": "DiscoveryStack/discribeCustomers/Resource",
- "aws:asset:path": "asset.3c07089370c3688de077408a0d15ae3dddffe9d4c9f40051e2da65acb6e47d8c",
- "aws:asset:is-bundled": true,
- "aws:asset:property": "Code"
- }
- },
- "saveCustomersServiceRoleB191588C": {
- "Type": "AWS::IAM::Role",
- "Properties": {
- "AssumeRolePolicyDocument": {
- "Statement": [
- {
- "Action": "sts:AssumeRole",
- "Effect": "Allow",
- "Principal": {
- "Service": "lambda.amazonaws.com"
- }
- }
- ],
- "Version": "2012-10-17"
- },
- "ManagedPolicyArns": [
- {
- "Fn::Join": [
- "",
- [
- "arn:",
- {
- "Ref": "AWS::Partition"
- },
- ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
- ]
- ]
- }
- ]
- },
- "Metadata": {
- "aws:cdk:path": "DiscoveryStack/saveCustomers/ServiceRole/Resource"
- }
- },
- "saveCustomersA1CDF9FF": {
- "Type": "AWS::Lambda::Function",
- "Properties": {
- "Code": {
- "S3Bucket": {
- "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
- },
- "S3Key": "3a13abd82fc43ffbd484d88c7f927fd8c62ad5e7e0603cd018fd266861a99789.zip"
- },
- "Environment": {
- "Variables": {
- "DB_URI": "mongodb://mongodb:27017/manage-stores-app",
- "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1"
- }
- },
- "FunctionName": "saveCustomers",
- "Handler": "index.handler",
- "Role": {
- "Fn::GetAtt": [
- "saveCustomersServiceRoleB191588C",
- "Arn"
- ]
- },
- "Runtime": "nodejs18.x",
- "Timeout": 29
- },
- "DependsOn": [
- "saveCustomersServiceRoleB191588C"
- ],
- "Metadata": {
- "aws:cdk:path": "DiscoveryStack/saveCustomers/Resource",
- "aws:asset:path": "asset.3a13abd82fc43ffbd484d88c7f927fd8c62ad5e7e0603cd018fd266861a99789",
- "aws:asset:is-bundled": true,
- "aws:asset:property": "Code"
- }
- },
- "discribeCategoriesServiceRoleB8AA25E0": {
- "Type": "AWS::IAM::Role",
- "Properties": {
- "AssumeRolePolicyDocument": {
- "Statement": [
- {
- "Action": "sts:AssumeRole",
- "Effect": "Allow",
- "Principal": {
- "Service": "lambda.amazonaws.com"
- }
- }
- ],
- "Version": "2012-10-17"
- },
- "ManagedPolicyArns": [
- {
- "Fn::Join": [
- "",
- [
- "arn:",
- {
- "Ref": "AWS::Partition"
- },
- ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
- ]
- ]
- }
- ]
- },
- "Metadata": {
- "aws:cdk:path": "DiscoveryStack/discribeCategories/ServiceRole/Resource"
- }
- },
- "discribeCategories32473403": {
- "Type": "AWS::Lambda::Function",
- "Properties": {
- "Code": {
- "S3Bucket": {
- "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
- },
- "S3Key": "9f6d6758b47557fbf3ea97a5a80c86fbaa5b9c79b9de8220d32902ecd421b4ac.zip"
- },
- "Environment": {
- "Variables": {
- "DB_URI": "mongodb://mongodb:27017/manage-stores-app",
- "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1"
- }
- },
- "FunctionName": "discribeCategories",
- "Handler": "index.handler",
- "Role": {
- "Fn::GetAtt": [
- "discribeCategoriesServiceRoleB8AA25E0",
- "Arn"
- ]
- },
- "Runtime": "nodejs18.x",
- "Timeout": 29
- },
- "DependsOn": [
- "discribeCategoriesServiceRoleB8AA25E0"
- ],
- "Metadata": {
- "aws:cdk:path": "DiscoveryStack/discribeCategories/Resource",
- "aws:asset:path": "asset.9f6d6758b47557fbf3ea97a5a80c86fbaa5b9c79b9de8220d32902ecd421b4ac",
- "aws:asset:is-bundled": true,
- "aws:asset:property": "Code"
- }
- },
- "saveCategoriesServiceRole6F23B065": {
- "Type": "AWS::IAM::Role",
- "Properties": {
- "AssumeRolePolicyDocument": {
- "Statement": [
- {
- "Action": "sts:AssumeRole",
- "Effect": "Allow",
- "Principal": {
- "Service": "lambda.amazonaws.com"
- }
- }
- ],
- "Version": "2012-10-17"
- },
- "ManagedPolicyArns": [
- {
- "Fn::Join": [
- "",
- [
- "arn:",
- {
- "Ref": "AWS::Partition"
- },
- ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
- ]
- ]
- }
- ]
- },
- "Metadata": {
- "aws:cdk:path": "DiscoveryStack/saveCategories/ServiceRole/Resource"
- }
- },
- "saveCategories43CA66F4": {
- "Type": "AWS::Lambda::Function",
- "Properties": {
- "Code": {
- "S3Bucket": {
- "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
- },
- "S3Key": "7a63f12e6fac39fcc584cf8d7f953bd34260cb3dea1385b143e8594f20e9b422.zip"
- },
- "Environment": {
- "Variables": {
- "DB_URI": "mongodb://mongodb:27017/manage-stores-app",
- "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1"
- }
- },
- "FunctionName": "saveCategories",
- "Handler": "index.handler",
- "Role": {
- "Fn::GetAtt": [
- "saveCategoriesServiceRole6F23B065",
- "Arn"
- ]
- },
- "Runtime": "nodejs18.x",
- "Timeout": 29
- },
- "DependsOn": [
- "saveCategoriesServiceRole6F23B065"
- ],
- "Metadata": {
- "aws:cdk:path": "DiscoveryStack/saveCategories/Resource",
- "aws:asset:path": "asset.7a63f12e6fac39fcc584cf8d7f953bd34260cb3dea1385b143e8594f20e9b422",
- "aws:asset:is-bundled": true,
- "aws:asset:property": "Code"
- }
- },
- "discribeAttributesServiceRoleDD087781": {
- "Type": "AWS::IAM::Role",
- "Properties": {
- "AssumeRolePolicyDocument": {
- "Statement": [
- {
- "Action": "sts:AssumeRole",
- "Effect": "Allow",
- "Principal": {
- "Service": "lambda.amazonaws.com"
- }
- }
- ],
- "Version": "2012-10-17"
- },
- "ManagedPolicyArns": [
- {
- "Fn::Join": [
- "",
- [
- "arn:",
- {
- "Ref": "AWS::Partition"
- },
- ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
- ]
- ]
- }
- ]
- },
- "Metadata": {
- "aws:cdk:path": "DiscoveryStack/discribeAttributes/ServiceRole/Resource"
- }
- },
- "discribeAttributes78BAF421": {
- "Type": "AWS::Lambda::Function",
- "Properties": {
- "Code": {
- "S3Bucket": {
- "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
- },
- "S3Key": "aa0c0690b3ce31e35cde1f02b4561997ad4907833286854946bd440b041f72c6.zip"
- },
- "Environment": {
- "Variables": {
- "DB_URI": "mongodb://mongodb:27017/manage-stores-app",
- "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1"
- }
- },
- "FunctionName": "discribeAttributes",
- "Handler": "index.handler",
- "Role": {
- "Fn::GetAtt": [
- "discribeAttributesServiceRoleDD087781",
- "Arn"
- ]
- },
- "Runtime": "nodejs18.x",
- "Timeout": 29
- },
- "DependsOn": [
- "discribeAttributesServiceRoleDD087781"
- ],
- "Metadata": {
- "aws:cdk:path": "DiscoveryStack/discribeAttributes/Resource",
- "aws:asset:path": "asset.aa0c0690b3ce31e35cde1f02b4561997ad4907833286854946bd440b041f72c6",
- "aws:asset:is-bundled": true,
- "aws:asset:property": "Code"
- }
- },
- "saveAttributesServiceRole950608E4": {
- "Type": "AWS::IAM::Role",
- "Properties": {
- "AssumeRolePolicyDocument": {
- "Statement": [
- {
- "Action": "sts:AssumeRole",
- "Effect": "Allow",
- "Principal": {
- "Service": "lambda.amazonaws.com"
- }
- }
- ],
- "Version": "2012-10-17"
- },
- "ManagedPolicyArns": [
- {
- "Fn::Join": [
- "",
- [
- "arn:",
- {
- "Ref": "AWS::Partition"
- },
- ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
- ]
- ]
- }
- ]
- },
- "Metadata": {
- "aws:cdk:path": "DiscoveryStack/saveAttributes/ServiceRole/Resource"
- }
- },
- "saveAttributesC653E050": {
- "Type": "AWS::Lambda::Function",
- "Properties": {
- "Code": {
- "S3Bucket": {
- "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
- },
- "S3Key": "6a2fd03abff5be1456f65cb30f874f84305dfc05fdbe5fde693589aa997a10d9.zip"
- },
- "Environment": {
- "Variables": {
- "DB_URI": "mongodb://mongodb:27017/manage-stores-app",
- "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1"
- }
- },
- "FunctionName": "saveAttributes",
- "Handler": "index.handler",
- "Role": {
- "Fn::GetAtt": [
- "saveAttributesServiceRole950608E4",
- "Arn"
- ]
- },
- "Runtime": "nodejs18.x",
- "Timeout": 29
- },
- "DependsOn": [
- "saveAttributesServiceRole950608E4"
- ],
- "Metadata": {
- "aws:cdk:path": "DiscoveryStack/saveAttributes/Resource",
- "aws:asset:path": "asset.6a2fd03abff5be1456f65cb30f874f84305dfc05fdbe5fde693589aa997a10d9",
- "aws:asset:is-bundled": true,
- "aws:asset:property": "Code"
- }
- },
- "discribeProductsServiceRole8DC4F24A": {
- "Type": "AWS::IAM::Role",
- "Properties": {
- "AssumeRolePolicyDocument": {
- "Statement": [
- {
- "Action": "sts:AssumeRole",
- "Effect": "Allow",
- "Principal": {
- "Service": "lambda.amazonaws.com"
- }
- }
- ],
- "Version": "2012-10-17"
- },
- "ManagedPolicyArns": [
- {
- "Fn::Join": [
- "",
- [
- "arn:",
- {
- "Ref": "AWS::Partition"
- },
- ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
- ]
- ]
- }
- ]
- },
- "Metadata": {
- "aws:cdk:path": "DiscoveryStack/discribeProducts/ServiceRole/Resource"
- }
- },
- "discribeProducts9AB64238": {
- "Type": "AWS::Lambda::Function",
- "Properties": {
- "Code": {
- "S3Bucket": {
- "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
- },
- "S3Key": "0c42ddb66b3a1616da649d8fa1bf8dee879be76cf69f7546811d28ce2a830764.zip"
- },
- "Environment": {
- "Variables": {
- "DB_URI": "mongodb://mongodb:27017/manage-stores-app",
- "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1"
- }
- },
- "FunctionName": "discribeProducts",
- "Handler": "index.handler",
- "Role": {
- "Fn::GetAtt": [
- "discribeProductsServiceRole8DC4F24A",
- "Arn"
- ]
- },
- "Runtime": "nodejs18.x",
- "Timeout": 3600
- },
- "DependsOn": [
- "discribeProductsServiceRole8DC4F24A"
- ],
- "Metadata": {
- "aws:cdk:path": "DiscoveryStack/discribeProducts/Resource",
- "aws:asset:path": "asset.0c42ddb66b3a1616da649d8fa1bf8dee879be76cf69f7546811d28ce2a830764",
- "aws:asset:is-bundled": true,
- "aws:asset:property": "Code"
- }
- },
- "saveProductsServiceRole6320A107": {
- "Type": "AWS::IAM::Role",
- "Properties": {
- "AssumeRolePolicyDocument": {
- "Statement": [
- {
- "Action": "sts:AssumeRole",
- "Effect": "Allow",
- "Principal": {
- "Service": "lambda.amazonaws.com"
- }
- }
- ],
- "Version": "2012-10-17"
- },
- "ManagedPolicyArns": [
- {
- "Fn::Join": [
- "",
- [
- "arn:",
- {
- "Ref": "AWS::Partition"
- },
- ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
- ]
- ]
- }
- ]
- },
- "Metadata": {
- "aws:cdk:path": "DiscoveryStack/saveProducts/ServiceRole/Resource"
- }
- },
- "saveProducts22D2DD05": {
- "Type": "AWS::Lambda::Function",
- "Properties": {
- "Code": {
- "S3Bucket": {
- "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
- },
- "S3Key": "9596fde4c60543abd68e2e4f464076a3cf2dba91f895f67e7b5e38a77b8fc871.zip"
- },
- "Environment": {
- "Variables": {
- "DB_URI": "mongodb://mongodb:27017/manage-stores-app",
- "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1"
- }
- },
- "FunctionName": "saveProducts",
- "Handler": "index.handler",
- "Role": {
- "Fn::GetAtt": [
- "saveProductsServiceRole6320A107",
- "Arn"
- ]
- },
- "Runtime": "nodejs18.x",
- "Timeout": 3600
- },
- "DependsOn": [
- "saveProductsServiceRole6320A107"
- ],
- "Metadata": {
- "aws:cdk:path": "DiscoveryStack/saveProducts/Resource",
- "aws:asset:path": "asset.9596fde4c60543abd68e2e4f464076a3cf2dba91f895f67e7b5e38a77b8fc871",
- "aws:asset:is-bundled": true,
- "aws:asset:property": "Code"
- }
- },
- "inrichAttributesServiceRole518C7C8A": {
- "Type": "AWS::IAM::Role",
- "Properties": {
- "AssumeRolePolicyDocument": {
- "Statement": [
- {
- "Action": "sts:AssumeRole",
- "Effect": "Allow",
- "Principal": {
- "Service": "lambda.amazonaws.com"
- }
- }
- ],
- "Version": "2012-10-17"
- },
- "ManagedPolicyArns": [
- {
- "Fn::Join": [
- "",
- [
- "arn:",
- {
- "Ref": "AWS::Partition"
- },
- ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
- ]
- ]
- }
- ]
- },
- "Metadata": {
- "aws:cdk:path": "DiscoveryStack/inrichAttributes/ServiceRole/Resource"
- }
- },
- "inrichAttributes6F2CD79D": {
- "Type": "AWS::Lambda::Function",
- "Properties": {
- "Code": {
- "S3Bucket": {
- "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
- },
- "S3Key": "c4fd06b39b95e708ca3ae3b3ee19fe3c4a02b980cc0f4cc3d74e6dd0c3be425b.zip"
- },
- "Environment": {
- "Variables": {
- "DB_URI": "mongodb://mongodb:27017/manage-stores-app",
- "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1"
- }
- },
- "FunctionName": "inrichAttributes",
- "Handler": "index.handler",
- "Role": {
- "Fn::GetAtt": [
- "inrichAttributesServiceRole518C7C8A",
- "Arn"
- ]
- },
- "Runtime": "nodejs18.x",
- "Timeout": 29
- },
- "DependsOn": [
- "inrichAttributesServiceRole518C7C8A"
- ],
- "Metadata": {
- "aws:cdk:path": "DiscoveryStack/inrichAttributes/Resource",
- "aws:asset:path": "asset.c4fd06b39b95e708ca3ae3b3ee19fe3c4a02b980cc0f4cc3d74e6dd0c3be425b",
- "aws:asset:is-bundled": true,
- "aws:asset:property": "Code"
- }
- },
- "inrichCategoriesServiceRole53D67872": {
- "Type": "AWS::IAM::Role",
- "Properties": {
- "AssumeRolePolicyDocument": {
- "Statement": [
- {
- "Action": "sts:AssumeRole",
- "Effect": "Allow",
- "Principal": {
- "Service": "lambda.amazonaws.com"
- }
- }
- ],
- "Version": "2012-10-17"
- },
- "ManagedPolicyArns": [
- {
- "Fn::Join": [
- "",
- [
- "arn:",
- {
- "Ref": "AWS::Partition"
- },
- ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
- ]
- ]
- }
- ]
- },
- "Metadata": {
- "aws:cdk:path": "DiscoveryStack/inrichCategories/ServiceRole/Resource"
- }
- },
- "inrichCategories4A65EE84": {
- "Type": "AWS::Lambda::Function",
- "Properties": {
- "Code": {
- "S3Bucket": {
- "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
- },
- "S3Key": "52f84f26b38ca11c054dfdaa4dc8b3186d17965b35c0f066c65936371185cf14.zip"
- },
- "Environment": {
- "Variables": {
- "DB_URI": "mongodb://mongodb:27017/manage-stores-app",
- "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1"
- }
- },
- "FunctionName": "inrichCategories",
- "Handler": "index.handler",
- "Role": {
- "Fn::GetAtt": [
- "inrichCategoriesServiceRole53D67872",
- "Arn"
- ]
- },
- "Runtime": "nodejs18.x",
- "Timeout": 29
- },
- "DependsOn": [
- "inrichCategoriesServiceRole53D67872"
- ],
- "Metadata": {
- "aws:cdk:path": "DiscoveryStack/inrichCategories/Resource",
- "aws:asset:path": "asset.52f84f26b38ca11c054dfdaa4dc8b3186d17965b35c0f066c65936371185cf14",
- "aws:asset:is-bundled": true,
- "aws:asset:property": "Code"
- }
- },
- "discribeOrdersServiceRoleB50E2778": {
- "Type": "AWS::IAM::Role",
- "Properties": {
- "AssumeRolePolicyDocument": {
- "Statement": [
- {
- "Action": "sts:AssumeRole",
- "Effect": "Allow",
- "Principal": {
- "Service": "lambda.amazonaws.com"
- }
- }
- ],
- "Version": "2012-10-17"
- },
- "ManagedPolicyArns": [
- {
- "Fn::Join": [
- "",
- [
- "arn:",
- {
- "Ref": "AWS::Partition"
- },
- ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
- ]
- ]
- }
- ]
- },
- "Metadata": {
- "aws:cdk:path": "DiscoveryStack/discribeOrders/ServiceRole/Resource"
- }
- },
- "discribeOrders7CF82710": {
- "Type": "AWS::Lambda::Function",
- "Properties": {
- "Code": {
- "S3Bucket": {
- "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
- },
- "S3Key": "33d402f6ac9eddf5e512853b51a4263324c1b0a620757ad5c08b6d60562de148.zip"
- },
- "Environment": {
- "Variables": {
- "DB_URI": "mongodb://mongodb:27017/manage-stores-app",
- "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1"
- }
- },
- "FunctionName": "discribeOrders",
- "Handler": "index.handler",
- "Role": {
- "Fn::GetAtt": [
- "discribeOrdersServiceRoleB50E2778",
- "Arn"
- ]
- },
- "Runtime": "nodejs18.x",
- "Timeout": 3600
- },
- "DependsOn": [
- "discribeOrdersServiceRoleB50E2778"
- ],
- "Metadata": {
- "aws:cdk:path": "DiscoveryStack/discribeOrders/Resource",
- "aws:asset:path": "asset.33d402f6ac9eddf5e512853b51a4263324c1b0a620757ad5c08b6d60562de148",
- "aws:asset:is-bundled": true,
- "aws:asset:property": "Code"
- }
- },
- "saveOrdersServiceRole22ECCD21": {
- "Type": "AWS::IAM::Role",
- "Properties": {
- "AssumeRolePolicyDocument": {
- "Statement": [
- {
- "Action": "sts:AssumeRole",
- "Effect": "Allow",
- "Principal": {
- "Service": "lambda.amazonaws.com"
- }
- }
- ],
- "Version": "2012-10-17"
- },
- "ManagedPolicyArns": [
- {
- "Fn::Join": [
- "",
- [
- "arn:",
- {
- "Ref": "AWS::Partition"
- },
- ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
- ]
- ]
- }
- ]
- },
- "Metadata": {
- "aws:cdk:path": "DiscoveryStack/saveOrders/ServiceRole/Resource"
- }
- },
- "saveOrders74AAAAAC": {
- "Type": "AWS::Lambda::Function",
- "Properties": {
- "Code": {
- "S3Bucket": {
- "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
- },
- "S3Key": "7ed310549564af5dcbdc9d983a9d0ad8e270af8ab12f266f40f318eaec781803.zip"
- },
- "Environment": {
- "Variables": {
- "DB_URI": "mongodb://mongodb:27017/manage-stores-app",
- "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1"
- }
- },
- "FunctionName": "saveOrders",
- "Handler": "index.handler",
- "Role": {
- "Fn::GetAtt": [
- "saveOrdersServiceRole22ECCD21",
- "Arn"
- ]
- },
- "Runtime": "nodejs18.x",
- "Timeout": 3600
- },
- "DependsOn": [
- "saveOrdersServiceRole22ECCD21"
- ],
- "Metadata": {
- "aws:cdk:path": "DiscoveryStack/saveOrders/Resource",
- "aws:asset:path": "asset.7ed310549564af5dcbdc9d983a9d0ad8e270af8ab12f266f40f318eaec781803",
- "aws:asset:is-bundled": true,
- "aws:asset:property": "Code"
- }
- },
- "DisccoveryRoleC8099EC1": {
- "Type": "AWS::IAM::Role",
- "Properties": {
- "AssumeRolePolicyDocument": {
- "Statement": [
- {
- "Action": "sts:AssumeRole",
- "Effect": "Allow",
- "Principal": {
- "Service": "states.amazonaws.com"
- }
- }
- ],
- "Version": "2012-10-17"
- }
- },
- "Metadata": {
- "aws:cdk:path": "DiscoveryStack/Disccovery/Role/Resource"
- }
- },
- "DisccoveryRoleDefaultPolicyCA50C2E9": {
- "Type": "AWS::IAM::Policy",
- "Properties": {
- "PolicyDocument": {
- "Statement": [
- {
- "Action": [
- "xray:GetSamplingRules",
- "xray:GetSamplingTargets",
- "xray:PutTelemetryRecords",
- "xray:PutTraceSegments"
- ],
- "Effect": "Allow",
- "Resource": "*"
- },
- {
- "Action": "lambda:InvokeFunction",
- "Effect": "Allow",
- "Resource": [
- {
- "Fn::GetAtt": [
- "discribeAttributes78BAF421",
- "Arn"
- ]
- },
- {
- "Fn::GetAtt": [
- "discribeCategories32473403",
- "Arn"
- ]
- },
- {
- "Fn::GetAtt": [
- "discribeCustomers97E0D99F",
- "Arn"
- ]
- },
- {
- "Fn::GetAtt": [
- "discribeProducts9AB64238",
- "Arn"
- ]
- },
- {
- "Fn::GetAtt": [
- "saveAttributesC653E050",
- "Arn"
- ]
- },
- {
- "Fn::GetAtt": [
- "saveCategories43CA66F4",
- "Arn"
- ]
- },
- {
- "Fn::GetAtt": [
- "saveCustomersA1CDF9FF",
- "Arn"
- ]
- },
- {
- "Fn::GetAtt": [
- "saveProducts22D2DD05",
- "Arn"
- ]
- },
- {
- "Fn::Join": [
- "",
- [
- {
- "Fn::GetAtt": [
- "discribeAttributes78BAF421",
- "Arn"
- ]
- },
- ":*"
- ]
- ]
- },
- {
- "Fn::Join": [
- "",
- [
- {
- "Fn::GetAtt": [
- "discribeCategories32473403",
- "Arn"
- ]
- },
- ":*"
- ]
- ]
- },
- {
- "Fn::Join": [
- "",
- [
- {
- "Fn::GetAtt": [
- "discribeCustomers97E0D99F",
- "Arn"
- ]
- },
- ":*"
- ]
- ]
- },
- {
- "Fn::Join": [
- "",
- [
- {
- "Fn::GetAtt": [
- "discribeProducts9AB64238",
- "Arn"
- ]
- },
- ":*"
- ]
- ]
- },
- {
- "Fn::Join": [
- "",
- [
- {
- "Fn::GetAtt": [
- "saveAttributesC653E050",
- "Arn"
- ]
- },
- ":*"
- ]
- ]
- },
- {
- "Fn::Join": [
- "",
- [
- {
- "Fn::GetAtt": [
- "saveCategories43CA66F4",
- "Arn"
- ]
- },
- ":*"
- ]
- ]
- },
- {
- "Fn::Join": [
- "",
- [
- {
- "Fn::GetAtt": [
- "saveCustomersA1CDF9FF",
- "Arn"
- ]
- },
- ":*"
- ]
- ]
- },
- {
- "Fn::Join": [
- "",
- [
- {
- "Fn::GetAtt": [
- "saveProducts22D2DD05",
- "Arn"
- ]
- },
- ":*"
- ]
- ]
- }
- ]
- }
- ],
- "Version": "2012-10-17"
- },
- "PolicyName": "DisccoveryRoleDefaultPolicyCA50C2E9",
- "Roles": [
- {
- "Ref": "DisccoveryRoleC8099EC1"
- }
- ]
- },
- "Metadata": {
- "aws:cdk:path": "DiscoveryStack/Disccovery/Role/DefaultPolicy/Resource"
- }
- },
- "DisccoveryC4EB9E1C": {
- "Type": "AWS::StepFunctions::StateMachine",
- "Properties": {
- "DefinitionString": {
- "Fn::Join": [
- "",
- [
- "{\"StartAt\":\"invokeDiscribeCustomers\",\"States\":{\"invokeDiscribeCustomers\":{\"Next\":\"invokeSaveCustomers\",\"Retry\":[{\"ErrorEquals\":[\"Lambda.ClientExecutionTimeoutException\",\"Lambda.ServiceException\",\"Lambda.AWSLambdaException\",\"Lambda.SdkClientException\"],\"IntervalSeconds\":2,\"MaxAttempts\":6,\"BackoffRate\":2}],\"Type\":\"Task\",\"Resource\":\"arn:",
- {
- "Ref": "AWS::Partition"
- },
- ":states:::lambda:invoke\",\"Parameters\":{\"FunctionName\":\"",
- {
- "Fn::GetAtt": [
- "discribeCustomers97E0D99F",
- "Arn"
- ]
- },
- "\",\"Payload.$\":\"$\"}},\"RunAgainCustomers\":{\"Type\":\"Choice\",\"Choices\":[{\"Variable\":\"$.Payload.runAgain\",\"BooleanEquals\":true,\"Next\":\"invokeDiscribeCustomers\"}],\"Default\":\"invokeDiscribeCategories\"},\"invokeSaveCustomers\":{\"Next\":\"RunAgainCustomers\",\"Retry\":[{\"ErrorEquals\":[\"Lambda.ClientExecutionTimeoutException\",\"Lambda.ServiceException\",\"Lambda.AWSLambdaException\",\"Lambda.SdkClientException\"],\"IntervalSeconds\":2,\"MaxAttempts\":6,\"BackoffRate\":2}],\"Type\":\"Task\",\"Resource\":\"arn:",
- {
- "Ref": "AWS::Partition"
- },
- ":states:::lambda:invoke\",\"Parameters\":{\"FunctionName\":\"",
- {
- "Fn::GetAtt": [
- "saveCustomersA1CDF9FF",
- "Arn"
- ]
- },
- "\",\"Payload.$\":\"$\"}},\"invokeDiscribeCategories\":{\"Next\":\"invokeSaveCategories\",\"Retry\":[{\"ErrorEquals\":[\"Lambda.ClientExecutionTimeoutException\",\"Lambda.ServiceException\",\"Lambda.AWSLambdaException\",\"Lambda.SdkClientException\"],\"IntervalSeconds\":2,\"MaxAttempts\":6,\"BackoffRate\":2}],\"Type\":\"Task\",\"Resource\":\"arn:",
- {
- "Ref": "AWS::Partition"
- },
- ":states:::lambda:invoke\",\"Parameters\":{\"FunctionName\":\"",
- {
- "Fn::GetAtt": [
- "discribeCategories32473403",
- "Arn"
- ]
- },
- "\",\"Payload.$\":\"$\"}},\"RunAgainCategories\":{\"Type\":\"Choice\",\"Choices\":[{\"Variable\":\"$.Payload.runAgain\",\"BooleanEquals\":true,\"Next\":\"invokeDiscribeCategories\"}],\"Default\":\"invokeDiscribeAttributes\"},\"invokeSaveCategories\":{\"Next\":\"RunAgainCategories\",\"Retry\":[{\"ErrorEquals\":[\"Lambda.ClientExecutionTimeoutException\",\"Lambda.ServiceException\",\"Lambda.AWSLambdaException\",\"Lambda.SdkClientException\"],\"IntervalSeconds\":2,\"MaxAttempts\":6,\"BackoffRate\":2}],\"Type\":\"Task\",\"Resource\":\"arn:",
- {
- "Ref": "AWS::Partition"
- },
- ":states:::lambda:invoke\",\"Parameters\":{\"FunctionName\":\"",
- {
- "Fn::GetAtt": [
- "saveCategories43CA66F4",
- "Arn"
- ]
- },
- "\",\"Payload.$\":\"$\"}},\"invokeDiscribeAttributes\":{\"Next\":\"InvokeSaveAttributes\",\"Retry\":[{\"ErrorEquals\":[\"Lambda.ClientExecutionTimeoutException\",\"Lambda.ServiceException\",\"Lambda.AWSLambdaException\",\"Lambda.SdkClientException\"],\"IntervalSeconds\":2,\"MaxAttempts\":6,\"BackoffRate\":2}],\"Type\":\"Task\",\"Resource\":\"arn:",
- {
- "Ref": "AWS::Partition"
- },
- ":states:::lambda:invoke\",\"Parameters\":{\"FunctionName\":\"",
- {
- "Fn::GetAtt": [
- "discribeAttributes78BAF421",
- "Arn"
- ]
- },
- "\",\"Payload.$\":\"$\"}},\"RunAgainAttributes\":{\"Type\":\"Choice\",\"Choices\":[{\"Variable\":\"$.Payload.runAgain\",\"BooleanEquals\":true,\"Next\":\"invokeDiscribeAttributes\"}],\"Default\":\"invokeDiscribeProducts\"},\"InvokeSaveAttributes\":{\"Next\":\"RunAgainAttributes\",\"Retry\":[{\"ErrorEquals\":[\"Lambda.ClientExecutionTimeoutException\",\"Lambda.ServiceException\",\"Lambda.AWSLambdaException\",\"Lambda.SdkClientException\"],\"IntervalSeconds\":2,\"MaxAttempts\":6,\"BackoffRate\":2}],\"Type\":\"Task\",\"Resource\":\"arn:",
- {
- "Ref": "AWS::Partition"
- },
- ":states:::lambda:invoke\",\"Parameters\":{\"FunctionName\":\"",
- {
- "Fn::GetAtt": [
- "saveAttributesC653E050",
- "Arn"
- ]
- },
- "\",\"Payload.$\":\"$\"}},\"invokeDiscribeProducts\":{\"Next\":\"InvokeSaveProducts\",\"Retry\":[{\"ErrorEquals\":[\"Lambda.ClientExecutionTimeoutException\",\"Lambda.ServiceException\",\"Lambda.AWSLambdaException\",\"Lambda.SdkClientException\"],\"IntervalSeconds\":2,\"MaxAttempts\":6,\"BackoffRate\":2}],\"Type\":\"Task\",\"Resource\":\"arn:",
- {
- "Ref": "AWS::Partition"
- },
- ":states:::lambda:invoke\",\"Parameters\":{\"FunctionName\":\"",
- {
- "Fn::GetAtt": [
- "discribeProducts9AB64238",
- "Arn"
- ]
- },
- "\",\"Payload.$\":\"$\"}},\"RunAgainProducts\":{\"Type\":\"Choice\",\"Choices\":[{\"Variable\":\"$.Payload.runAgain\",\"BooleanEquals\":true,\"Next\":\"invokeDiscribeProducts\"}],\"Default\":\"END Loops Products\"},\"InvokeSaveProducts\":{\"Next\":\"RunAgainProducts\",\"Retry\":[{\"ErrorEquals\":[\"Lambda.ClientExecutionTimeoutException\",\"Lambda.ServiceException\",\"Lambda.AWSLambdaException\",\"Lambda.SdkClientException\"],\"IntervalSeconds\":2,\"MaxAttempts\":6,\"BackoffRate\":2}],\"Type\":\"Task\",\"Resource\":\"arn:",
- {
- "Ref": "AWS::Partition"
- },
- ":states:::lambda:invoke\",\"Parameters\":{\"FunctionName\":\"",
- {
- "Fn::GetAtt": [
- "saveProducts22D2DD05",
- "Arn"
- ]
- },
- "\",\"Payload.$\":\"$\"}},\"END Loops Products\":{\"Type\":\"Pass\",\"End\":true}},\"Comment\":\"Discovery menchart store data like products, customers and orders\"}"
- ]
- ]
- },
- "RoleArn": {
- "Fn::GetAtt": [
- "DisccoveryRoleC8099EC1",
- "Arn"
- ]
- },
- "TracingConfiguration": {
- "Enabled": true
- }
- },
- "DependsOn": [
- "DisccoveryRoleDefaultPolicyCA50C2E9",
- "DisccoveryRoleC8099EC1"
- ],
- "UpdateReplacePolicy": "Delete",
- "DeletionPolicy": "Delete",
- "Metadata": {
- "aws:cdk:path": "DiscoveryStack/Disccovery/Resource"
- }
- },
- "CDKMetadata": {
- "Type": "AWS::CDK::Metadata",
- "Properties": {
- "Analytics": "v2:deflate64:H4sIAAAAAAAA/1VP0WrCQBD8Ft8vW40vfa2BQsEWST8grJdVN5fsiXtRJOTfvVxsaWFhdnaGYTaHVZ7DcoE3zWztspb3MHwHtM7EUzW02O1rrMTX1Ch8JXjvxQb2Yhg7GErfkikOknDnW7b3ic7baHRdoSoFhbcJIodNbx2FDSqZOR6i/zdUA50PT6JVQHUK22T7kKt39N8Awy7Gm+Lk2ZKJxQN9oj2xpE5/+TiaktT3l+hLVaJ4ZDmm7j9C3AsvNU/Zo5m+hkZfrqtXiLNcNMqcXXoJ3BGUMz4AgJlwIEIBAAA="
- },
- "Metadata": {
- "aws:cdk:path": "DiscoveryStack/CDKMetadata/Default"
- },
- "Condition": "CDKMetadataAvailable"
- }
- },
- "Conditions": {
- "CDKMetadataAvailable": {
- "Fn::Or": [
- {
- "Fn::Or": [
- {
- "Fn::Equals": [
- {
- "Ref": "AWS::Region"
- },
- "af-south-1"
- ]
- },
- {
- "Fn::Equals": [
- {
- "Ref": "AWS::Region"
- },
- "ap-east-1"
- ]
- },
- {
- "Fn::Equals": [
- {
- "Ref": "AWS::Region"
- },
- "ap-northeast-1"
- ]
- },
- {
- "Fn::Equals": [
- {
- "Ref": "AWS::Region"
- },
- "ap-northeast-2"
- ]
- },
- {
- "Fn::Equals": [
- {
- "Ref": "AWS::Region"
- },
- "ap-south-1"
- ]
- },
- {
- "Fn::Equals": [
- {
- "Ref": "AWS::Region"
- },
- "ap-southeast-1"
- ]
- },
- {
- "Fn::Equals": [
- {
- "Ref": "AWS::Region"
- },
- "ap-southeast-2"
- ]
- },
- {
- "Fn::Equals": [
- {
- "Ref": "AWS::Region"
- },
- "ca-central-1"
- ]
- },
- {
- "Fn::Equals": [
- {
- "Ref": "AWS::Region"
- },
- "cn-north-1"
- ]
- },
- {
- "Fn::Equals": [
- {
- "Ref": "AWS::Region"
- },
- "cn-northwest-1"
- ]
- }
- ]
- },
- {
- "Fn::Or": [
- {
- "Fn::Equals": [
- {
- "Ref": "AWS::Region"
- },
- "eu-central-1"
- ]
- },
- {
- "Fn::Equals": [
- {
- "Ref": "AWS::Region"
- },
- "eu-north-1"
- ]
- },
- {
- "Fn::Equals": [
- {
- "Ref": "AWS::Region"
- },
- "eu-south-1"
- ]
- },
- {
- "Fn::Equals": [
- {
- "Ref": "AWS::Region"
- },
- "eu-west-1"
- ]
- },
- {
- "Fn::Equals": [
- {
- "Ref": "AWS::Region"
- },
- "eu-west-2"
- ]
- },
- {
- "Fn::Equals": [
- {
- "Ref": "AWS::Region"
- },
- "eu-west-3"
- ]
- },
- {
- "Fn::Equals": [
- {
- "Ref": "AWS::Region"
- },
- "il-central-1"
- ]
- },
- {
- "Fn::Equals": [
- {
- "Ref": "AWS::Region"
- },
- "me-central-1"
- ]
- },
- {
- "Fn::Equals": [
- {
- "Ref": "AWS::Region"
- },
- "me-south-1"
- ]
- },
- {
- "Fn::Equals": [
- {
- "Ref": "AWS::Region"
- },
- "sa-east-1"
- ]
- }
- ]
- },
- {
- "Fn::Or": [
- {
- "Fn::Equals": [
- {
- "Ref": "AWS::Region"
- },
- "us-east-1"
- ]
- },
- {
- "Fn::Equals": [
- {
- "Ref": "AWS::Region"
- },
- "us-east-2"
- ]
- },
- {
- "Fn::Equals": [
- {
- "Ref": "AWS::Region"
- },
- "us-west-1"
- ]
- },
- {
- "Fn::Equals": [
- {
- "Ref": "AWS::Region"
- },
- "us-west-2"
- ]
- }
- ]
- }
- ]
- }
- },
- "Outputs": {
- "ExportsOutputRefDisccoveryC4EB9E1C068F7E49": {
- "Value": {
- "Ref": "DisccoveryC4EB9E1C"
- },
- "Export": {
- "Name": "DiscoveryStack:ExportsOutputRefDisccoveryC4EB9E1C068F7E49"
- }
- }
- },
- "Parameters": {
- "BootstrapVersion": {
- "Type": "AWS::SSM::Parameter::Value<String>",
- "Default": "/cdk-bootstrap/hnb659fds/version",
- "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
- }
- },
- "Rules": {
- "CheckBootstrapVersion": {
- "Assertions": [
- {
- "Assert": {
- "Fn::Not": [
- {
- "Fn::Contains": [
- [
- "1",
- "2",
- "3",
- "4",
- "5"
- ],
- {
- "Ref": "BootstrapVersion"
- }
- ]
- }
- ]
- },
- "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
- }
- ]
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement