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.
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\-]+)$ .
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.
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With