File tree Expand file tree Collapse file tree 4 files changed +20
-4
lines changed Expand file tree Collapse file tree 4 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 15
15
16
16
``` hcl
17
17
module "asg" {
18
- source = "terraform-aws-modules /autoscaling/aws"
18
+ source = "devops-workflow /autoscaling/aws"
19
19
20
20
name = "service"
21
21
Original file line number Diff line number Diff line change
1
+ # TODO: Add mem alarms/policies - Look at ecs_cluster
2
+ # Enable either one/both/none
3
+ # Need something that will work well for ECS
4
+
1
5
// CloudWatch Alarms
6
+ # TODO: look at changing to a submodule
7
+ # one module do high/low alarm and policies - Call for cpu, mem
8
+ # ?? modules for single alarm and policy
2
9
resource "aws_cloudwatch_metric_alarm" "high_cpu" {
3
10
count = " ${ var . enable_scaling_policies } "
4
11
alarm_name = " ${ title (" ec2-asg-${ var . name } -high-cpu-utilization" )} "
@@ -36,6 +43,7 @@ resource "aws_cloudwatch_metric_alarm" "low_cpu" {
36
43
}
37
44
38
45
// Auto Scaling Policy
46
+ # TODO: look at changing to a submodule
39
47
resource "aws_autoscaling_policy" "cpu_scaling_out" {
40
48
count = " ${ var . enable_scaling_policies } "
41
49
name = " cpu-scaling-out"
Original file line number Diff line number Diff line change 1
- Auto Scaling Group without ELB example
1
+ Auto Scaling Group: Disabled
2
2
======================================
3
3
4
- Configuration in this directory creates Launch Configuration and Auto Scaling Group .
4
+ Configuration in this directory run with the module disabled .
5
5
6
- Data sources are used to discover existing VPC resources (VPC, subnet and security group) as well as AMI details.
6
+ The module should create nothing and not error on any of the outputs
7
7
8
8
Usage
9
9
=====
Original file line number Diff line number Diff line change
1
+ # Other Terraform modules using this
2
+
3
+ List of other Terraform modules using this one that can also serve as more examples
4
+
5
+
6
+ | Name | GitHub Repo | Terraform Registry |
7
+ | -----| -----| -----|
8
+ | ecs-cluster | [ Repo] ( https://github.com/devops-workflow/terraform-aws-ecs-cluster ) | [ Registry] ( ) |
You can’t perform that action at this time.
0 commit comments