I'm getting error while deploying 'not authorized to perform: iam:CreateRole on resource'
@Sonny02765 жыл бұрын
Great Video. Thank you for posting.
@mikimikis4204 жыл бұрын
Where i need to specify in the project\publish cmd, what is my user\pass? or in another words, how it knows to which account of AWS to publish the api.
@FullStackDev4 жыл бұрын
If you have the AWS toolkit installed, you will see a tab in visual studio where you can configure the credentials. Also you can type AWS configure in cmd, you will need to pass user id and secret which can be found in AWS console, under your profile
@MrAbugaarith4 жыл бұрын
I get an error - Warning unable to determine the region for bucket inventory-x...then A socket operation was attempted to an unreachable network
@joelleon87124 жыл бұрын
i had an error, when trying to run the command dotnet, i have aws cli installed Failed to run because the specified command or file was not found. Some of the possible causes are: * You misspelled an integrated dotnet command. * You tried to run a .NET Core program, but dotnet-lambda does not exist. * You plan to run a global tool, but an executable with dotnet prefix with this name was not found in the PATH.
@dark666link4 жыл бұрын
Maybe this can help you: Run dotnet tool install -g Amazon.Lambda.Tools
@vivekgowda15763 жыл бұрын
@@dark666link Thank you. It works for me
@AmitKumar-nk9xr4 жыл бұрын
Good one.. Thanks..... Okay :)
@mikimikis4204 жыл бұрын
hey, i got a problem when i type "dotnet lambda deploy-serverless -cfg aws-lambda-tools-defaults.json -pcfg true" its return me red error: could not execute because the specified command or file was not found. possible reasons for this include: *you misspelled a built-in dotnet command. *you intended to execute a .NET Core program, but dotnet-lambda does not exist, *you intended to run a global tool. but a dotnet-prefixed executable with this name could not be found on the PATH. i try to run this command: dotnet tool install --global dotnet-ef and then rerun the previous, did not help, got the same error. thanks
@FullStackDev4 жыл бұрын
Hey! First what you can try is to type dotnet -version. If it also returns the same error it means that you don’t have installed .NET core on your machine, or you don’t have added it to PATH environment variable.
@mikimikis4204 жыл бұрын
@@FullStackDev did not get an error. got all the details after running dotnet --version command. 3.1.0 In the PATH variable i have this: C:\Users\miki\.dotnet\tools UPDATE: found the solution, need to run this command: dotnet tool install -g Amazon.Lambda.Tools
@oleksiiriabyshev60694 жыл бұрын
@@mikimikis420 I've got the same error. Your solution works fine for me. Thanks.
@calendil3 жыл бұрын
@@mikimikis420 Thank you for sharing your solution, it worked for me too!
@Cristian0205913 жыл бұрын
@@mikimikis420 Thanks.
@TheKIXX1235 жыл бұрын
Sorry i got a problem when i type: "dotnet lambda deploy-serverless -cfg aws-lambda-tools-defaults.json -pcfg true" I got the error called: " No executable file found for the "dotnet-lambda" command." Could you help ???
@FullStackDev5 жыл бұрын
Hey! Checkout the post here on github: github.com/aws/aws-extensions-for-dotnet-cli/issues/88 Generally you need to add dotnet tools to PATH environment variable. Let me know if it worked for you! :)
@TheKIXX1235 жыл бұрын
@@FullStackDev It works thank you !!!!
@g0gEN3 жыл бұрын
Also you can run "dotnet tool install -g Amazon.Lambda.Tools" in shell
@vk-pr7yg4 жыл бұрын
I am getting Error while uploading "A socket operation was attempted to an unreachable host"
@aasthapathak2424 жыл бұрын
Does it get resolved by any means??
@johnm2873 жыл бұрын
Getting the following error when running the "dotnet lambda..." command: Error uploading to InventoryManager/Get-CodeUri-Or-ImageUri-637582226717726242-637582226753291125.zip in bucket inventory-manager-bucket-jm: Value cannot be null. Parameter name: Options property cannot be empty: ClientName I was able to get the serverless script to run by right clicking on the project in VS and selecting "Publish to AWS Lambda"
@vuralmecbur99584 жыл бұрын
wow, the constant emphasis on every word is disturbing.
@rizwanyousaf46674 жыл бұрын
I'm getting error while deploying 'not authorized to perform: iam:CreateRole on resource'