Skip to content

Commit

Permalink
Updated Tag Resources on AWS document (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
arpita0911patel authored Feb 12, 2024
2 parents 72c39eb + 369b7f9 commit ee0d66b
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions docs/education/CloudComputing/AWS/aws.md
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
```
```

0 comments on commit ee0d66b

Please sign in to comment.