mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-01-16 08:37:18 +01:00
feat: Ignore changes to *.aws_iam_role.*.role_last_used (#2628)
This commit is contained in:
6
main.tf
6
main.tf
@@ -318,6 +318,12 @@ resource "aws_iam_role" "this" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tags = merge(var.tags, var.iam_role_tags)
|
tags = merge(var.tags, var.iam_role_tags)
|
||||||
|
|
||||||
|
lifecycle {
|
||||||
|
ignore_changes = [
|
||||||
|
role_last_used,
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Policies attached ref https://docs.aws.amazon.com/eks/latest/userguide/service_IAM_role.html
|
# Policies attached ref https://docs.aws.amazon.com/eks/latest/userguide/service_IAM_role.html
|
||||||
|
|||||||
@@ -427,6 +427,12 @@ resource "aws_iam_role" "this" {
|
|||||||
force_detach_policies = true
|
force_detach_policies = true
|
||||||
|
|
||||||
tags = merge(var.tags, var.iam_role_tags)
|
tags = merge(var.tags, var.iam_role_tags)
|
||||||
|
|
||||||
|
lifecycle {
|
||||||
|
ignore_changes = [
|
||||||
|
role_last_used,
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Policies attached ref https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/eks_node_group
|
# Policies attached ref https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/eks_node_group
|
||||||
|
|||||||
@@ -61,6 +61,12 @@ resource "aws_iam_role" "irsa" {
|
|||||||
force_detach_policies = true
|
force_detach_policies = true
|
||||||
|
|
||||||
tags = merge(var.tags, var.irsa_tags)
|
tags = merge(var.tags, var.irsa_tags)
|
||||||
|
|
||||||
|
lifecycle {
|
||||||
|
ignore_changes = [
|
||||||
|
role_last_used,
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
locals {
|
locals {
|
||||||
|
|||||||
Reference in New Issue
Block a user