zoukankan      html  css  js  c++  java
  • Lab_5_SysOps_Resources_Linux_v2.5

    System Operations - Lab 5: Managing Resources Using Tagging (Linux) - 2.5
    ==================================================================================================================
    
    Using this command reference.
    
    ==================================================================================================================
    
    1. Locate the section you need. Each section in this file matches a section in the lab instructions.
    
    
    2. Replace items in angle brackets - < > - with appropriate values. For example, in this command you would replace the value - <JobFlowID> - (including the brackets) with the parameter indicated in the lab instructions:
    
       elastic-mapreduce --list <JobFlowID>.
    
       You can also use find and replace to change bracketed parameters in bulk.
    
    3. Do NOT enable the Word Wrap feature in Windows Notepad or the text editor you use to view this file.
    
    
    
    ++++1. Managing Resources Using Tags++++
    
    
    ==================================================================================================================
    1.2 Find Development Instances for Project
    ==================================================================================================================
    
    1.2.1 Find all instances in account with a tag named Project, and a value of ERPSystem
    
    aws ec2 describe-instances --filter "Name=tag:Project,Values=ERPSystem"
    
    1.2.2 Limit output of above command to InstanceId
    
    aws ec2 describe-instances --filter "Name=tag:Project,Values=ERPSystem" --query 'Reservations[*].Instances[*].InstanceId'
    
    1.2.3 Include multiple selected values in command output
    
    aws ec2 describe-instances --filter "Name=tag:Project,Values=ERPSystem" --query 'Reservations[*].Instances[*].{ID:InstanceId,AZ:Placement.AvailabilityZone}'
    
    1.2.4 Include the Project tag in the output
    
    aws ec2 describe-instances --filter "Name=tag:Project,Values=ERPSystem" --query 'Reservations[*].Instances[*].{ID:InstanceId,AZ:Placement.AvailabilityZone,Project:Tags[?Key==`Project`] | [0].Value}'
    
    1.2.5 Include the Environment and Version tags in the output
    
    aws ec2 describe-instances --filter "Name=tag:Project,Values=ERPSystem" --query 'Reservations[*].Instances[*].{ID:InstanceId,AZ:Placement.AvailabilityZone,Project:Tags[?Key==`Project`] | [0].Value,Environment:Tags[?Key==`Environment`] | [0].Value,Version:Tags[?Key==`Version`] | [0].Value}'
    
    1.2.6 Add an additional filter to restrict the return results to instances whose Environment tag is set to development:
    
    aws ec2 describe-instances --filter "Name=tag:Project,Values=ERPSystem" "Name=tag:Environment,Values=development" --query 'Reservations[*].Instances[*].{ID:InstanceId,AZ:Placement.AvailabilityZone,Project:Tags[?Key==`Project`] | [0].Value,Environment:Tags[?Key==`Environment`] | [0].Value,Version:Tags[?Key==`Version`] | [0].Value}'
    
    
    ==================================================================================================================
    1.3 Change Version Tag for Development Instances
    ==================================================================================================================
    
    1.3.3 Run shell script to change Version tag on select instances
    
    ./change-resource-tags.sh
    
    1.3.4 Verify changes
    
    aws ec2 describe-instances --filter "Name=tag:Project,Values=ERPSystem" --query 'Reservations[*].Instances[*].{ID:InstanceId,AZ:Placement.AvailabilityZone,Project:Tags[?Key==`Project`] | [0].Value,Environment:Tags[?Key==`Environment`] | [0].Value,Version:Tags[?Key==`Version`] | [0].Value}'
    
    
    ++++2. Stop and Start Resources by Tag++++
    
    
    ==================================================================================================================
    2.2. Stop and Restart ERPProject Development Instances
    ==================================================================================================================
    
    2.2.1 Stop all development instances for the ERPSystem project
    
    ./stopinator.php -t"Project=ERPSystem;Environment=development"
    
    2.2.5 Restart the development instances for the ERPSystem project
    
    ./stopinator.php -t"Project=ERPSystem;Environment=development" -s
    
    
    ++++3. Challenge 1 Solution - Terminate Non-Compliant Instances++++
    
    ==================================================================================================================
    3.3. Run the Script
    ==================================================================================================================
    
    3.3.4 Run the terminate-instance.php script
    
    ./terminate-instances.php -region <region> -subnetid <subnet-id>
    
    
    漏 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 相关阅读:
    WIN8开启AHCI的方法终于得到解决。
    Androidx86入门之让你的Androidx86竖屏起来
    Android软件去广告教程
    opencv 3 core组件进阶(2 ROI区域图像叠加&图像混合;分离颜色通道、多通道图像混合;图像对比度,亮度值调整)
    opencv 4 图像处理 (1 线性滤波,非线性滤波)
    opencv 3 core组件进阶(3 离散傅里叶变换;输入输出XML和YAML文件)
    php正则指定字符串内容preg_match函数之说明
    dedecms pagelist标签修改方法
    php后台多用户权限组思路与实现程序代码
    php中获取文件后缀名多种方法
  • 原文地址:https://www.cnblogs.com/oskb/p/5943319.html
Copyright © 2011-2022 走看看