Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Tag Resources on AWS document #75

Merged
merged 1 commit into from
Feb 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
```
```
Loading