• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

How to set Name of EC2 instance by aws cli

March 7, 2015 by Sharad Chhetri

Today, we are sharing a quick tip on AWS cloud computing. We will learn how to set Name of EC2 instance by aws cli. This task you can also do through AWS console dashboard but as a System Administrator it is good practice to use command line.

At present AWS is top Cloud Computing provider.

Set Name of EC2 instance by aws cli

Requirement : You must have aws-cli installed in your system and AWS keys must be set as well. Read helpful AWS document to install aws-cli in your system .

Name is in other words a tag of EC2 instance. Run the below command to set the Name of EC2 instance.

Replace :
us-east-1 ## Replace with as per region where your EC2 instance is running . List of EC2 Region.
i-xxxxxxxx ## Replace with instance id of your EC2 instance
Web01 ## Replace with the Name tag you want to set for EC2 instance

aws --region us-east-1 ec2 create-tags --resources i-xxxxxxxx --tags "Key=Name,Value=Web01"

Before : The Tag Name was not set to EC2 instance, given below is screenshot.

aws

After : The Tag Name is set to EC2 instance after using the command shared in this post, given below is screenshot.

AWS

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. Attach security groups to existing instance with AWS cli
  2. Create and Remove AWS EC2 key pair by using command line
  3. How to mount s3 bucket in linux EC2 instance
  4. How to enable direct ssh to EC2 linux instance without keypair file
  5. Exam Tips : AWS Certified Solutions Architect – Associate
  6. Be carefull while using phpinfo script in EC2 beanstalk
  7. How to create multiple mysql instance in CentOS 6.4 and Red Hat 6.4
  8. How to configure multiple mysql instance in Ubuntu
  9. Nagios monitoring on AWS Autoscaling group instances
  10. Protect from SSL Drown Attack in AWS ELB, Apache and Nginx

Filed Under: AWS Tagged With: aws

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Command

What is Linux Internal And External Command

Linux Basic Commands With Examples For Every Beginner

tr command to convert lines to space , tab and vertical tab

smbpasswd command not found on CentOS 7 and RHEL 7

Solution : semanage command not found

Unix / Linux : How to print duplicate lines from file

More Posts from this Category

You Might Like These Articles!

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

libfuse

dlopen(): error loading libfuse.so.2 – Got Error On Ubuntu

Failed to open/create the internal network

VirtualBox Error: Failed to open/create the internal network

Always Useful Tips And Tricks

Keep logs of user after sudo su – : Secondary Logging

Allow wget and yum in iptable

Non interactive ,without typing password do ssh to Server : By sshpass

Convert new line to space by using sed command

GNU Screen

How to increase Password Expire date without resetting the password

How to create a file with cat command

Explore 90+ Article On "Linux Tips And Tricks"

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy