User Tools

Site Tools


the_script

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
the_script [2017/08/04 19:30] walkeradminthe_script [2023/03/09 22:35] (current) – external edit 127.0.0.1
Line 3: Line 3:
 \\  \\ 
 \\  \\ 
-Below is the script we will be using, I want to discuss a few of the elements first so that we understand a little of what changes to the script you might need to make to suit your purposes. (Ignore the line numbers)+{{:terraform_logo.jpg?100|}}  |  {{:amazonwebservices_logo.svg.png?75|}} 
 +\\  
 +\\  
 + 
 +---- 
 + 
 +Below is the script we will be using, I want to discuss a few of the elements first so that we understand a little of what changes to the script you might need to make to suit your purposes. (Ignore the line numbers.Once we have looked at the elements of the script, we will create our own script and test it.
 \\  \\ 
 \\  \\ 
Line 78: Line 84:
 \\  \\ 
 In this example we are using the t2.micro, as this falls in to the free tier category (as long as you are still in your free tier period.) In this example we are using the t2.micro, as this falls in to the free tier category (as long as you are still in your free tier period.)
 +\\ 
 +\\ 
 +
 +----
 +==== EC2 Key Pair ====
 +The Key Name is the name of the Key Pair you wish to use with the EC2 Instance you will create.
 +\\ 
 +<sxh>
 +        key_name = "TestSvr"
 +</sxh>
 +\\ 
 +This script does not create a key pair, it must already exist for the script to work.
 \\  \\ 
 \\  \\ 
Line 83: Line 101:
 ---- ----
 ==== EC2 Names  ==== ==== EC2 Names  ====
-Key name is simply a name to identify the EC2 Instance as.+The Name = terraform-instance is another label to identify this by.
 \\  \\ 
 <sxh> <sxh>
-        key_name = "TestWebSvr" 
         Name = "terraform-instance"         Name = "terraform-instance"
 </sxh> </sxh>
 \\  \\ 
-The Name = terraform-instance is another label to identify this by.+The Name is just a label so you can identify this EC2 Instance when it is in a list with other instances, ensure this name is unique or you will cause yourself some confusion.
 \\  \\ 
 \\  \\ 
Line 103: Line 120:
 \\  \\ 
 The security groups "launch-wizard-1" is the default security group and has the default inbound settings of <color #ed1c24>SSH, TCP, 22, 0.0.0.0/0</color> which allows for SSH access. The security groups "launch-wizard-1" is the default security group and has the default inbound settings of <color #ed1c24>SSH, TCP, 22, 0.0.0.0/0</color> which allows for SSH access.
 +\\ 
 +\\ 
 +The Security Group must already exist, the Terraform Script does not create this, it simply points to an existing one.
 +\\ 
 +\\ 
the_script.1501871434.txt.gz · Last modified: 2023/03/09 22:35 (external edit)