AWS boto3 : UnknownServiceError: Unknown service: 'apigatewaymanagementapi' Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experience Should we burninate the [wrap] tag?SageMaker NodeJS's SDK is not locking the API Version'Cannot find module fluent-ffmpeg' on AWS LambdaAWS Lambda function using Boto3 timeoutWhy is Lambda suddenly throwing the “Request has expired” error?Use newer version of botocore in AWS lambdaHow to return a promise to serverless-httpAWS Cognito with Serverless Local EnvironmentAWS Lambda running into UndefinedModelAttributeError errorPutObject signature issues on boto3 1.7.74 (with botocore 1.10.84) .. but not on a more recent boto3Problem creating Lambda function that has a Layer using boto3AWS Lambda Boto3 “Unknown service: 'sqs'”

Is there a Spanish version of "dot your i's and cross your t's" that includes the letter 'ñ'?

Should I call the interviewer directly, if HR aren't responding?

Should I use Javascript Classes or Apex Classes in Lightning Web Components?

Is there a way in Ruby to make just any one out of many keyword arguments required?

If 'B is more likely given A', then 'A is more likely given B'

Is it true that "carbohydrates are of no use for the basal metabolic need"?

What are the pros and cons of Aerospike nosecones?

Why did the IBM 650 use bi-quinary?

What do you call a plan that's an alternative plan in case your initial plan fails?

What would be the ideal power source for a cybernetic eye?

What causes the vertical darker bands in my photo?

Why was the term "discrete" used in discrete logarithm?

Is there a "higher Segal conjecture"?

Why is "Consequences inflicted." not a sentence?

Does surprise arrest existing movement?

When -s is used with third person singular. What's its use in this context?

How to bypass password on Windows XP account?

Models of set theory where not every set can be linearly ordered

How to assign captions for two tables in LaTeX?

What does the "x" in "x86" represent?

Why don't the Weasley twins use magic outside of school if the Trace can only find the location of spells cast?

ListPlot join points by nearest neighbor rather than order

Is a manifold-with-boundary with given interior and non-empty boundary essentially unique?

How can I make names more distinctive without making them longer?



AWS boto3 : UnknownServiceError: Unknown service: 'apigatewaymanagementapi'



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
The Ask Question Wizard is Live!
Data science time! April 2019 and salary with experience
Should we burninate the [wrap] tag?SageMaker NodeJS's SDK is not locking the API Version'Cannot find module fluent-ffmpeg' on AWS LambdaAWS Lambda function using Boto3 timeoutWhy is Lambda suddenly throwing the “Request has expired” error?Use newer version of botocore in AWS lambdaHow to return a promise to serverless-httpAWS Cognito with Serverless Local EnvironmentAWS Lambda running into UndefinedModelAttributeError errorPutObject signature issues on boto3 1.7.74 (with botocore 1.10.84) .. but not on a more recent boto3Problem creating Lambda function that has a Layer using boto3AWS Lambda Boto3 “Unknown service: 'sqs'”



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I am facing weird issue with boto3 module in AWS. I am writing serverless framework with lambda functions. I am using aws boto3 module & running below code in python. Code execution is successful when running locally but fails with UnknownServiceError when executed in AWS.



client_api = boto3.client(service_name='apigatewaymanagementapi')


After a lot of research, I found that local boto3 version is 1.9.119 and AWS boto3 version is 1.9.42. I am not too sure if this is the root cause for the issue.



I have tried installing boto3 in venv target and used that reference. No matter what, code execution fails in AWS.



I have checked if there is a way I can update aws boto3 version.



I have also tried adding boto3 as external dependency in requirements file



I have also tried adding layers with boto3 zip and mapped to the lambda function.



Unfortunately none of the solutions works. Please suggest alternate solution for this issue.










