AWSTemplateFormatVersion: "2010-09-09" Description: Deploys the AWS Lambda function required to process the Salesforce response for Extension Routing. Parameters: AWSS3BucketPrefix: Type: String Default: '' Description: Not required and only used for development purposes. AWSRegion: Type: String Default: us-east-1 AllowedValues: - us-east-1 - us-west-2 - ap-southeast-1 - ap-southeast-2 - ap-northeast-1 - eu-central-1 - eu-west-2 Description: The region code that you are deploying to. This should be the same region that your Amazon Connect instance is deployed to. MAKE SURE that you have your console currently set to this region. ConnectInstanceName: Type: String Default: REPLACEME Description: Provide the instance name for Amazon Connect. AWSSCVCommonRole: Type: String Default: REPLACEME Description: ARN of the awsscv_common_role role AWSSCVCommonLambdaPythonLayer: Type: String Default: REPLACEME Description: ARN of the common python layer sfConfig: Type: String Default: REPLACEME Description: ARN for your Salesforce config in AWS Secrets Manager Resources: awsscvextensionroutingquery: Type: AWS::Lambda::Function Properties: Code: S3Bucket: !Join - '' - - !Ref AWSS3BucketPrefix - 'awsscv-supporting-code-' - !Ref AWSRegion S3Key: awsscv_sf_query.zip Description: Uses Salesforce REST API to query for agent id Environment: Variables: sf_config_sm_arn: Ref: sfConfig FunctionName: !Join - '' - - 'awsscv_extension_routing_query_cti_' - !Ref ConnectInstanceName Handler: awsscv_sf_query.lambda_handler Layers: [!Ref AWSSCVCommonLambdaPythonLayer] Role: !Ref AWSSCVCommonRole Runtime: python3.8 Timeout: 8