Skip to playerSkip to main content
  • 3 days ago
Transcript
00:00welcome to this lesson on tagging tagging is a very very important capability within
00:10OCI and you should definitely leverage it let's talk more about it so at the core what is tagging
00:15tags are basically these key value pairs which you could which you could use to better organize
00:23your resources so as you can see here this particular instance i am trying to i have put
00:28two different tags so there is a tag which is which is environment with a value of production
00:33and there is another tag which is which is project and has value of alpha and i could
00:38do multiple tags you should always check service limits as to how many tags i could put on a
00:43particular cloud object but in this case i am putting two tags here and these again just to
00:48recap are simple key value pairs or name value pairs where the key is the key for the tag and
00:55then the value is the value you want to assign so the idea here is you are going to run hundreds
01:01or thousands of cloud resources and as you are creating applications you are creating this complex
01:08architectures you could tag them and you could identify your your applications your resources
01:13by using these tags so that's the first reason why you would use your tags because your accounts and
01:20your resources you are going to use many many resources and tags is a is a very easy mechanism
01:27to better organize your resources the second reason you would use tags would be for cost management
01:32now imagine all these resources you are you are tagging you could pull them up by the tag
01:38and you could find out what is the cost usage for those resources and that's a very
01:43uh important way to figure out how much your application is consuming remember cloud is all
01:49about uh pay as you go pricing and you could pinpoint it down to a particular set of resources
01:56as to what your cost kind of cost you are incurring so second reason why you would use tags are cost
02:02management you could also do this thing called tag based access control so you could control the access
02:09based on the tags for the resources not the users uh and and the groups uh so in a way uh by using uh tags
02:18uh you you it it becomes even more powerful the ability to uh to uh uh to write policies uh based on
02:25tags so those are some of the use cases and there are many many more but those are some of the reasons
02:29why you would use uh tags so as we talked about in oci there are two kinds of tag there is free form tags and there is
02:35defined tags so first let's look at the free form tags the as you can see on on the on the graphic
02:40here uh there is a key and a value so this for this particular tag the the key is environment the value
02:47is production it's a very simple key value pair there is no defined schema or there is there is no kind of
02:52access restriction then we have defined tags and these have more features and control and the first
02:58thing to note here as you can see on the on the graphic is these tags now are contained within
03:05this thing called a namespace so you specify a namespace saying in this case it's operations
03:11and and then you can put as many tags as you want in those namespaces so you are defining a schema and
03:18other thing you could do is it also supports policies so defined tags support policies to allow
03:25you to control who can apply your defined tags so not everybody could just use these defined tags you
03:30could write that in the policy and the tag namespace is the entity to which you apply this policy so you
03:37could say a particular group of operations admin can only apply this particular tag because the namespace
03:44has operations in in that so you could write a policy against against that so how does it really look
03:50in practice so you if as an example here there is a namespace which is operations and within that i am
03:56defining a key key value pair so the key is environment and the value is production and you could take it to
04:03the next level so as you can see here operations is the namespace environment is the key and production
04:10is the value now i could as we talked about namespace is a container for a set of tags with tag key definitions
04:18tag key definitions specifies the key like like it is here and you could also specify the type of values
04:26allowed you could say the type is a string and it allows any value or it it is blank or you could set
04:35a specific set of values and when the users come to apply this particular tag they can only choose from
04:41those particular values so it is another way for you you could first determine who applies the tag by writing
04:48the policies and then you could also specify what kind of values are allowed so this is really that
04:53defined schema along with policy makes the resources even more better organized one thing to keep in mind
05:02is tag namespace once you define cannot be deleted but you can always retire them and you don't have to
05:07use it this is more for governance purposes so whatever you you namespaces you have you can keep an audit of
05:13uh the namespaces you had in your account so uh that's it uh tagging a very important feature uh useful
05:20feature in in cloud uh and in oci we take tagging to the next level using these defined tags i hope you get
05:27to use uh define tags thank you for watching
Be the first to comment
Add your comment

Recommended