Deploying a .Net Application to AWS Amplify

0

I'm attempting to deploy my first application (.Net) to AWS Amplify using the AWS Toolkit. I have previously successfully run through a step-by-step to deploy a test app and it's still there in the AWS Amplify Console, but now I've come to deploying my finished app, I'm unable to deploy it. If I right-click on the project I don't see the Publish to AWS option, only Publish to AWS Elastic Beanstalk. I think this might be because I'm doing it in .Net 4.7.2, not .Net Core. However, if I select that option I get to the option to specify an environment and URL and whatever I put in I'm getting "Error during URL validation; check URL and try again".

If I create a .Core app, I do get the Publish to AWS option, but when I select it, I get the following 4 options, none of which are appropriate: ASP.Net Core App to AWS Elastic Beanstalk on Linux, ASP.NET Core App to AWS Elastic Beanstalk on Windows, ASP.NET Core App to Amazon ECS using AWS Fargate and ASP.NET Core App to AWS App Runner. There is no option to deploy to AWS Amplify. If I select the most appropriate, AWS EB on Windows, I get a message saying "Error occurred in the deployment tool"

What is the recommended approach? I'm happy to deploy manually, but surely I'd have to package the app up in some way? What options do I have?

  • Hi Nick. Are you currently trying to deploy an AWS Amplify backend function? Do you have a link for the step-by-step guide you used to deploy the test app?

  • Hi LungaZ, this is what I'm trying to do: https://www.youtube.com/watch?v=JlJ7PmNIOac.

    I really wish I could find a decent step-by-step guide to deploy to Amplify, rather than Elastic Beanstalk!

Nick
asked a year ago1968 views
1 Answer
0

Hi Nick,

AWS Amplify currently supports the following languages and frameworks:

Frontent:

  • JavaScript
  • React
  • React Native
  • Angular
  • Vue

Backend:

  • Node.js
  • Java
  • Python
  • Go
  • NET Core

To Deploy a .NET frontend application to AWS Amplify, you must first build the application from your local or source-controlled environment, then publish to something like AWS Elastic Beanstalk. You can then use the AWS Amplify Console to create an Amplify App and configure the hosting environment for your app.

To learn more about deploying to AWS Amplify, please have a look at https://docs.aws.amazon.com/amplify/latest/userguide/getting-started.html

To learn more about how to deploy .NET Core Backends to AWS Amplify, you can have a look at the blog: https://aws.amazon.com/blogs/developer/introducing-net-core-support-for-aws-amplify-backend-functions/

profile pictureAWS
LungaZ
answered a year ago
  • you don't know why I'm getting those errors though?

  • Hi Nick. Can you please share the error you are getting?

  • Nothing in the front end, but in the AWSToolkit logs when I select Publish to AWS I get: "FailedToFindElasticBeanstalkSolutionStack","Message":"Cannot use Elastic Beanstalk deployments because we cannot find a .NET Core Solution Stack to use. One possible reason could be that Elastic Beanstalk is not enabled in your region if you are using a non-default region."

    I'm also getting the message "Error during URL validation; check URL and try again" when I select Publish To Elastic Beanstalk and specify the URL

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions