zoukankan      html  css  js  c++  java
  • [AWS] Lab

    In this hands-on exercise, you will launch a virtual server in the cloud within a secure network. You will also manage additional storage options for your server.

    1. Prerequisites: AWS Account

    2. By the end of this lab, you will be able to:

      • Launch a secure EC2 (Elastic Cloud Compute) instance within a VPC (Virtual Private Cloud)
      • Manage an EBS volume

    Instructions:

    Step 1. Create a VPC

    • From the AWS Management Console page, select the VPC service.
    • Use the Launch VPC Wizard to create a VPC with a Single Public Subnet. You can use the following field-values, and leave the remaining values as the defaults: 
    FieldValue
    VPC name {Your choice}
    Availability Zone Select the first AZ from the dropdown

      

    • Verify that you should see the newly created VPC in the Your VPCs service shown on the VPC Dashboard. Note the Name / VPC ID of the newly created VPC.

    Step 2. Launch an EC2 instance, and attach an EBS volume

    • Navigate to the EC2 console page: Click on Services in the upper left-hand menu, type EC2 in the text box, and select the EC2 service.

    • On the EC2 Dashboard page, select the Instances services in the left-hand navigation pane.

    • Use the Launch Instance wizard to launch an instance with the following configuration, and leave the remaining values as the defaults:
    StageConfigurationValue
    1. Amazon Machine Image (AMI) Amazon Linux 2 AMI (HVM), SSD Volume Type
    Note: You have chosen a Free Tier Eligible AMI
    2. Instance Type t2.micro
    3. Configure Instance Details  
      a. Number of Instances 1
      b. Network Select the VPC that was created in the previous step
      c. Subnet Default
    4. Storage  
      a. Root volume Default
      a. Additional volume EBS volume
    (8GiB, General purpose SSD-gp2, deletes on termination)
    5. Tags Optional
    6. Security Group Default. Rule with 0.0.0.0/0 source will allow all IP
    addresses to access your instance.
    • Generate and download a new key pair, at the last stage of the Launch Instance wizard.
      Important: This key-pair will allow you to log into your instance, using SSH, from your local machine. Save the key-pair carefully, because the same private key cannot be re-generated.

    • Verify that you should see the newly created EC2 instance in the Instances services. Check the instance state, it should say running.

      Congratulations! You’ve launched your first virtual server in the cloud.

    Step 3. Cleanup & Disable EC2 Instance

    To avoid recurring charges for leaving an instance running, let’s disable the EC2 instance and terminate the VPC

    • From the EC2 Dashboard, select the instance just created, click on the Instance State button on top-right, and then select Terminate instance.
    • From the EC2 Dashboard, select the Volumes services on the left navigation pane, and view the list of all existing EBS volumes in your account. You must delete the volumes created during the current exercise.
    • From the VPC Dashboard, select the VPC just created, click on the Actions button on top-right, then select Delete VPC.
  • 相关阅读:
    JavaScript 的定时(Timing )事件——setTimeout()与setInterval()
    HTML5+CSS3制作无限滚动与文字跳动效果
    动画属性与过渡属性与渐变属性(全)
    JavaScript 数组2—关联数组
    JavaScript 数组1—索引数组
    什么是JavaScript循环结构?
    JavaScript分支结构Ⅱ—switch-case
    JavaScript分支结构Ⅰ—IF-ELSE
    JavaScript 正则表达式——预定义类,边界,量词,贪婪模式,非贪婪模式,分组,前瞻
    SEO搜索引擎优化是什么?
  • 原文地址:https://www.cnblogs.com/Answer1215/p/14533173.html
Copyright © 2011-2022 走看看