From 6a23568bdfe1071f657b885a017c35c44b25eacc Mon Sep 17 00:00:00 2001 From: Loren Gordon Date: Sun, 10 Nov 2024 09:15:14 -0800 Subject: [PATCH] Removes sleep due to inability to reproduce error in recent aws provider versions --- modules/cross_account_principal_association/versions.tf | 2 +- modules/principal_association/main.tf | 5 ----- modules/principal_association/versions.tf | 2 +- modules/resource_association/versions.tf | 2 +- modules/share_accepter/versions.tf | 2 +- versions.tf | 2 +- 6 files changed, 5 insertions(+), 10 deletions(-) diff --git a/modules/cross_account_principal_association/versions.tf b/modules/cross_account_principal_association/versions.tf index c3c64f9..f1657a4 100644 --- a/modules/cross_account_principal_association/versions.tf +++ b/modules/cross_account_principal_association/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 3.0" + version = ">= 5.37.0" configuration_aliases = [aws.owner] } } diff --git a/modules/principal_association/main.tf b/modules/principal_association/main.tf index 72d14c5..b5bdfbe 100644 --- a/modules/principal_association/main.tf +++ b/modules/principal_association/main.tf @@ -1,9 +1,4 @@ resource "aws_ram_principal_association" "this" { principal = var.principal resource_share_arn = var.resource_share_arn - - # The invitation sometime takes a few seconds to propagate - provisioner "local-exec" { - command = "python -c 'import time; time.sleep(10)'" - } } diff --git a/modules/principal_association/versions.tf b/modules/principal_association/versions.tf index 34260e6..d280ead 100644 --- a/modules/principal_association/versions.tf +++ b/modules/principal_association/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 3.0" + version = ">= 5.37.0" } } } diff --git a/modules/resource_association/versions.tf b/modules/resource_association/versions.tf index 34260e6..d280ead 100644 --- a/modules/resource_association/versions.tf +++ b/modules/resource_association/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 3.0" + version = ">= 5.37.0" } } } diff --git a/modules/share_accepter/versions.tf b/modules/share_accepter/versions.tf index 34260e6..d280ead 100644 --- a/modules/share_accepter/versions.tf +++ b/modules/share_accepter/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 3.0" + version = ">= 5.37.0" } } } diff --git a/versions.tf b/versions.tf index 34260e6..d280ead 100644 --- a/versions.tf +++ b/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 3.0" + version = ">= 5.37.0" } } }