xiao/isp/AWS.docx · Web viewIt goes to New Environment Page, Choose Create Web server. On the...

Preview:

Citation preview

Steps to deploy a .NET Sample Application Using Amazon Web Services (AWS) Step 1: Set up Environmnet

1. Go to the https://aws.amazon.com/ and sign up for the AWS account.

2. Enter your billing address and credit card information. You will not be charged unless your usage exceeds the free tier limits. You will get 1year free usage for some limit you can check the free limit in https://aws.amazon.com/free/.

3. To create an Environment, Go to console.aws.amazon.com/elasticbeanstalk for the Elastic beanstalk console.

4. Choose Create New Application

5. It opens the Application Information page, Enter the Application Name and then select Next.

6. It goes to New Environment Page, Choose Create Web server.

7. On the Environment Type Page, for the predefined Configuration choose IIS

8. For the same page select Environment type as Load Balancing, auto Scaling and then go to Next

9. For the Application version page , for source select Sample application or you can upload your own .net application over here and then choose next.

10.On Environment Information Page , select all the defaults and check the availability in the Environment URL before going to next page.

11.On Additional Resource page, select choose an RDS DB instance with this environment, and choose next

12.On Configuration Details page , for the instance type select t2.micro. Accept all the defaults values for remaining fields in this page, and choose next.

13.On Environment Tag page, leave the key and value fields empty and choose next.

14.On RDS Configuration page, for the DB Engine choose sqlserver-ex. For the instance choose db.t2.micro, and you can increase the allocated storage to 20GB. Create username and password.

15.On the permission page. If you don’t have any permissions already set then it will create one for you.

16.On the review Information page, review all the settings and go to next page. See dashboard for your instance launch checking.

Step 2: Publish the Application

1. Check in the Elastic Beanstalk console to ensure environment launched successfully by checking Health status as Green.

2. Download the sample application here. In Visual Studio open BeanstalkDotNetSample.sln.

3. Download the toolkit for Visual Studios.4. After installing the downloaded file open visual studio import the

sample application. Expand Solution ‘BeanstalkDotNetSample’. Open the context (right-click) menu for MVC5App, and then choose Publish to AWS.

5 On the Publish to AWS Elastic Beanstalk page, in profile create a profile.

6 Enter the Access keyID & secret access Key found at http://aws.amazon.com/developers/access-keys/

7 Select create new application environment and choose next

8 In Application Environment page choose Url name and check the availability of that and choose next.

9 Keep the default values and choose next

10 n permission page keep the default permissions and choose next

11. In Application options page select the App Pool runtime and choose finish

12. Return to the Elastic Beanstalk console and choose the name of the application, which appears next to the environment name.

13. Just click that URL next to environment name you will get the deployed sample application.

Recommended