Skip to content

Commit f5d839e

Browse files
upgrade aws provider to ~>5.0 (#2472)
1 parent 5df9d7f commit f5d839e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

terraform/etl/00-init.tf

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Core Infrastructure
22
provider "aws" {
33
region = var.aws_deploy_region
4-
5-
dynamic assume_role {
4+
5+
dynamic "assume_role" {
66
for_each = local.is_live_environment ? [1] : []
7-
7+
88
content {
99
role_arn = "arn:aws:iam::${var.aws_deploy_account_id}:role/${var.aws_deploy_iam_role_name}"
1010
session_name = "Terraform"
@@ -15,7 +15,7 @@ provider "aws" {
1515
provider "aws" {
1616
alias = "aws_api_account"
1717
region = var.aws_deploy_region
18-
18+
1919
assume_role {
2020
role_arn = "arn:aws:iam::${var.aws_api_account_id}:role/${var.aws_deploy_iam_role_name}"
2121
session_name = "Terraform"
@@ -25,10 +25,10 @@ provider "aws" {
2525
provider "aws" {
2626
alias = "aws_hackit_account"
2727
region = "eu-west-1"
28-
29-
dynamic assume_role {
30-
for_each = local.is_live_environment ? [1] : []
31-
28+
29+
dynamic "assume_role" {
30+
for_each = local.is_live_environment ? [1] : []
31+
3232
content {
3333
role_arn = "arn:aws:iam::${var.aws_hackit_account_id}:role/${var.aws_deploy_iam_role_name}"
3434
session_name = "DataPlatform"
@@ -50,7 +50,7 @@ terraform {
5050
required_providers {
5151
aws = {
5252
source = "hashicorp/aws"
53-
version = "~> 4.0"
53+
version = "~> 5.0"
5454
}
5555
google = {
5656
source = "hashicorp/google"

0 commit comments

Comments
 (0)