// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`test lambda task construct 1`] = ` { "Parameters": { "AssetParameters7f8a28135926e236abcf6230f1fe0a163a37a28e3dcd147d41bb1d4c9bb04566ArtifactHash77EFF9E3": { "Description": "Artifact hash for asset "7f8a28135926e236abcf6230f1fe0a163a37a28e3dcd147d41bb1d4c9bb04566"", "Type": "String", }, "AssetParameters7f8a28135926e236abcf6230f1fe0a163a37a28e3dcd147d41bb1d4c9bb04566S3BucketCEE53B1D": { "Description": "S3 bucket for asset "7f8a28135926e236abcf6230f1fe0a163a37a28e3dcd147d41bb1d4c9bb04566"", "Type": "String", }, "AssetParameters7f8a28135926e236abcf6230f1fe0a163a37a28e3dcd147d41bb1d4c9bb04566S3VersionKey4FECF295": { "Description": "S3 key for asset version "7f8a28135926e236abcf6230f1fe0a163a37a28e3dcd147d41bb1d4c9bb04566"", "Type": "String", }, }, "Resources": { "StepFuncWorkflowStackLambdaFunctionEA7C37F1": { "DependsOn": [ "StepFuncWorkflowStackLambdaFunctionServiceRoleDefaultPolicyC18D2E91", "StepFuncWorkflowStackLambdaFunctionServiceRoleD7BAFDA7", ], "Metadata": { "cfn_nag": { "rules_to_suppress": [ { "id": "W58", "reason": "Lambda functions has the required permission to write CloudWatch Logs. It uses custom policy instead of arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole with tighter permissions.", }, { "id": "W89", "reason": "This is not a rule for the general case, just for specific use cases/industries", }, { "id": "W92", "reason": "Impossible for us to define the correct concurrency for clients", }, ], }, }, "Properties": { "Code": { "S3Bucket": { "Ref": "AssetParameters7f8a28135926e236abcf6230f1fe0a163a37a28e3dcd147d41bb1d4c9bb04566S3BucketCEE53B1D", }, "S3Key": { "Fn::Join": [ "", [ { "Fn::Select": [ 0, { "Fn::Split": [ "||", { "Ref": "AssetParameters7f8a28135926e236abcf6230f1fe0a163a37a28e3dcd147d41bb1d4c9bb04566S3VersionKey4FECF295", }, ], }, ], }, { "Fn::Select": [ 1, { "Fn::Split": [ "||", { "Ref": "AssetParameters7f8a28135926e236abcf6230f1fe0a163a37a28e3dcd147d41bb1d4c9bb04566S3VersionKey4FECF295", }, ], }, ], }, ], ], }, }, "Environment": { "Variables": { "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1", }, }, "Handler": "index.handler", "Role": { "Fn::GetAtt": [ "StepFuncWorkflowStackLambdaFunctionServiceRoleD7BAFDA7", "Arn", ], }, "Runtime": "nodejs14.x", "TracingConfig": { "Mode": "Active", }, }, "Type": "AWS::Lambda::Function", }, "StepFuncWorkflowStackLambdaFunctionServiceRoleD7BAFDA7": { "Properties": { "AssumeRolePolicyDocument": { "Statement": [ { "Action": "sts:AssumeRole", "Effect": "Allow", "Principal": { "Service": "lambda.amazonaws.com", }, }, ], "Version": "2012-10-17", }, "Policies": [ { "PolicyDocument": { "Statement": [ { "Action": [ "logs:CreateLogGroup", "logs:CreateLogStream", "logs:PutLogEvents", ], "Effect": "Allow", "Resource": { "Fn::Join": [ "", [ "arn:", { "Ref": "AWS::Partition", }, ":logs:", { "Ref": "AWS::Region", }, ":", { "Ref": "AWS::AccountId", }, ":log-group:/aws/lambda/*", ], ], }, }, ], "Version": "2012-10-17", }, "PolicyName": "LambdaFunctionServiceRolePolicy", }, ], }, "Type": "AWS::IAM::Role", }, "StepFuncWorkflowStackLambdaFunctionServiceRoleDefaultPolicyC18D2E91": { "Metadata": { "cfn_nag": { "rules_to_suppress": [ { "id": "W12", "reason": "Lambda needs the following minimum required permissions to send trace data to X-Ray and access ENIs in a VPC.", }, ], }, }, "Properties": { "PolicyDocument": { "Statement": [ { "Action": [ "xray:PutTraceSegments", "xray:PutTelemetryRecords", ], "Effect": "Allow", "Resource": "*", }, ], "Version": "2012-10-17", }, "PolicyName": "StepFuncWorkflowStackLambdaFunctionServiceRoleDefaultPolicyC18D2E91", "Roles": [ { "Ref": "StepFuncWorkflowStackLambdaFunctionServiceRoleD7BAFDA7", }, ], }, "Type": "AWS::IAM::Policy", }, }, } `;