Or choose Create New to create a new service. Service - Select one of the services in the drop-down to deploy your container into an existing service. To use the Fargate launch type, see Deploying an ASP.NET Core 2.0 Application to Amazon ECS (Fargate). You can create an ECS cluster using the AWS Management Console. Launch Configuration pageĮCS Cluster - Pick the cluster that will run your Docker image. Use dotnet ecs deploy from your project directory to deploy and dotnet ecs publish the container. Save settings to aws-docker-tools-defaults.json and configure project for command line deployment - Check this option if you want the flexibility of deploying from the command line. Use this deployment option when your application is meant to be long-running (like an ASP.NET Core 2.0 web application). Tags can track important details like version, options or other unique configuration elements of the Docker container.ĭeployment - Select Service on an ECS Cluster. Tag - Select an existing tag or type in the name of a new tag. This is the repository the built container image is pushed to. Profile and region are used to set up your deployment environment resources and select the default Docker registry.Ĭonfiguration - Select the Docker image build configuration.ĭocker Repository - Choose an existing Docker repository or type in the name of a new repository and it will be created. Publish Container to AWS WizardĪccount profile to use - Select an account profile to use. You can also select Publish Container to AWS on the Visual Studio Build menu. To deploy an ASP.NET Core 2.0 containerized application targeting Linux, right-click the project in the Solution Explorer and select Publish Container to AWS. In Visual Studio, create (or open) a project for an ASP.NET Core 2.0 containerized app targeting Linux.Īccessing the Publish Container to AWS wizard.Create an Amazon ECS cluster based on the needs of your web application.You have a few different installation options including Docker for Windows. Specify your AWS credentials and get setup with Amazon ECS.Before you publish your containerīefore using the Publish Container to AWS to deploy your ASP.NET Core 2.0 application: Because a web application is meant run continuously, it will be deployed as a service. This section describes how to use the Publish Container to AWS wizard, provided as part of the Toolkit for Visual Studio, to deploy a containerized ASP.NET Core 2.0 application targeting Linux through Amazon ECS using the EC2 launch type. Deploying an ASP.NET Core 2.0 App to Amazon ECS (EC2)
0 Comments
Leave a Reply. |