zoukankan      html  css  js  c++  java
  • [AWS] Deploy Sample App to Elastic Beanstalk

    Elastic Beanstalk


    In this hands-on exercise, you will use Elastic Beanstalk to deploy a web application to the cloud.

    • Pre-requisites: AWS Account
    • By the end of this lab, you will be able to deploy a web application to the cloud using Elastic Beanstalk

    Follow the exercise instructions described below:

    Step 1. Access Elastic Beanstalk service from AWS Management Console

    • From the AWS Management Console page, select the Elastic Beanstalk service.

    Launch the default Create application wizard

    • Use the Create Application wizard to create an application with the following configuration details:
    FieldValue
    Application name Your choice
    Platform Tomcat
    Use the default Platform branch and version
    Application code Sample application
    • It will create an environment for a sample application to run.

      What is an environment?
      An environment is the collection of AWS resources and permissions to allow your web application to run smoothly. The Elastic Beanstalk service manages the environment for us.

    Create a sample web application, that will run on the Tomcat webserver

    • Click the Create application button.

      Note: It will take about 10 minutes for your application, and its environment to be created.

    • Important - Observe the logs shown on your dashboard to understand the resources that are spun up to support your application. While launching the environment and deploying EC2 instances to run your application, the following resources get created automatically:

      • Amazon S3 storage bucket
      • A target group in the default VPC
      • Multiple security groups
      • An autoscaling launch configuration and an autoscaling group
      • Multiple EC2 instances
      • Multiple CloudWatch alarms
      • EC2 load balancer

      You can even see the logs of each event (success and failure) after the creation of the environment. See the snapshots below.

    Events logs while creating the environment.

    • You can change the log-level to see more detailed information. The standard log-levels in any application are trace, debug, info, warn, error, and fatal.
    • Your application is created once you see a green checkmark and the Health of your application as Ok.

    A successfully deployed application.

    • After the application is deployed successfully, copy the application’s URL that can be found against your application’s name, and paste it in a web browser like Chrome or Safari.

    Congratulations! You've deployed a sample application and learned about the resources that spun up automatically.

    Step 2. Inspect the resources created for you

    • Navigate to the EC2 console and inspect the instance that was created for you. The instance has the same name as your application. You can administer and manage this EC2 as if you created it yourself.
    • On the same EC2 dashboard, on the left-side menu pane, select the Security groups service to view the security groups (firewall rules) that got created automatically.
    • You can also navigate to the Amazon S3 service (https://console.aws.amazon.com/s3/ ) to view the S3 buckets created for the web application. All these resources are managed by the Elastic Beanstalk service.

    Step 3. Cleanup and delete resources

    To clean up the resources to avoid recurring charges, you must delete your AWS resources.

    • Delete application: Go to the Elastic Beankstalk's Applications dashboard. Click on the Actions button in the upper right-hand corner, and click on Delete application to delete your application components.
    • Delete environment: Ideally, deleting the application will also delete the associated environment. However, you can navigate back to the Elastic Beankstalk's Environments dashboard. Select your environment, if any exists. Select the Actions button in the upper-right hand corner, and click on Terminate environment to terminate your environment.
  • 相关阅读:
    图像裁剪功能,鼠标抬起移除事件,不只是想去掉鼠标抬起时的裁剪事件,重要的是jquery绑定的都是dom2级事件
    在 JavaScript 里 + 会把一些字符转化成数字
    ++[[]][+[]]+[+[]] == 10 //true
    node 接口
    windows下,node.js默认执行的根目录
    鸟速度不匀速的方法Math.sqrt(this.i++); 开根号
    rotate 里面的是弧度不是度,如果需要度则要转成度 Math.PI/180
    定义一个数,它可能为正 也可能为负 var num = Math.pow(-1,parseInt(Math.random() * 2) + 1);
    如何单独使用modelsim进行仿真
    Xilinx开发板信息
  • 原文地址:https://www.cnblogs.com/Answer1215/p/14534600.html
Copyright © 2011-2022 走看看