Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to name an EC2 EBS volume in AWS console?

Tags:

How can I name my Amazon EC2 EBS volumes using the AWS Console? By default the name field is empty, and I can see no option to edit this, unlike the actual EC2 instance.

like image 994
garethmurton Avatar asked Oct 09 '12 10:10

garethmurton


People also ask

How do I name my EBS volume?

A naming convention is a well-defined set of rules useful for choosing the name of an AWS resource. Cloud Conformity strongly recommends using the following pattern (default) for naming your EBS volumes: ^volume-(ue1|uw1|uw2|ew1|ec1|an1|an2|as1|as2|se1)-([1-2]{1})([a-c]{1})-(d|t|s|p)-([a-z0-9\-]+)$ .

How do I name my EC2 instance?

If the selected instance does not have a Name tag defined, click Create Tag button and provide the following information: In the Key box type Name as the key name. In the Value box enter the value of the Name tag, value that must be defined based on Cloud Conformity pattern, e.g. ec2-us-west-1-2b-p-nginx.

How do I add EBS volume to EC2?

To attach an EBS volume to an instance using the consoleOpen the Amazon EC2 console at https://console.aws.amazon.com/ec2/ . In the navigation pane, choose Volumes. Select the volume to attach and choose Actions, Attach volume. You can attach only volumes that are in the Available state.

What is the volume name used to attach to AWS instance?

When you attach a volume to your instance, you include a device name for the volume. This device name is used by Amazon EC2. The block device driver for the instance assigns the actual volume name when mounting the volume, and the name assigned can be different from the name that Amazon EC2 uses.


2 Answers

The "name" field ist just a tag. To edit this, klick on your EBS volume, go to "Tags" in the lower panel and you will already find a tag "Name" there. Fill in your desired name as the value and it will also show up in the overview panel.

like image 92
j0nes Avatar answered Oct 12 '22 18:10

j0nes


The "Name" that shows up in the AWS console is just a tag. This applies to AMIs, volumes, instances, etc..

You can change it from the command line using ec2-api-tools with following command:

ec2addtag <entity_id> --tag Name=<name> 

You can install ec2-api-tools (Ubuntu) by calling:

sudo apt-get install ec2-api-tools 
like image 32
maarha Avatar answered Oct 12 '22 17:10

maarha