Skip to content

Commit c78097d

Browse files
committed
feat: bump min aws provider to v6
1 parent 6aaf89c commit c78097d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ locals {
22
enabled = coalesce(var.enabled, module.this.enabled, true)
33
name = coalesce(var.name, module.this.name, "teleport-cluster-${random_string.teleport_cluster_random_suffix.result}")
44

5-
aws_account_id = var.aws_account_id != "" ? var.aws_account_id : try(data.aws_caller_identity.current[0].account_id, "")
6-
aws_region_name = var.aws_region_name != "" ? var.aws_region_name : try(data.aws_region.current[0].name, "")
5+
aws_account_id = var.aws_account_id != "" ? var.aws_account_id : one(data.aws_caller_identity.current.*.account_id)
6+
aws_region_name = var.aws_region_name != "" ? var.aws_region_name : one(data.aws_region.current.*.region)
77
aws_kv_namespace = trim(coalesce(var.aws_kv_namespace, "teleport-cluster/${module.teleport_cluster_label.id}"), "/")
88

99
teleport_cluster_name = join("-", [module.teleport_cluster_label.name, module.teleport_cluster_label.stage, module.teleport_cluster_label.environment])

version.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 5.0.0, < 6.0.0"
7+
version = ">= 6.0.0"
88
}
99
random = {
1010
source = "hashicorp/random"

0 commit comments

Comments
 (0)