set_the_security_group
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
set_the_security_group [2017/08/04 22:02] – created walkeradmin | set_the_security_group [2017/08/05 14:36] – walkeradmin | ||
---|---|---|---|
Line 8: | Line 8: | ||
\\ | \\ | ||
\\ | \\ | ||
+ | Below is an example of some security groups. Remember, the default security group " | ||
+ | \\ | ||
+ | \\ | ||
+ | {{ : | ||
+ | \\ | ||
+ | I believe the security group can be referenced in the Terraform script by either it's group name or its group ID. | ||
+ | \\ | ||
+ | \\ | ||
+ | Below we can see the contents of the security group launch-wizard-1. | ||
+ | \\ | ||
+ | \\ | ||
+ | {{ : | ||
+ | \\ | ||
+ | By default, only the SSH rule is added, I added the two HTTP rules as my EC2 Instance is a web server, and without port 80 it's pretty useless. | ||
+ | \\ | ||
+ | \\ | ||
+ | In the script, my security group setting will be: | ||
+ | < | ||
+ | security_groups= [" | ||
+ | </ | ||
+ | \\ | ||
+ | This Terraform script does not create a security group, you have to manually create the security group, The Terraform Script simply points to an existing Security Group (or Security Groups). | ||
+ | \\ | ||
+ | \\ |
set_the_security_group.txt · Last modified: 2023/03/09 22:35 by 127.0.0.1