share|improve this question

















  • 1





    I'm not a python guy, but I ran into a similar issue in Node js recently. It turned out I had to pack the version I was running locally of aws-sdk with my function, so it'd use this version instead of the one provided by AWS. If you can package boto3 with your application you should also be able to fix it.

    – Thales Minussi
    Mar 22 at 8:24











  • @ThalesMinussi thanks for your response. I am trying to do the same.. However did you use layers in AWS or any script or suggestion how this can be done. Sorry I am new to AWS & can't figure out how this can be done.

    – Venkatesh
    Mar 22 at 8:27











  • stackoverflow.com/questions/55257580/… that was my question and the fix is on the answer. If python has an equivalent solution you should be fine. No, I didn't use layers at all.

    – Thales Minussi
    Mar 22 at 8:27






  • 1





    Try a deployment package containing the relevant versions of boto3 and botocore in addition to your AWS Lambda function code. Suspect botocore is the key here.

    – jarmod
    Mar 22 at 13:21

















0















I am facing weird issue with boto3 module in AWS. I am writing serverless framework with lambda functions. I am using aws boto3 module & running below code in python. Code execution is successful when running locally but fails with UnknownServiceError when executed in AWS.



client_api = boto3.client(service_name='apigatewaymanagementapi')


After a lot of research, I found that local boto3 version is 1.9.119 and AWS boto3 version is 1.9.42. I am not too sure if this is the root cause for the issue.



I have tried installing boto3 in venv target and used that reference. No matter what, code execution fails in AWS.



I have checked if there is a way I can update aws boto3 version.



I have also tried adding boto3 as external dependency in requirements file



I have also tried adding layers with boto3 zip and mapped to the lambda function.



Unfortunately none of the solutions works. Please suggest alternate solution for this issue.










share|improve this question

















  • 1





    I'm not a python guy, but I ran into a similar issue in Node js recently. It turned out I had to pack the version I was running locally of aws-sdk with my function, so it'd use this version instead of the one provided by AWS. If you can package boto3 with your application you should also be able to fix it.

    – Thales Minussi
    Mar 22 at 8:24











  • @ThalesMinussi thanks for your response. I am trying to do the same.. However did you use layers in AWS or any script or suggestion how this can be done. Sorry I am new to AWS & can't figure out how this can be done.

    – Venkatesh
    Mar 22 at 8:27











  • stackoverflow.com/questions/55257580/… that was my question and the fix is on the answer. If python has an equivalent solution you should be fine. No, I didn't use layers at all.

    – Thales Minussi
    Mar 22 at 8:27






  • 1





    Try a deployment package containing the relevant versions of boto3 and botocore in addition to your AWS Lambda function code. Suspect botocore is the key here.

    – jarmod
    Mar 22 at 13:21













0












0








0








I am facing weird issue with boto3 module in AWS. I am writing serverless framework with lambda functions. I am using aws boto3 module & running below code in python. Code execution is successful when running locally but fails with UnknownServiceError when executed in AWS.



client_api = boto3.client(service_name='apigatewaymanagementapi')


After a lot of research, I found that local boto3 version is 1.9.119 and AWS boto3 version is 1.9.42. I am not too sure if this is the root cause for the issue.



I have tried installing boto3 in venv target and used that reference. No matter what, code execution fails in AWS.



I have checked if there is a way I can update aws boto3 version.



I have also tried adding boto3 as external dependency in requirements file



I have also tried adding layers with boto3 zip and mapped to the lambda function.



Unfortunately none of the solutions works. Please suggest alternate solution for this issue.










share|improve this question














I am facing weird issue with boto3 module in AWS. I am writing serverless framework with lambda functions. I am using aws boto3 module & running below code in python. Code execution is successful when running locally but fails with UnknownServiceError when executed in AWS.



client_api = boto3.client(service_name='apigatewaymanagementapi')


After a lot of research, I found that local boto3 version is 1.9.119 and AWS boto3 version is 1.9.42. I am not too sure if this is the root cause for the issue.



I have tried installing boto3 in venv target and used that reference. No matter what, code execution fails in AWS.



I have checked if there is a way I can update aws boto3 version.



I have also tried adding boto3 as external dependency in requirements file



I have also tried adding layers with boto3 zip and mapped to the lambda function.



Unfortunately none of the solutions works. Please suggest alternate solution for this issue.







amazon-web-services aws-lambda boto3 serverless botocore






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 22 at 8:08









