Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Deployment Failed - SolutionHelperFunction #117

Open
RDurkin-GitHub opened this issue Oct 30, 2023 · 8 comments
Open

Deployment Failed - SolutionHelperFunction #117

RDurkin-GitHub opened this issue Oct 30, 2023 · 8 comments

Comments

@RDurkin-GitHub
Copy link

Hi

When deploying the Cloudformation template. I am getting the following error with the logical ID SolutionHelperFunction.

Resource handler returned message: "Error occurred while GetObject. S3 Error Code: NoSuchKey. S3 Error Message: The specified key does not exist. (Service: Lambda, Status Code: 400, Request ID: e09e4840-b9ca-4905-a71b-5a3e39c7bc86)" (RequestToken: 5308925e-dee0-76bf-e35e-0969aec20026, HandlerErrorCode: InvalidRequest)

Regards Richard

@davelemons
Copy link
Contributor

Can you let us know how your are deploying the solution. Are you using the Main branch or Development branch? Based on the info below we recommend using the updated templates found here

Starting in April 2023 Amazon S3 made a change to set the Bucket Owner Enforced Setting to be enabled for any newly completed buckets which disables ACLs. Since this solution uses Default ACLs, this new default will prevent the CloudFormation stack from deploying. More Information....

The main and development branches have been updated to account for the recent S3 changes. Updated CloudFormation Templates and deployment instructions can be found here

@RDurkin-GitHub
Copy link
Author

Hi

I had AWS to have a look as to why it is failing and they said that it was looking for the following file: "aws-connect-vm. zip"

@RDurkin-GitHub
Copy link
Author

you need to ensure that the right s3 file( aws-connect-vm. zip) is added as part of the prefix deployment/aws-connect-vm-serverless/) in order to resolve the issue

@RDurkin-GitHub
Copy link
Author

image

@RDurkin-GitHub
Copy link
Author

I can not find this file that it is referencing

@virtualgill
Copy link

virtualgill commented Nov 14, 2023

Hi Richard,

Are you by any chance attempting to deploy the cloudformation templates in https://github.com/amazon-connect/voicemail-for-amazon-connect/blob/master/deployment directly? The file you are missing is created as part of the build process, so if you are wanting to deploy from your own S3 bucket make sure to follow the instructions here: https://github.com/amazon-connect/voicemail-for-amazon-connect/blob/master/README.md#building-distributable-for-customization

Alternatively, as Dave as referenced, you can download and use the templates here: https://aws-contact-center-blog.s3.us-west-2.amazonaws.com/voicemail-s3-default-acl-issue/vmv1s3fix.zip which has alternate cloudformation files and updated README.

Let me know if using one of those methods fixes your issue.

@karl-mentzer
Copy link

@virtualgill @davelemons - I have previously discussed this solution with Luke W extensively before his departure so pretty familiar with it, and I tested this myself tonight as part of an upgrade for a client (to change the Bucket versioning for the logging bucket as its generating unnecessary data) as well as adding a retention policy to the recording bucket and removing versioning there also.

I found that both the aws-connect-vm.zip and the voicemail-for-amazon-connect.template file were not generated / uploaded to the bucket during the build process so it does appear to be an issue. Suggest testing with a fresh build.

@RDurkin-GitHub
Copy link
Author

Hi

When I build it (https://github.com/amazon-connect/voicemail-for-amazon-connect/blob/master/README.md#building-distributable-for-customization), it doesn't have both files mentioned above.
When I try with the link https://aws-contact-center-blog.s3.us-west-2.amazonaws.com/voicemail-s3-default-acl-issue/vmv1s3fix.zip, it fails as well with the aws-connect-vm.zip error.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants