123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564 |
- {
- "service": {
- "service": "hnw-wallpad-etl",
- "serviceObject": {
- "name": "hnw-wallpad-etl"
- },
- "provider": {
- "name": "aws",
- "runtime": "python3.8",
- "lambdaHashingVersion": "20201221",
- "stage": "dev",
- "region": "ap-northeast-2",
- "memorySize": 1024,
- "timeout": 180,
- "iamRoleStatements": [
- {
- "Effect": "Allow",
- "Action": [
- "s3:ListBucket",
- "s3:GetObject"
- ],
- "Resource": "arn:aws:s3:::homenetwork-data/*"
- },
- {
- "Effect": "Allow",
- "Action": [
- "s3:PutObject"
- ],
- "Resource": "arn:aws:s3:::hdci-wallpad-prep/*"
- }
- ],
- "environment": {
- "PREP_BUCKET": "hdci-wallpad-prep"
- },
- "variableSyntax": "\\${([^{}:]+?(?:\\(|:)(?:[^:{}][^{}]*?)?)}",
- "versionFunctions": true,
- "compiledCloudFormationTemplate": {
- "AWSTemplateFormatVersion": "2010-09-09",
- "Description": "The AWS CloudFormation template for this Serverless application",
- "Resources": {
- "ServerlessDeploymentBucket": {
- "Type": "AWS::S3::Bucket",
- "Properties": {
- "BucketEncryption": {
- "ServerSideEncryptionConfiguration": [
- {
- "ServerSideEncryptionByDefault": {
- "SSEAlgorithm": "AES256"
- }
- }
- ]
- }
- }
- },
- "ServerlessDeploymentBucketPolicy": {
- "Type": "AWS::S3::BucketPolicy",
- "Properties": {
- "Bucket": {
- "Ref": "ServerlessDeploymentBucket"
- },
- "PolicyDocument": {
- "Statement": [
- {
- "Action": "s3:*",
- "Effect": "Deny",
- "Principal": "*",
- "Resource": [
- {
- "Fn::Join": [
- "",
- [
- "arn:",
- {
- "Ref": "AWS::Partition"
- },
- ":s3:::",
- {
- "Ref": "ServerlessDeploymentBucket"
- },
- "/*"
- ]
- ]
- },
- {
- "Fn::Join": [
- "",
- [
- "arn:",
- {
- "Ref": "AWS::Partition"
- },
- ":s3:::",
- {
- "Ref": "ServerlessDeploymentBucket"
- }
- ]
- ]
- }
- ],
- "Condition": {
- "Bool": {
- "aws:SecureTransport": false
- }
- }
- }
- ]
- }
- }
- },
- "PrepDashfLogGroup": {
- "Type": "AWS::Logs::LogGroup",
- "Properties": {
- "LogGroupName": "/aws/lambda/hdci-wallpad-raw-to-prep"
- }
- },
- "IamRoleLambdaExecution": {
- "Type": "AWS::IAM::Role",
- "Properties": {
- "AssumeRolePolicyDocument": {
- "Version": "2012-10-17",
- "Statement": [
- {
- "Effect": "Allow",
- "Principal": {
- "Service": [
- "lambda.amazonaws.com"
- ]
- },
- "Action": [
- "sts:AssumeRole"
- ]
- }
- ]
- },
- "Policies": [
- {
- "PolicyName": {
- "Fn::Join": [
- "-",
- [
- "hnw-wallpad-etl",
- "dev",
- "lambda"
- ]
- ]
- },
- "PolicyDocument": {
- "Version": "2012-10-17",
- "Statement": [
- {
- "Effect": "Allow",
- "Action": [
- "logs:CreateLogStream",
- "logs:CreateLogGroup"
- ],
- "Resource": [
- {
- "Fn::Sub": "arn:${AWS::Partition}:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/lambda/hdci-wallpad-raw-to-prep:*"
- }
- ]
- },
- {
- "Effect": "Allow",
- "Action": [
- "logs:PutLogEvents"
- ],
- "Resource": [
- {
- "Fn::Sub": "arn:${AWS::Partition}:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/lambda/hdci-wallpad-raw-to-prep:*:*"
- }
- ]
- },
- {
- "$ref": "$[\"service\"][\"provider\"][\"iamRoleStatements\"][0]"
- },
- {
- "$ref": "$[\"service\"][\"provider\"][\"iamRoleStatements\"][1]"
- }
- ]
- }
- }
- ],
- "Path": "/",
- "RoleName": {
- "Fn::Join": [
- "-",
- [
- "hnw-wallpad-etl",
- "dev",
- {
- "Ref": "AWS::Region"
- },
- "lambdaRole"
- ]
- ]
- }
- }
- },
- "PrepDashfLambdaFunction": {
- "Type": "AWS::Lambda::Function",
- "Properties": {
- "Code": {
- "S3Bucket": {
- "Ref": "ServerlessDeploymentBucket"
- },
- "S3Key": "serverless/hnw-wallpad-etl/dev/1617779857545-2021-04-07T07:17:37.545Z/preprocess-hdci-wallpad-raw-to-prep.zip"
- },
- "Handler": "preprocess/lambda_function.lambda_handler",
- "Runtime": "python3.8",
- "FunctionName": "hdci-wallpad-raw-to-prep",
- "MemorySize": 1024,
- "Timeout": 180,
- "Environment": {
- "Variables": {
- "PREP_BUCKET": "hdci-wallpad-prep"
- }
- },
- "Role": {
- "Fn::GetAtt": [
- "IamRoleLambdaExecution",
- "Arn"
- ]
- }
- },
- "DependsOn": [
- "PrepDashfLogGroup"
- ]
- },
- "PrepDashfLambdaVersion6kG0JfRlaV9PcfPIfqXoZs7UXmFownZER3v6tOps6iY": {
- "Type": "AWS::Lambda::Version",
- "DeletionPolicy": "Retain",
- "Properties": {
- "FunctionName": {
- "Ref": "PrepDashfLambdaFunction"
- },
- "CodeSha256": "pzZFpQxx/iOmdihZHN62crmDKmGlSChnGjtFpayNX28="
- }
- },
- "PrepDashfCustomS31": {
- "Type": "Custom::S3",
- "Version": 1,
- "DependsOn": [
- "PrepDashfLambdaFunction",
- "CustomDashresourceDashexistingDashs3LambdaFunction"
- ],
- "Properties": {
- "ServiceToken": {
- "Fn::GetAtt": [
- "CustomDashresourceDashexistingDashs3LambdaFunction",
- "Arn"
- ]
- },
- "FunctionName": "hdci-wallpad-raw-to-prep",
- "BucketName": "homenetwork-data",
- "BucketConfigs": [
- {
- "Event": "s3:ObjectCreated:*",
- "Rules": []
- }
- ]
- }
- },
- "IamRoleCustomResourcesLambdaExecution": {
- "Type": "AWS::IAM::Role",
- "Properties": {
- "AssumeRolePolicyDocument": {
- "Version": "2012-10-17",
- "Statement": [
- {
- "Effect": "Allow",
- "Principal": {
- "Service": [
- "lambda.amazonaws.com"
- ]
- },
- "Action": [
- "sts:AssumeRole"
- ]
- }
- ]
- },
- "Policies": [
- {
- "PolicyName": {
- "Fn::Join": [
- "-",
- [
- "dev",
- "hnw-wallpad-etl",
- "custom-resources-lambda"
- ]
- ]
- },
- "PolicyDocument": {
- "Version": "2012-10-17",
- "Statement": [
- {
- "Effect": "Allow",
- "Resource": {
- "Fn::Join": [
- ":",
- [
- "arn",
- {
- "Ref": "AWS::Partition"
- },
- "s3",
- "",
- "",
- "homenetwork-data"
- ]
- ]
- },
- "Action": [
- "s3:PutBucketNotification",
- "s3:GetBucketNotification"
- ]
- },
- {
- "Effect": "Allow",
- "Resource": {
- "Fn::Join": [
- ":",
- [
- "arn",
- {
- "Ref": "AWS::Partition"
- },
- "lambda",
- {
- "Ref": "AWS::Region"
- },
- {
- "Ref": "AWS::AccountId"
- },
- "function",
- "*"
- ]
- ]
- },
- "Action": [
- "lambda:AddPermission",
- "lambda:RemovePermission"
- ]
- }
- ]
- }
- }
- ]
- }
- },
- "CustomDashresourceDashexistingDashs3LambdaFunction": {
- "Type": "AWS::Lambda::Function",
- "Properties": {
- "Code": {
- "S3Bucket": {
- "Ref": "ServerlessDeploymentBucket"
- },
- "S3Key": "serverless/hnw-wallpad-etl/dev/1617779857545-2021-04-07T07:17:37.545Z/custom-resources.zip"
- },
- "FunctionName": "hnw-wallpad-etl-undefined-custom-resource-existing-s3",
- "Handler": "s3/handler.handler",
- "MemorySize": 1024,
- "Runtime": "nodejs12.x",
- "Timeout": 180,
- "Role": {
- "Fn::GetAtt": [
- "IamRoleCustomResourcesLambdaExecution",
- "Arn"
- ]
- }
- },
- "DependsOn": [
- "IamRoleCustomResourcesLambdaExecution"
- ]
- }
- },
- "Outputs": {
- "ServerlessDeploymentBucketName": {
- "Value": {
- "Ref": "ServerlessDeploymentBucket"
- }
- },
- "PrepDashfLambdaFunctionQualifiedArn": {
- "Description": "Current Lambda function version",
- "Value": {
- "Ref": "PrepDashfLambdaVersion6kG0JfRlaV9PcfPIfqXoZs7UXmFownZER3v6tOps6iY"
- }
- }
- }
- },
- "coreCloudFormationTemplate": {
- "AWSTemplateFormatVersion": "2010-09-09",
- "Description": "The AWS CloudFormation template for this Serverless application",
- "Resources": {
- "ServerlessDeploymentBucket": {
- "Type": "AWS::S3::Bucket",
- "Properties": {
- "BucketEncryption": {
- "ServerSideEncryptionConfiguration": [
- {
- "ServerSideEncryptionByDefault": {
- "SSEAlgorithm": "AES256"
- }
- }
- ]
- }
- }
- },
- "ServerlessDeploymentBucketPolicy": {
- "Type": "AWS::S3::BucketPolicy",
- "Properties": {
- "Bucket": {
- "Ref": "ServerlessDeploymentBucket"
- },
- "PolicyDocument": {
- "Statement": [
- {
- "Action": "s3:*",
- "Effect": "Deny",
- "Principal": "*",
- "Resource": [
- {
- "Fn::Join": [
- "",
- [
- "arn:",
- {
- "Ref": "AWS::Partition"
- },
- ":s3:::",
- {
- "Ref": "ServerlessDeploymentBucket"
- },
- "/*"
- ]
- ]
- },
- {
- "Fn::Join": [
- "",
- [
- "arn:",
- {
- "Ref": "AWS::Partition"
- },
- ":s3:::",
- {
- "Ref": "ServerlessDeploymentBucket"
- }
- ]
- ]
- }
- ],
- "Condition": {
- "Bool": {
- "aws:SecureTransport": false
- }
- }
- }
- ]
- }
- }
- }
- },
- "Outputs": {
- "ServerlessDeploymentBucketName": {
- "Value": {
- "Ref": "ServerlessDeploymentBucket"
- }
- }
- }
- },
- "vpc": {}
- },
- "custom": {
- "UPLOAD_BUCKET": "hnw-wallpad-etl-dev",
- "bucket": "hnw-wallpad-etl-dev",
- "pythonRequirements": {
- "slim": true,
- "useStaticCache": true,
- "useDownloadCache": true,
- "cacheLocation": "./._cache",
- "staticCacheMaxVersions": 10,
- "noDeploy": [
- "pip",
- "setuptools",
- "boto3",
- "botocore",
- "dateutil",
- "docutils",
- "jmespath",
- "python_dateutil",
- "s3transfer",
- "six",
- "urllib3"
- ],
- "dockerizePip": "non-linux"
- }
- },
- "plugins": [
- "serverless-python-requirements"
- ],
- "pluginsData": {},
- "functions": {
- "prep-f": {
- "handler": "preprocess/lambda_function.lambda_handler",
- "module": "preprocess",
- "name": "hdci-wallpad-raw-to-prep",
- "events": [
- {
- "s3": {
- "bucket": "homenetwork-data",
- "event": "s3:ObjectCreated:*",
- "existing": true
- }
- }
- ],
- "package": {
- "artifact": ".serverless\\preprocess-hdci-wallpad-raw-to-prep.zip"
- },
- "memory": 1024,
- "timeout": 180,
- "runtime": "python3.8",
- "vpc": {},
- "versionLogicalId": "PrepDashfLambdaVersion6kG0JfRlaV9PcfPIfqXoZs7UXmFownZER3v6tOps6iY"
- }
- },
- "configValidationMode": "warn",
- "serviceFilename": "serverless.yml",
- "layers": {},
- "initialServerlessConfig": {
- "service": {
- "$ref": "$[\"service\"][\"serviceObject\"]"
- },
- "plugins": {
- "$ref": "$[\"service\"][\"plugins\"]"
- },
- "provider": {
- "$ref": "$[\"service\"][\"provider\"]"
- },
- "package": {
- "individually": true,
- "exclude": [
- "**/requirements.txt",
- "venv/**"
- ],
- "artifactDirectoryName": "serverless/hnw-wallpad-etl/dev/1617779857545-2021-04-07T07:17:37.545Z"
- },
- "custom": {
- "$ref": "$[\"service\"][\"custom\"]"
- },
- "functions": {
- "$ref": "$[\"service\"][\"functions\"]"
- }
- },
- "isDashboardMonitoringPreconfigured": false
- },
- "package": {
- "individually": true,
- "artifactDirectoryName": "serverless/hnw-wallpad-etl/dev/1617779857545-2021-04-07T07:17:37.545Z",
- "artifact": ""
- }
- }
|