From 96e5d3f42d8d0596a0773f4bea6693746fb1bcfd Mon Sep 17 00:00:00 2001 From: Byungjin Park Date: Fri, 24 Feb 2023 02:05:14 +0900 Subject: [PATCH] Fix lint failed code --- modules/iam-role/migrations.tf | 2 +- modules/iam-role/outputs.tf | 6 +++--- modules/iam-service-linked-role/migrations.tf | 2 +- modules/iam-user/migrations.tf | 2 +- modules/iam-user/outputs.tf | 2 +- modules/managed-policies/migrations.tf | 2 +- modules/org-account/migrations.tf | 2 +- modules/org-organizational-unit/migrations.tf | 2 +- modules/sso-permission-set/migrations.tf | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/modules/iam-role/migrations.tf b/modules/iam-role/migrations.tf index f00e2a4..e5d6bcd 100644 --- a/modules/iam-role/migrations.tf +++ b/modules/iam-role/migrations.tf @@ -1,4 +1,4 @@ -// 2022-11-24 +# 2022-11-24 moved { from = aws_resourcegroups_group.this[0] to = module.resource_group[0].aws_resourcegroups_group.this diff --git a/modules/iam-role/outputs.tf b/modules/iam-role/outputs.tf index 7c1faeb..df90363 100644 --- a/modules/iam-role/outputs.tf +++ b/modules/iam-role/outputs.tf @@ -65,15 +65,15 @@ output "inline_policies" { output "instance_profile_name" { description = "IAM Instance Profile name." - value = try(aws_iam_instance_profile.this.*.name[0], null) + value = try(aws_iam_instance_profile.this[*].name[0], null) } output "instance_profile_arn" { description = "The ARN assigned by AWS for the Instance Profile." - value = try(aws_iam_instance_profile.this.*.arn[0], null) + value = try(aws_iam_instance_profile.this[*].arn[0], null) } output "instance_profile_unique_id" { description = "The unique ID assigned by AWS for the Instance Profile." - value = try(aws_iam_instance_profile.this.*.unique_id[0], null) + value = try(aws_iam_instance_profile.this[*].unique_id[0], null) } diff --git a/modules/iam-service-linked-role/migrations.tf b/modules/iam-service-linked-role/migrations.tf index f00e2a4..e5d6bcd 100644 --- a/modules/iam-service-linked-role/migrations.tf +++ b/modules/iam-service-linked-role/migrations.tf @@ -1,4 +1,4 @@ -// 2022-11-24 +# 2022-11-24 moved { from = aws_resourcegroups_group.this[0] to = module.resource_group[0].aws_resourcegroups_group.this diff --git a/modules/iam-user/migrations.tf b/modules/iam-user/migrations.tf index f00e2a4..e5d6bcd 100644 --- a/modules/iam-user/migrations.tf +++ b/modules/iam-user/migrations.tf @@ -1,4 +1,4 @@ -// 2022-11-24 +# 2022-11-24 moved { from = aws_resourcegroups_group.this[0] to = module.resource_group[0].aws_resourcegroups_group.this diff --git a/modules/iam-user/outputs.tf b/modules/iam-user/outputs.tf index 0fcea71..aa67235 100644 --- a/modules/iam-user/outputs.tf +++ b/modules/iam-user/outputs.tf @@ -28,7 +28,7 @@ output "console_access" { description = "The information of the AWS console access and password for the user." value = { enabled = try(var.console_access.enabled, true) - encrypted_password = one(aws_iam_user_login_profile.this.*.encrypted_password) + encrypted_password = one(aws_iam_user_login_profile.this[*].encrypted_password) } } diff --git a/modules/managed-policies/migrations.tf b/modules/managed-policies/migrations.tf index f00e2a4..e5d6bcd 100644 --- a/modules/managed-policies/migrations.tf +++ b/modules/managed-policies/migrations.tf @@ -1,4 +1,4 @@ -// 2022-11-24 +# 2022-11-24 moved { from = aws_resourcegroups_group.this[0] to = module.resource_group[0].aws_resourcegroups_group.this diff --git a/modules/org-account/migrations.tf b/modules/org-account/migrations.tf index f00e2a4..e5d6bcd 100644 --- a/modules/org-account/migrations.tf +++ b/modules/org-account/migrations.tf @@ -1,4 +1,4 @@ -// 2022-11-24 +# 2022-11-24 moved { from = aws_resourcegroups_group.this[0] to = module.resource_group[0].aws_resourcegroups_group.this diff --git a/modules/org-organizational-unit/migrations.tf b/modules/org-organizational-unit/migrations.tf index f00e2a4..e5d6bcd 100644 --- a/modules/org-organizational-unit/migrations.tf +++ b/modules/org-organizational-unit/migrations.tf @@ -1,4 +1,4 @@ -// 2022-11-24 +# 2022-11-24 moved { from = aws_resourcegroups_group.this[0] to = module.resource_group[0].aws_resourcegroups_group.this diff --git a/modules/sso-permission-set/migrations.tf b/modules/sso-permission-set/migrations.tf index f00e2a4..e5d6bcd 100644 --- a/modules/sso-permission-set/migrations.tf +++ b/modules/sso-permission-set/migrations.tf @@ -1,4 +1,4 @@ -// 2022-11-24 +# 2022-11-24 moved { from = aws_resourcegroups_group.this[0] to = module.resource_group[0].aws_resourcegroups_group.this