Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tf_mod_aws_asg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
steamhaus
tf_mod_aws_asg
Commits
43271db4
Commit
43271db4
authored
Feb 17, 2017
by
Chris Merrett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos
parent
28bcf3b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
main.tf
main.tf
+5
-5
No files found.
main.tf
View file @
43271db4
...
...
@@ -61,13 +61,13 @@ variable "termination_policies" {
}
# Auto-Scaling policies
variable
"scale_up_scaling_adj
su
tment"
{
variable
"scale_up_scaling_adj
us
tment"
{
default
=
"50"
}
variable
"scale_up_cooldown"
{
default
=
"60"
}
variable
"scale_down_scaling_adj
su
tment"
{
variable
"scale_down_scaling_adj
us
tment"
{
default
=
"-50"
}
variable
"scale_down_cooldown"
{
...
...
@@ -192,7 +192,7 @@ resource "aws_autoscaling_group" "main" {
resource
"aws_autoscaling_policy"
"scale_up"
{
name
=
"
${
var
.
name
}
-scale-up"
adjustment_type
=
"PercentChangeInCapacity"
scaling_adjustment
=
"
${
var
.
scale_up_scaling_adj
su
tment
}
"
scaling_adjustment
=
"
${
var
.
scale_up_scaling_adj
us
tment
}
"
cooldown
=
"
${
var
.
scale_up_cooldown
}
"
autoscaling_group_name
=
"
${
aws_autoscaling_group
.
main
.
name
}
"
}
...
...
@@ -200,7 +200,7 @@ resource "aws_autoscaling_policy" "scale_up" {
resource
"aws_autoscaling_policy"
"scale_down"
{
name
=
"
${
var
.
name
}
-scale-down"
adjustment_type
=
"PercentChangeInCapacity"
scaling_adjustment
=
"
${
var
.
scale_down_scaling_adj
su
tment
}
"
scaling_adjustment
=
"
${
var
.
scale_down_scaling_adj
us
tment
}
"
cooldown
=
"
${
var
.
scale_down_cooldown
}
"
autoscaling_group_name
=
"
${
aws_autoscaling_group
.
main
.
name
}
"
}
...
...
@@ -266,4 +266,4 @@ output "autoscaling_policy_scale_down_arn" {
}
output
"security_group"
{
value
=
"
${
aws_security_group
.
main
.
id
}
"
}
\ No newline at end of file
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment