mirror of
https://github.com/ghndrx/terraform.git
synced 2026-02-10 14:55:06 +00:00
syntax in tfvars. update userdata to base64 encode
This commit is contained in:
@@ -1,2 +1,2 @@
|
|||||||
min_size = 3
|
min_size = "3"
|
||||||
max_size = 10
|
max_size = "10"
|
||||||
@@ -16,8 +16,8 @@ sudo chmod 600 /home/greg/.ssh/authorized_keys
|
|||||||
sudo chown -R greg:greg /home/greg/.ssh
|
sudo chown -R greg:greg /home/greg/.ssh
|
||||||
|
|
||||||
# Add your public key to authorized_keys
|
# Add your public key to authorized_keys
|
||||||
sudo echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCdOF80z0piQEnYzNCu2OGvOJdm7+3wfDuiC+Jzi8VbSC5VW4iJAQXOuDNGLzyqNi6uMjI77xpEL6Xzn29uJiQti6Y/LxhOZwNNIQiGUpFco1wkBYeBFbtgHQxsMLwumrxQGEj2fyCiSrACAPyy/l1fP4mlN7abBGD5aozBrYKxXPS/kfwO5nsWmw27RgTzfHJzie2dUU3ew/kd7td3wEdWrRXq8wNbu+yvAyiog54huUUWmYZwY3QVwXr6R1wsVudawM6BEl45QFq+hdB4t83azHG94XLy2NCAncohdU7zP40nsbvIDyh+4wIKeU90z6TLrXfHUYuBT6/ky7qOFm/Ym1QG4zCDz3jin8Qoa31PGaObzj/zoMJXgOXKcp16W0j9SZAenvnSfuWUEfBR1yBRR0T5Wg5v1vi7KGBTATaz8el802uliL+yZbGtMbNpAPGR5nK5C4yorf8yVYvIgo/LJaWCDND2O1e2mdut1WyRmvIwMnq7PFZT8zAsgGXfhDM= greg@ligma
|
sudo echo "
|
||||||
" >> /home/greg/.ssh/authorized_keys
|
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCdOF80z0piQEnYzNCu2OGvOJdm7+3wfDuiC+Jzi8VbSC5VW4iJAQXOuDNGLzyqNi6uMjI77xpEL6Xzn29uJiQti6Y/LxhOZwNNIQiGUpFco1wkBYeBFbtgHQxsMLwumrxQGEj2fyCiSrACAPyy/l1fP4mlN7abBGD5aozBrYKxXPS/kfwO5nsWmw27RgTzfHJzie2dUU3ew/kd7td3wEdWrRXq8wNbu+yvAyiog54huUUWmYZwY3QVwXr6R1wsVudawM6BEl45QFq+hdB4t83azHG94XLy2NCAncohdU7zP40nsbvIDyh+4wIKeU90z6TLrXfHUYuBT6/ky7qOFm/Ym1QG4zCDz3jin8Qoa31PGaObzj/zoMJXgOXKcp16W0j9SZAenvnSfuWUEfBR1yBRR0T5Wg5v1vi7KGBTATaz8el802uliL+yZbGtMbNpAPGR5nK5C4yorf8yVYvIgo/LJaWCDND2O1e2mdut1WyRmvIwMnq7PFZT8zAsgGXfhDM= greg@ligma" >> /home/greg/.ssh/authorized_keys
|
||||||
|
|
||||||
# Set hostname
|
# Set hostname
|
||||||
INSTANCE_ID=$(curl -s http://169.254.169.254/latest/meta-data/instance-id)
|
INSTANCE_ID=$(curl -s http://169.254.169.254/latest/meta-data/instance-id)
|
||||||
|
|||||||
@@ -3,13 +3,11 @@
|
|||||||
variable "min_size" {
|
variable "min_size" {
|
||||||
type = number
|
type = number
|
||||||
description = "Minimum number of instances in the Auto Scaling Group"
|
description = "Minimum number of instances in the Auto Scaling Group"
|
||||||
default = 1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "max_size" {
|
variable "max_size" {
|
||||||
type = number
|
type = number
|
||||||
description = "Maximum number of instances in the Auto Scaling Group"
|
description = "Maximum number of instances in the Auto Scaling Group"
|
||||||
default = 1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
min_size = 3
|
min_size = "3"
|
||||||
max_size = 10
|
max_size = "10"
|
||||||
@@ -16,8 +16,8 @@ sudo chmod 600 /home/greg/.ssh/authorized_keys
|
|||||||
sudo chown -R greg:greg /home/greg/.ssh
|
sudo chown -R greg:greg /home/greg/.ssh
|
||||||
|
|
||||||
# Add your public key to authorized_keys
|
# Add your public key to authorized_keys
|
||||||
sudo echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCdOF80z0piQEnYzNCu2OGvOJdm7+3wfDuiC+Jzi8VbSC5VW4iJAQXOuDNGLzyqNi6uMjI77xpEL6Xzn29uJiQti6Y/LxhOZwNNIQiGUpFco1wkBYeBFbtgHQxsMLwumrxQGEj2fyCiSrACAPyy/l1fP4mlN7abBGD5aozBrYKxXPS/kfwO5nsWmw27RgTzfHJzie2dUU3ew/kd7td3wEdWrRXq8wNbu+yvAyiog54huUUWmYZwY3QVwXr6R1wsVudawM6BEl45QFq+hdB4t83azHG94XLy2NCAncohdU7zP40nsbvIDyh+4wIKeU90z6TLrXfHUYuBT6/ky7qOFm/Ym1QG4zCDz3jin8Qoa31PGaObzj/zoMJXgOXKcp16W0j9SZAenvnSfuWUEfBR1yBRR0T5Wg5v1vi7KGBTATaz8el802uliL+yZbGtMbNpAPGR5nK5C4yorf8yVYvIgo/LJaWCDND2O1e2mdut1WyRmvIwMnq7PFZT8zAsgGXfhDM= greg@ligma
|
sudo echo "
|
||||||
" >> /home/greg/.ssh/authorized_keys
|
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCdOF80z0piQEnYzNCu2OGvOJdm7+3wfDuiC+Jzi8VbSC5VW4iJAQXOuDNGLzyqNi6uMjI77xpEL6Xzn29uJiQti6Y/LxhOZwNNIQiGUpFco1wkBYeBFbtgHQxsMLwumrxQGEj2fyCiSrACAPyy/l1fP4mlN7abBGD5aozBrYKxXPS/kfwO5nsWmw27RgTzfHJzie2dUU3ew/kd7td3wEdWrRXq8wNbu+yvAyiog54huUUWmYZwY3QVwXr6R1wsVudawM6BEl45QFq+hdB4t83azHG94XLy2NCAncohdU7zP40nsbvIDyh+4wIKeU90z6TLrXfHUYuBT6/ky7qOFm/Ym1QG4zCDz3jin8Qoa31PGaObzj/zoMJXgOXKcp16W0j9SZAenvnSfuWUEfBR1yBRR0T5Wg5v1vi7KGBTATaz8el802uliL+yZbGtMbNpAPGR5nK5C4yorf8yVYvIgo/LJaWCDND2O1e2mdut1WyRmvIwMnq7PFZT8zAsgGXfhDM= greg@ligma" >> /home/greg/.ssh/authorized_keys
|
||||||
|
|
||||||
# Set hostname
|
# Set hostname
|
||||||
INSTANCE_ID=$(curl -s http://169.254.169.254/latest/meta-data/instance-id)
|
INSTANCE_ID=$(curl -s http://169.254.169.254/latest/meta-data/instance-id)
|
||||||
|
|||||||
@@ -3,13 +3,11 @@
|
|||||||
variable "min_size" {
|
variable "min_size" {
|
||||||
type = number
|
type = number
|
||||||
description = "Minimum number of instances in the Auto Scaling Group"
|
description = "Minimum number of instances in the Auto Scaling Group"
|
||||||
default = 1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "max_size" {
|
variable "max_size" {
|
||||||
type = number
|
type = number
|
||||||
description = "Maximum number of instances in the Auto Scaling Group"
|
description = "Maximum number of instances in the Auto Scaling Group"
|
||||||
default = 1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "us_west_subnet_1_id" {
|
variable "us_west_subnet_1_id" {
|
||||||
|
|||||||
Reference in New Issue
Block a user