Skip to content

Commit

Permalink
chore: remove incorrect resource ARNs for cloudwatch event rule (#1854)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryantbiggs authored Feb 8, 2022
1 parent 43822af commit 0784180
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion examples/irsa_autoscale_refresh/charts.tf
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ resource "aws_cloudwatch_event_rule" "aws_node_termination_handler_spot" {
event_pattern = jsonencode({
"source" : ["aws.ec2"],
"detail-type" : ["EC2 Spot Instance Interruption Warning"]
"resources" : [for group in module.eks.self_managed_node_groups : group.autoscaling_group_arn]
})
}

Expand Down

1 comment on commit 0784180

@ugangir1
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Iam getting this error ..when i try to execute

│ Error: "name" isn't a valid log group name (alphanumeric characters, underscores, hyphens, slashes, hash signs and dots are allowed): "/aws/eks/uma_eks_cluster,subnet_id=subnet-04ab8be6925009e1d/cluster"

│ with aws_cloudwatch_log_group.this[0],
│ on main.tf line 61, in resource "aws_cloudwatch_log_group" "this":
│ 61: name = "/aws/eks/${var.cluster_name}/cluster"



│ Error: expected length of name_prefix to be in the range (1 - 38), got uma_eks_cluster,subnet_id=subnet-04ab8be6925009e1d-cluster-

│ with aws_iam_role.this[0],
│ on main.tf line 195, in resource "aws_iam_role" "this":
│ 195: name_prefix = var.iam_role_use_name_prefix ? "${local.iam_role_name}${var.prefix_separator}" : null

Please sign in to comment.