aws / aws-extensions-for-dotnet-cli

Extensions to the dotnet CLI to simplify the process of building and publishing .NET Core applications to AWS services
Apache License 2.0
371 stars 87 forks source link

NET 5 AWS Lambda Support with Container Images #148

Closed genifycom closed 3 years ago

genifycom commented 3 years ago

Currently trying out:

https://aws.amazon.com/blogs/developer/net-5-aws-lambda-support-with-container-images/

Section

AWS CloudFormation deployment support

The publish to AWS Lambda appears to work, the docker image builds and uploads and is listed in the ECR repository and the aspnetcorefuction is listed in the ECR images .

But the Visual Studio build log shows CREATE_FAILED

Unable to determine service/operation name to be authorized (Service AWSLambdaInternal: Status Code: 403; Error Code: AccessDeniedException: Request xxxxxxxxx; Proxy: null).

Is this to do with my permissions or something else?

genifycom commented 3 years ago

Could this have to do with regions?

I can successfully publish in us-east-1 but I get the previous error when publishing to us-west-1

normj commented 3 years ago

Could you include the publish log from Visual Studio into this issue?

brunolauze commented 3 years ago

I can confirm like ca-central-1 is having the same error, just switching to us-east-1 made it. with the command line in a github actions, so I think it's only something about CloudFormation template? New schema not available in other regions yet? One must understand, it's like 6 days old...

normj commented 3 years ago

The Lambda container image launch post mentioned that support was added to a few regions initially and more coming soon.

You can use container images to deploy your Lambda functions today in US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Tokyo), Asia Pacific (Singapore), Europe (Ireland), Europe (Frankfurt), South America (São Paulo). We are working to add support in more Regions soon.

https://aws.amazon.com/blogs/aws/new-for-aws-lambda-container-image-support/

I do wish we had a better error message, sorry about that.

ashishdhingra commented 3 years ago

Please keep track of Lambda announcements to check when the support is available in other regions. Closing this issue for now.

github-actions[bot] commented 3 years ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.