-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Tag Resources on AWS document (#75)
- Loading branch information
Showing
1 changed file
with
14 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,36 @@ | ||
--- | ||
sidebar_position: 1 | ||
title: "AWS tags" | ||
title: "Tag Resources on AWS" | ||
description: "AWS tags for cost tracking" | ||
tags: | ||
- AWS | ||
- Tag | ||
- Cost | ||
--- | ||
|
||
Tags help you to categorize your AWS resources by purpose, owner, or environment. If unique key and value are given, it can track the cost of resouces by the tags. | ||
Tags in AWS are essential for organizing resources based on their purpose, owner, or environment, and can also aid in cost tracking when unique key-value pairs are assigned. | ||
|
||
# How to create a tag in AWS | ||
# How to Tag Resources on AWS | ||
|
||
1. Using AWS Console | ||
1. Using AWS Console: | ||
|
||
Every resource has a property field named Tag, and this example is creating a tag in EC2 instance, and it has similar interface to create a tag in other resources. | ||
Navigate to the desired resource, such as an EC2 instance, and follow these steps: | ||
|
||
- Click on a instance in the list view. | ||
- Click on Tags tab, and Click on Manage tags button on the right. | ||
- Add new tag, and provide unique Key and Value. | ||
- Select the instance from the list view. | ||
- Go to the Tags tab and click on the Manage tags button. | ||
- Add a new tag with a unique Key and Value. | ||
|
||
<p align="center"> | ||
<img src="/img/EC2-CreateTag.png" alt="NGIAB Logo" style={{'width':'50%', 'height':'50%'}}/> | ||
</p> | ||
- Click on Save | ||
|
||
2. Using aws cli | ||
- Save the changes. | ||
|
||
This is an example of creating a tag in EC2 instance. | ||
2. Using AWS CLI: | ||
|
||
Use the following command-line example to create a tag for an EC2 instance: | ||
``` | ||
aws ec2 create-tags \ | ||
--resources i-1234567890abcdef0 \ | ||
--tags Key=webserver,Value=dev | ||
``` | ||
``` |