start_a_new_script
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
start_a_new_script [2017/08/04 20:21] – walkeradmin | start_a_new_script [2023/03/09 22:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Start a New Script ====== | ====== Start a New Script ====== | ||
<color darkorange> | <color darkorange> | ||
+ | \\ | ||
+ | \\ | ||
+ | {{: | ||
\\ | \\ | ||
\\ | \\ | ||
---- | ---- | ||
+ | |||
As Terraform is a very small file (by todays standards) I generally create a new folder, and put the Terraform.exe executable in to that folder. I then keep Terraform and my script in that folder, creating a new folder containing a copy of Terraform for each script. | As Terraform is a very small file (by todays standards) I generally create a new folder, and put the Terraform.exe executable in to that folder. I then keep Terraform and my script in that folder, creating a new folder containing a copy of Terraform for each script. | ||
\\ | \\ | ||
Line 17: | Line 21: | ||
- Create a new file in your preferred text editor and save it as " | - Create a new file in your preferred text editor and save it as " | ||
\\ | \\ | ||
- | {{ : | + | {{ : |
+ | \\ | ||
\\ | \\ | ||
\\ | \\ | ||
Paste the following text in to your " | Paste the following text in to your " | ||
+ | \\ | ||
\\ | \\ | ||
<sxh> | <sxh> | ||
Line 26: | Line 32: | ||
access_key = " | access_key = " | ||
secret_key = " | secret_key = " | ||
- | region = "ap-southeast-1" | + | region = "xxxxxxxx" |
} | } | ||
- | resource " | + | resource " |
- | ami = "ami-a59b49c6" | + | ami = "ami-xxxxxxxx" |
- | instance_type = "t2.micro" | + | instance_type = "xxxxxxxx" |
- | key_name = "mykey" | + | key_name = "xxxxxxxx" |
- | security_groups= ["sample-sg"] | + | security_groups= ["xxxxxxxx"] |
tags { | tags { | ||
Name = " | Name = " | ||
Line 39: | Line 45: | ||
} | } | ||
</ | </ | ||
+ | \\ | ||
+ | As you go through each section of this guide, enter the relevant details in this script and save it each time. At the end of the guide you will have a finished script that you can test. | ||
+ | \\ | ||
+ | \\ |
start_a_new_script.1501874460.txt.gz · Last modified: 2023/03/09 22:35 (external edit)