From 369b7f959e0a275c161d789cd24184f098cb30de Mon Sep 17 00:00:00 2001 From: Arpita Patel Date: Mon, 12 Feb 2024 09:03:31 -0600 Subject: [PATCH] Updated Tag Resources on AWS document --- docs/education/CloudComputing/AWS/aws.md | 26 +++++++++++++----------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/docs/education/CloudComputing/AWS/aws.md b/docs/education/CloudComputing/AWS/aws.md index 234f417..dfa33f4 100644 --- a/docs/education/CloudComputing/AWS/aws.md +++ b/docs/education/CloudComputing/AWS/aws.md @@ -1,6 +1,6 @@ --- sidebar_position: 1 -title: "AWS tags" +title: "Tag Resources on AWS" description: "AWS tags for cost tracking" tags: - AWS @@ -8,27 +8,29 @@ tags: - 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. +

NGIAB Logo

-- 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 - ``` \ No newline at end of file + ```