User Tools

Site Tools


configure_labels

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
configure_labels [2017/08/04 22:39] walkeradminconfigure_labels [2023/03/09 22:35] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Configure Labels ====== ====== Configure Labels ======
 <color darkorange>Aug 2017</color> <color darkorange>Aug 2017</color>
 +\\ 
 +\\ 
 +{{:terraform_logo.jpg?100|}}  |  {{:amazonwebservices_logo.svg.png?75|}}
 \\  \\ 
 \\  \\ 
  
 ---- ----
 +
 When creating an EC2 Instance, there are some labels that can be set, these don't seem particularly important, until you have a lot of instances to manage, then you suddenly realise the value of these labels. If you have a lot of EC2 Instances and have not labelled them, you will have a hard time working out which EC2 Instance is performing what task(s). When creating an EC2 Instance, there are some labels that can be set, these don't seem particularly important, until you have a lot of instances to manage, then you suddenly realise the value of these labels. If you have a lot of EC2 Instances and have not labelled them, you will have a hard time working out which EC2 Instance is performing what task(s).
 \\  \\ 
 \\  \\ 
-Below is a single EC2 Instance in AWS, and you can see the two labels that are in the Terraform script.+Below is a single EC2 Instance in AWS, and you can see the label that is in the Terraform script.
 \\  \\ 
 \\  \\ 
-{{ :awslabels001.jpg?900 |}}+{{ :awslabels001c.jpg?500 |}}
 \\  \\ 
-On the left we have 'Name' (click the image to enlarge it) and on the right we have the+\\  
 +On the left we have 'Name' (click the image to enlarge it) This text label we can specify in our scripts. We can see this in the Terraform script below. 
 +\\  
 +<sxh text; first-line: 01; highlight: [13];> 
 +provider "aws"
 +        access_key = "JLJBK63HMPBC7DC150PA" 
 +        secret_key = "K7H2g33xPj6F7zBNcFGTeL5SlbjTsDNA/9nA2caa" 
 +        region = "eu-west-2" 
 +
 + 
 +resource "aws_instance" "example"
 +        ami = "ami-40a8bf24" 
 +        instance_type = "t2.micro" 
 +        key_name = "TestSvr" 
 +        security_groups= ["launch-wizard-1"
 +        tags { 
 +        Name = "terraform-instance" 
 +        } 
 +
 +</sxh> 
 +\\  
 +\\  
 +In the example script, I will use the following: 
 +\\  
 +<file> 
 +tags { 
 +Name = "terraform-instance" 
 +
 +</file> 
 + 
configure_labels.1501882779.txt.gz · Last modified: 2023/03/09 22:35 (external edit)