Giter VIP home page Giter VIP logo

Comments (3)

sunnynazar avatar sunnynazar commented on August 18, 2024

Even i am getting the same exception but for mysql. Even though all permissions are there.

[ERROR] ClientError: An error occurred (AccessDeniedException) when calling the GetSecretValue operation: Access to KMS is not allowed
Traceback (most recent call last):
  File "/var/task/lambda_function.py", line 72, in lambda_handler
    create_secret(service_client, arn, token)
  File "/var/task/lambda_function.py", line 108, in create_secret
    current_dict = get_secret_dict(service_client, arn, "AWSCURRENT")
  File "/var/task/lambda_function.py", line 310, in get_secret_dict
    secret = service_client.get_secret_value(SecretId=arn, VersionStage=stage)
  File "/var/runtime/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/var/runtime/botocore/client.py", line 676, in _make_api_call
    raise error_class(parsed_response, operation_name)

from aws-secrets-manager-rotation-lambdas.

chrisoverzero avatar chrisoverzero commented on August 18, 2024

This error usually occurs because the KMS key attached to a secret has changed. Changing the key associated with a secret via the AWS CLI does not re-encrypt the secret using the new key. (But doing so via the console does.) Please try following the steps from AWS Premium Support to see if that resolves the issue.

from aws-secrets-manager-rotation-lambdas.

joebaro avatar joebaro commented on August 18, 2024

If, after following @chrisoverzero advice, you are still experiencing this issue please open a support case with AWS.

from aws-secrets-manager-rotation-lambdas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.