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
Next revisionBoth sides next revision
configure_labels [2017/08/04 22:43] walkeradminconfigure_labels [2017/08/05 14:41] walkeradmin
Line 3: Line 3:
 \\  \\ 
 \\  \\ 
 +<color #ed1c24>This page contains errors (Key Name) and needs to be fixed</color>
  
 ---- ----
Line 8: Line 9:
 \\  \\ 
 \\  \\ 
-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 'Key Name'. We can see these in the Terraform script. 
 \\  \\ 
-<sxh text; first-line: 01; highlight: [09,13]; title: New title attribute in action>+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" { provider "aws" {
         access_key = "JLJBK63HMPBC7DC150PA"         access_key = "JLJBK63HMPBC7DC150PA"
Line 25: Line 27:
         ami = "ami-40a8bf24"         ami = "ami-40a8bf24"
         instance_type = "t2.micro"         instance_type = "t2.micro"
-        key_name = "TestWebSvr"+        key_name = "TestSvr"
         security_groups= ["launch-wizard-1"]         security_groups= ["launch-wizard-1"]
         tags {         tags {
Line 33: Line 35:
 </sxh> </sxh>
 \\  \\ 
 +\\ 
 +In the example script, I will use the following:
 +\\ 
 +<file>
 +tags {
 +Name = "terraform-instance"
 +}
 +</file>
 +
 +
configure_labels.txt · Last modified: 2023/03/09 22:35 by 127.0.0.1