the_script
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
the_script [2017/08/04 19:30] – created walkeradmin | the_script [2023/03/09 22:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== The Script ====== | ====== The Script ====== | ||
+ | <color darkorange> | ||
\\ | \\ | ||
- | 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) | + | \\ |
+ | {{: | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | 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 76: | 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 = " | ||
+ | </ | ||
+ | \\ | ||
+ | This script does not create a key pair, it must already exist for the script to work. | ||
\\ | \\ | ||
\\ | \\ | ||
Line 81: | Line 101: | ||
---- | ---- | ||
==== EC2 Names ==== | ==== EC2 Names ==== | ||
- | Key name is simply a name to identify | + | The Name = terraform-instance |
\\ | \\ | ||
<sxh> | <sxh> | ||
- | key_name = " | ||
Name = " | Name = " | ||
</ | </ | ||
\\ | \\ | ||
- | The Name = terraform-instance | + | 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 101: | Line 120: | ||
\\ | \\ | ||
The security groups " | The security groups " | ||
+ | \\ | ||
+ | \\ | ||
+ | The Security Group must already exist, the Terraform Script does not create this, it simply points to an existing one. | ||
+ | \\ | ||
+ | \\ |
the_script.1501871402.txt.gz · Last modified: 2023/03/09 22:35 (external edit)