How to query EC2 instance by "tag" "Filtering" effectively?

Source: Internet
Author: User
Keywords Console instance query

Amazon has launched an important new feature for the AWS Management Console (AWS Management Console), according to a blog post from its official website. Now the user can find multiple instances through tag and attribute filtering, with some advanced options, including reverse search, local search, and regular expressions to find the multiple instances you are looking for.

As a user of Amazon's resilient Cloud Computing (EC2), you may know how easy it is to open EC2 instances based on your requirements. Perhaps you start by manually starting an instance or two instances, and then turning to the AWS Cloudformation case, automatic scaling, or the template for the current mode publishing instance.

Instance label

Regardless of how users start them, users may want to track the owners within the instance (development, test, production, etc.), and other instance properties. Tags are especially important when the user's instance grows to hundreds of or even thousands. Amazon has long supported EC2 instances (and other resources) tags. As users may already know, users can add up to 10 tags (name/value pairs) for multiple types of AWS resources. Although it is possible to sort by a label like a tag, it is clear that there is room for improvement! With the new features released today, the user can assign to the instance's property tag to find out if the user is looking for one or more instances.

Querying using tags and property features

When Jeff wrote this article, he initiated 10 EC2 instances, adding model and owner tags to each instance (supplementing the default name, and then configuring the tabs displayed by the console and their values:


New filtering devices offer many options. Jeff will try to show all the projects.


In the following list, Jeff filters the instance by using the label assigned in the instance. First Jeff will do some simple examples, and then there will be some complicated examples. For example, when Jeff finds an instance, he can only recall part of the instance ID (which was once a very popular search method). Jeff goes into the filter and presses ENTER to find its partial ID ("2a27"):


For example, Jeff wanted to find all the owners he listed in the instance. Jeff looked for guidance by clicking on the Filter box:


Jeff selects the owner as the label and then selects from the displayed content:


Here's the result:


If Jeff only wants to see the "prodiction" model in the owner, he can choose to add a second filter:


Jeff can also filter with the properties of any instance. For example, Jeff can easily find instances where all users are in a stopped state:


Of course, Jeff can use the label on the filter to combine with the instance. Jeff can find all of the stop instances:


Jeff can use a reverse search to find someone else stopping the instance. (Jeff will prefix the exclamation point):


Jeff can also use regular expressions to find examples of what Kelly and Andy have:


Jeff can also do partial matching to compensate for inconsistent naming:


Jeff can even filter the date to find an instance that is ahead or behind a specific time:


Finally, the filter information is displayed in the console URL so that users can mark the filter or share it with colleagues:


Original link: http://aws.amazon.com/cn/blogs/aws/ec2-search-filter/

If you need to know the latest AWS information or technical documentation to access the AWS Chinese technology community, if you have more questions please ask at the AWS Technology Forum and experts will answer later.

Subscribe to the "AWS Chinese technology Community" micro-credit public number, real-time command of AWS technology and product information!

The AWS Chinese technology community provides an Amazon Web service technical Exchange platform for the vast majority of developers, pushing the latest news, technical videos, technical documents, wonderful technical blogs and other related highlights from AWS, as well as having AWS community experts to communicate with you directly! Join the AWS Chinese technology community to quickly and better understand the AWS cloud computing technology.

(Translator/li Zebian/yuping)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.