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

sharadchhetri

AI, Linux, Cloud and DevOps

  • Home
  • Resources
    • Learn Linux
    • Articles
  • My Projects & Work
    • My Nagios Plugin
    • My Dockerhub Repo
    • My WordPress plugins
    • My Github Repos
  • Facebook Page
  • Contact
  • Privacy Policy
  • About Me
You are here: Home / AWS / How to set Name of EC2 instance by aws cli

How to set Name of EC2 instance by aws cli

March 7, 2015 by Sharad Chhetri Leave a Comment

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:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
  • More
  • Print (Opens in new window) Print
  • Email a link to a friend (Opens in new window) Email
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Reddit (Opens in new window) Reddit
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon

Articles

AWS cli : HTTP Client raised and unhandled exception
How to configure multiple mysql instance in Ubuntu
Ubuntu / Debian : gpg error the following signatures couldn’t be verified
How to create multiple mysql instance in CentOS 6.4 and Red Hat 6.4
Create and Remove AWS EC2 key pair by using command line
Attach security groups to existing instance with AWS cli
Enable verbose mode while gem install of package
Protect from SSL Drown Attack in AWS ELB – Apache – Nginx
How to mount s3 bucket in linux EC2 instance
How to enable direct ssh to EC2 linux instance without keypair file
Nagios monitoring on AWS Autoscaling group instances
Managing Jenkins plugins : command and GUI
remove html tags by using sed command
Create multiple virtual machine with one Vagrantfile
check_ELBinstance : Nagios Plugin to check instances attached with ELB

Filed Under: AWS Tagged With: aws

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Articles

  • Install n8n docker in Ubuntu for practicing
  • Bash Script: MySQL Database backup to AWS S3
  • Automate no touch Jenkins setup wizard on docker (jcac)
  • How to run and configure Jenkins in Docker container
  • Complete Guide: How to install Nagios Monitoring on AlmaLinux / Rocky Linux
  • Install KVM on Ubuntu 24.04 LTS ( Bash Script )
  • How to install GIMP 2.10 on Ubuntu / Debian
  • 5 ways to check Ubuntu version of system (commands and GUI)
  • How To Solve Forgot MySQL / MariaDB Root Password
  • Create Self Hosted Build Agent Docker Image for Azure DevOps

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

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