|
@@ -38,7 +38,7 @@ resource "aws_launch_template" "splunk_indexer" {
|
|
|
|
|
|
metadata_options {
|
|
|
http_endpoint = "enabled"
|
|
|
- http_tokens = "required"
|
|
|
+ http_tokens = "optional" #tfsec:ignore:aws-autoscaling-enforce-http-token-imds Smartstore needs to be configured to use imdsv2, MSOCI-2150
|
|
|
}
|
|
|
|
|
|
network_interfaces {
|
|
@@ -207,5 +207,30 @@ resource "aws_autoscaling_group" "splunk_indexer_asg" {
|
|
|
# how long to wait for a healthy instance. Default is 10m, which sucks when troubleshooting, but larger instances need it
|
|
|
#wait_for_capacity_timeout = "1m"
|
|
|
|
|
|
+ # Default metrics for ASG
|
|
|
+ enabled_metrics = [
|
|
|
+ "GroupAndWarmPoolDesiredCapacity",
|
|
|
+ "GroupAndWarmPoolTotalCapacity",
|
|
|
+ "GroupDesiredCapacity",
|
|
|
+ "GroupInServiceCapacity",
|
|
|
+ "GroupInServiceInstances",
|
|
|
+ "GroupMaxSize",
|
|
|
+ "GroupMinSize",
|
|
|
+ "GroupPendingCapacity",
|
|
|
+ "GroupPendingInstances",
|
|
|
+ "GroupStandbyCapacity",
|
|
|
+ "GroupStandbyInstances",
|
|
|
+ "GroupTerminatingCapacity",
|
|
|
+ "GroupTerminatingInstances",
|
|
|
+ "GroupTotalCapacity",
|
|
|
+ "GroupTotalInstances",
|
|
|
+ "WarmPoolDesiredCapacity",
|
|
|
+ "WarmPoolMinSize",
|
|
|
+ "WarmPoolPendingCapacity",
|
|
|
+ "WarmPoolTerminatingCapacity",
|
|
|
+ "WarmPoolTotalCapacity",
|
|
|
+ "WarmPoolWarmedCapacity",
|
|
|
+ ]
|
|
|
+
|
|
|
suspended_processes = var.suspended_processes
|
|
|
}
|