VenkateshVenkatesh

1,05352130




1,05352130







  • 1





    I'm not a python guy, but I ran into a similar issue in Node js recently. It turned out I had to pack the version I was running locally of aws-sdk with my function, so it'd use this version instead of the one provided by AWS. If you can package boto3 with your application you should also be able to fix it.

    – Thales Minussi
    Mar 22 at 8:24











  • @ThalesMinussi thanks for your response. I am trying to do the same.. However did you use layers in AWS or any script or suggestion how this can be done. Sorry I am new to AWS & can't figure out how this can be done.

    – Venkatesh
    Mar 22 at 8:27











  • stackoverflow.com/questions/55257580/… that was my question and the fix is on the answer. If python has an equivalent solution you should be fine. No, I didn't use layers at all.

    – Thales Minussi
    Mar 22 at 8:27






  • 1





    Try a deployment package containing the relevant versions of boto3 and botocore in addition to your AWS Lambda function code. Suspect botocore is the key here.

    – jarmod
    Mar 22 at 13:21












  • 1





    I'm not a python guy, but I ran into a similar issue in Node js recently. It turned out I had to pack the version I was running locally of aws-sdk with my function, so it'd use this version instead of the one provided by AWS. If you can package boto3 with your application you should also be able to fix it.

    – Thales Minussi
    Mar 22 at 8:24











  • @ThalesMinussi thanks for your response. I am trying to do the same.. However did you use layers in AWS or any script or suggestion how this can be done. Sorry I am new to AWS & can't figure out how this can be done.

    – Venkatesh
    Mar 22 at 8:27











  • stackoverflow.com/questions/55257580/… that was my question and the fix is on the answer. If python has an equivalent solution you should be fine. No, I didn't use layers at all.

    – Thales Minussi
    Mar 22 at 8:27






  • 1





    Try a deployment package containing the relevant versions of boto3 and botocore in addition to your AWS Lambda function code. Suspect botocore is the key here.

    – jarmod
    Mar 22 at 13:21







1




1





I'm not a python guy, but I ran into a similar issue in Node js recently. It turned out I had to pack the version I was running locally of aws-sdk with my function, so it'd use this version instead of the one provided by AWS. If you can package boto3 with your application you should also be able to fix it.

– Thales Minussi
Mar 22 at 8:24





I'm not a python guy, but I ran into a similar issue in Node js recently. It turned out I had to pack the version I was running locally of aws-sdk with my function, so it'd use this version instead of the one provided by AWS. If you can package boto3 with your application you should also be able to fix it.

– Thales Minussi
Mar 22 at 8:24













@ThalesMinussi thanks for your response. I am trying to do the same.. However did you use layers in AWS or any script or suggestion how this can be done. Sorry I am new to AWS & can't figure out how this can be done.

– Venkatesh
Mar 22 at 8:27





@ThalesMinussi thanks for your response. I am trying to do the same.. However did you use layers in AWS or any script or suggestion how this can be done. Sorry I am new to AWS & can't figure out how this can be done.

– Venkatesh
Mar 22 at 8:27













stackoverflow.com/questions/55257580/… that was my question and the fix is on the answer. If python has an equivalent solution you should be fine. No, I didn't use layers at all.

– Thales Minussi
Mar 22 at 8:27





stackoverflow.com/questions/55257580/… that was my question and the fix is on the answer. If python has an equivalent solution you should be fine. No, I didn't use layers at all.

– Thales Minussi
Mar 22 at 8:27




1




1





Try a deployment package containing the relevant versions of boto3 and botocore in addition to your AWS Lambda function code. Suspect botocore is the key here.

– jarmod
Mar 22 at 13:21





Try a deployment package containing the relevant versions of boto3 and botocore in addition to your AWS Lambda function code. Suspect botocore is the key here.

– jarmod
Mar 22 at 13:21












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55295305%2faws-boto3-unknownserviceerror-unknown-service-apigatewaymanagementapi%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55295305%2faws-boto3-unknownserviceerror-unknown-service-apigatewaymanagementapi%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript