amazon-connect / amazon-connect-salesforce-scv

This repository contains resources, examples, and projects to help Service Cloud Voice customers address some common requirements as they deploy Service Cloud Voice.
Apache License 2.0
52 stars 54 forks source link

SFHolidayCalendar - Template not working #158

Open ragheb opened 1 year ago

ragheb commented 1 year ago

Hello,

The installation of cloudformation sfhc.yaml does not work anymore. the error message during installation : CloudFormation did not receive a response from your Custom Resource. Please check your logs for requestId [5b7656b9-3464-466e-946f-f54ac5e0b90d]. If you are using the Python cfn-response module, you may need to update your Lambda function code so that CloudFormation can attach the updated version.

when I debug the lambda SFCalendarAssociation, I get the error message below. { "errorMessage": "Unable to import module 'associate_lambda': cannot import name 'DEFAULTCIPHERS' from 'urllib3.util.ssl' (/tmp/urllib3/util/ssl_.py)", "errorType": "Runtime.ImportModuleError", "requestId": "2154c3f4-03ce-4345-9ff0-154e4ae938db", "stackTrace": [] }

Sincerely, Ragheb GMIRA

WalidANS commented 1 year ago

Hello,

I have the same issue. The name of the lambda is the following : SFCalendarAssociation

Here are the error that I have :

WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts

[ERROR] Runtime.ImportModuleError: Unable to import module 'associate_lambda': cannot import name 'DEFAULTCIPHERS' from 'urllib3.util.ssl' (/tmp/urllib3/util/ssl_.py) Traceback (most recent call last)

Kind regards, Walid

inesakt commented 1 year ago

Hello,

I'm experiencing the same issue with the installation of cloudformation sfhc.yaml.

ragheb commented 1 year ago

Hello @dougjaso

Kindly note that I found a similar issue on Github that was resolved by downgrading the urllib3 dependency version.

References: [1] - https://github.com/psf/requests/blob/main/HISTORY.md#2300-2023-05-03 [2] - https://github.com/psf/requests/issues/6443

dougjaso commented 1 year ago

For those implementing this against Service Cloud Voice, there is a new version in the works that re-uses the rest api integration from Salesforce, and is a bit cleaner. I have not updated this deployment package yet, but instructions on how to deploy the new version manually can be found here. I will be replacing this version with the content from that workshop as a CloudFormation template next week.