Skip to content

Commit

Permalink
fix: Migrate away from 'override_json' which is deprecated in AWS Pro…
Browse files Browse the repository at this point in the history
…vider V4

- NOTE: 'override_policy_documents' is available since 3.28.0
  • Loading branch information
patrickherrera committed Nov 7, 2022
1 parent 699dcf8 commit 0fb3237
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion infra/terraform/modules/_auth/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3"
version = ">= 3.28"
}
}
}
4 changes: 3 additions & 1 deletion infra/terraform/modules/_lambda/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ data "aws_iam_policy_document" "assume_role" {
}

data "aws_iam_policy_document" "execution" {
override_json = var.iam_policy_override_json
override_policy_documents = var.iam_policy_override_json == null ? [] : [
var.iam_policy_override_json
]

statement {
sid = "logs"
Expand Down
2 changes: 1 addition & 1 deletion infra/terraform/modules/_lambda/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3"
version = ">= 3.28"
}
}
}
2 changes: 1 addition & 1 deletion infra/terraform/modules/okta_native/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3"
version = ">= 3.28"
}
}
}

0 comments on commit 0fb3237

Please sign in to comment.