Questions tagged with DevOps

Content language: English

Sort by most recent

Browse through the questions and answers listed below or filter and sort to narrow down your results.

Concurrent executions of Lambda functions

I would like to understand how many calls of a Lambda function, through AWS-SDK, I can perform simultaneously. Now I am a free tier and it seems that I can't performe more than 10 concurrently executions. In my project, each client is going to make running a function and so the number of concurrently executions that my aws account can performe would be equal to the number of clients that my web app can serve simultaneously. I will be fine with 1000 at the beginning. Is it possible? How many concurrently executions my aws account (if not anymore free tier) could manage of a single function and overall through all functions by default? I will use Europe (Milano) region. With my account, right now, I can performe 10 concurrent executions of my function. I attached my concurrency data in the image:![Enter image description here](/media/postImages/original/IMS9LLlqoWQcqO9cDBFWBcOw) And my code:; import AWS from 'aws-sdk'; AWS.config.update({ accessKeyId: 'idKey', secretAccessKey: 'SecretKey', region: 'eu-west-3', }); const lambda = new AWS.Lambda(); var Utente = {feature: "feature"}; const params = { FunctionName: 'Lambda', Payload: JSON.stringify(Utente) }; ˙ lambda.updateFunctionConfiguration({ FunctionName: 'Lambda', Environment: { Variables: {} } }).promise(); function Invokation(params){ lambda.invoke(params, (error, data) => { if (error) { console.log(error) } else { console.log("OK") } }) }; for (let index = 0; index < 20; index++) { console.log(index); Invokation(params); }
1
answers
0
votes
29
views
asked 10 days ago

Getting error "Request is missing Authentication Token" on serverless deploy for af-south-1 region

We are using buildspec and serverless to deploy our lambdas to was. It was working fine till early morning India time. But in post build, started seeing the error "Request is missing Authentication Token". `` ``` version: 0.2 phases: install: commands: - npm install -g serverless@3.13.0 build: commands: - env="dev" && region="af-south-1" - echo $CODEBUILD_WEBHOOK_HEAD_REF - if [ "$CODEBUILD_WEBHOOK_HEAD_REF" = "refs/heads/main" ]; then env="prod"; elif [ "$CODEBUILD_WEBHOOK_HEAD_REF" = "refs/heads/uat" ]; then env="uat"; elif [ "$CODEBUILD_WEBHOOK_HEAD_REF" = "refs/heads/dev" ]; then env="dev"; fi - npm install - npm run build - rm -rf node_modules - npm install --production post_build: commands: - env="dev" && region="af-south-1" - echo $CODEBUILD_WEBHOOK_HEAD_REF - if [ "$CODEBUILD_WEBHOOK_HEAD_REF" = "refs/heads/main" ]; then env="prod"; elif [ "$CODEBUILD_WEBHOOK_HEAD_REF" = "refs/heads/uat" ]; then env="uat"; elif [ "$CODEBUILD_WEBHOOK_HEAD_REF" = "refs/heads/dev" ]; then env="dev"; region="af-south-1"; elif [ "$CODEBUILD_WEBHOOK_HEAD_REF" = "refs/heads/stage" ]; then env="stage"; fi - echo "deploying for env=$env region=$region" - serverless deploy --stage $env --region $region --verbose ``` Here's the error we are getting. ``` [Container] 2022/11/28 10:36:58 Running command serverless deploy --stage $env --region $region --verbose To ensure safe major version upgrades ensure "frameworkVersion" setting in service configuration (recommended setup: "frameworkVersion: ^3.13.0") Warning: Invalid configuration encountered at 'provider': unrecognized property 'package' Learn more about configuration validation here: http://slss.io/configuration-validation Deploying test-authorizer to stage dev (af-south-1) Excluding development dependencies for service package × Stack test-authorizer-dev failed to deploy (0s) ``` We tried to deploy on us-east-1, but it worked, it just stopped working for af-south-1 Checked the following already 1. Checking the deploy role for right permissions 2. Checking the STS token - it is active 3. Also tried to change the deployment environment on codebuild. It didn't work
1
answers
2
votes
54
views
HBL9
asked 11 days ago
2
answers
0
votes
25
views
asked 12 days ago