Skip to content

Commit bb0252b

Browse files
committed
Ignore changes on name for iam role for api and brainstore
1 parent 7cf5ddc commit bb0252b

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

modules/services-common/iam-api.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ resource "aws_iam_role" "api_handler_role" {
6666
permissions_boundary = var.permissions_boundary_arn
6767

6868
tags = local.common_tags
69+
70+
lifecycle {
71+
ignore_changes = [name]
72+
}
6973
}
7074

7175
resource "aws_iam_role_policy_attachment" "api_handler_policy" {

modules/services-common/iam-brainstore.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ resource "aws_iam_role" "brainstore_role" {
6969
tags = merge({
7070
Name = "${var.deployment_name}-brainstore-ec2-role"
7171
}, local.common_tags)
72+
73+
lifecycle {
74+
ignore_changes = [name]
75+
}
7276
}
7377

7478
resource "aws_iam_role_policy" "brainstore_s3_access" {

0 commit comments

Comments
 (0)