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!

asked 2 years ago2.9K views
1 Answer
0
  • AWS Elastic Beanstalk Suitable for .NET 4.7.2. --> Package your app and deploy it. Investigate URL validation issues.
  • AWS Amplify --> Primarily for front-end apps (like React). Not ideal for .NET Core. Consider separate front-end.
  • Manual Deployment --> Package your app (ZIP file) and deploy to Elastic Beanstalk, EC2, or Lambda.
  • AWS CDK --> Define infrastructure as code using CDK and deploy via CLI.
  • AWS CodeDeploy --> Automate deployments to EC2 instances or on-premises servers.
  • AWS Lambda --> For serverless architecture, deploy individual functions.
profile picture
EXPERT
answered 10 months ago

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