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

Update ResetLimitFunctionRole prod permissions #115

Open
MehulKChaudhari opened this issue Aug 5, 2024 · 0 comments
Open

Update ResetLimitFunctionRole prod permissions #115

MehulKChaudhari opened this issue Aug 5, 2024 · 0 comments
Assignees

Comments

@MehulKChaudhari
Copy link
Member

MehulKChaudhari commented Aug 5, 2024

Issue Description

We are adding a feature to change the API limit. programmatically and once the limit is updated we are again starting the Lambda's. For that, we need set the reversed concurrency to unreserved.

permission changes

  1. Visit this policy Lambdas-PutFunctionConcurrency-all-ffb-lamdas
    and edit it to as below to add a permission to delete the concurrency of lambda's. and attach this policy to new lambda ResetLimitFunction role
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "lambda:PutFunctionConcurrency",
                "lambda:DeleteFunctionConcurrency"
            ],
            "Resource": "arn:aws:lambda:ap-south-1:181388287005:function:FeatureFlagBackendProd*"
        }
    ]
}

We are deleting the reserved concurrency which is set to 0 so that the lambda's don't serve any requests after that in order to make the lambda's working again we need delete the concurrency so by default it becomes unreserved. for that we need a remission lambda:DeleteFunctionConcurrency

  1. Also add this policy dynamodb-get-put-item to new lambda ResetLimitFunction role
@MehulKChaudhari MehulKChaudhari changed the title Update RateLimiterFunctionRole permissions Update RateLimiterFunctionRole prod permissions Sep 4, 2024
@MehulKChaudhari MehulKChaudhari changed the title Update RateLimiterFunctionRole prod permissions Update ResetLimitFunctionRole prod permissions Sep 4, 2024
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