Difference between revisions of "Tags"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
* https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html
 
* https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html
  
[[AWS]]
+
== [[AWS]] ==
  
 
             "Tags": [
 
             "Tags": [
Line 11: Line 11:
 
  [[aws ec2 describe-route-tables]] | [[jq -r]] '.RouteTables[] | select(.[[Tags]][].Value=="YOUR_TAG/PublicRouteTable") | .RouteTableId'
 
  [[aws ec2 describe-route-tables]] | [[jq -r]] '.RouteTables[] | select(.[[Tags]][].Value=="YOUR_TAG/PublicRouteTable") | .RouteTableId'
  
[[Terraform]]
+
== [[Terraform]] ==
 
  .[[tfvars]]
 
  .[[tfvars]]
 
   [[tags]] = {
 
   [[tags]] = {

Revision as of 16:29, 18 January 2023

AWS

            "Tags": [
                       {
                           "Key": "Name",
                           "Value": "YOUR_NAME"
                       }
aws ec2 describe-route-tables | jq -r '.RouteTables[] | select(.Tags[].Value=="YOUR_TAG/PublicRouteTable") | .RouteTableId'

Terraform

.tfvars
 tags = {
   env          = "sandbox",
   created-by   = "your_name"
   triggered-by = "terraform"
   project      = "your_project"
   ou           = "your_OU"
 }


Related terms

Advertising: