Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Voicemail Express Email - Url not working in eu-central-1 region #172

Open
bnirwan opened this issue May 7, 2024 · 3 comments
Open

Voicemail Express Email - Url not working in eu-central-1 region #172

bnirwan opened this issue May 7, 2024 · 3 comments

Comments

@bnirwan
Copy link

bnirwan commented May 7, 2024

Got the SES email for the voicemail. When i click listen to voicemail it gives error -

SignatureDoesNotMatch The request signature we calculated does not match the signature you provided. Check your key and signing method.

Can you please check ?

I am using the template version - 2024.02.28

@bnirwan
Copy link
Author

bnirwan commented May 7, 2024

I debugged the presigned function. The url generated is giving the same error. So looks like presigner function has some error which is causing this.

Appreciate if you take a look. Thanks

@dougjaso
Copy link
Contributor

dougjaso commented May 7, 2024

Make the following change:

In the presigner code, find:

    try:
        my_config = Config(
            region_name = os.environ['aws_region'],
            signature_version = 's3v4',
            retries = {
                'max_attempts': 10,
                'mode': 'standard'
            }
        )

        client = boto3.client(
            's3',
            aws_access_key_id = use_keys['vmx_iam_key_id'],
            aws_secret_access_key = use_keys['vmx_iam_key_secret'],
            config=my_config
        )

and change to:

    try:

        use_region = os.environ['aws_region']

        my_config = Config(
            region_name = use_region,
            signature_version = 's3v4',
            retries = {
                'max_attempts': 10,
                'mode': 'standard'
            }
        )

        client = boto3.client(
            's3',
            endpoint_url = 'https://s3.' + use_region + '.amazonaws.com',
            aws_access_key_id = use_keys['vmx_iam_key_id'],
            aws_secret_access_key = use_keys['vmx_iam_key_secret'],
            config=my_config
        )

That should correct the problem.

@bnirwan
Copy link
Author

bnirwan commented May 8, 2024

Thank you. Its working now.
Is the issue already fixed in new template which we can use or this is manual step required always?

Or its needed only for eu-central-1 region.

Thanks for helping us out. Appreciate it.

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

No branches or pull requests

2 participants