Skip to content

Commit

Permalink
Uses updated policy document arguments, eliminating deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lorengordon committed Aug 1, 2022
1 parent eb19290 commit dd0a26c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ make mockstack/clean
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.0 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.0 |
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 4.0 |

## Resources

Expand Down
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ data "aws_iam_policy" "custom_lambda" {
data "aws_iam_policy_document" "custom_lambda" {
count = local.custom_lambda ? 1 : 0

source_json = data.aws_iam_policy.custom_lambda[0].policy
override_json = var.lambda.policy
source_policy_documents = compact([data.aws_iam_policy.custom_lambda[0].policy])
override_policy_documents = compact([var.lambda.policy])
}

locals {
Expand Down
2 changes: 1 addition & 1 deletion versions.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.0"
version = ">= 4.0"
}
}
}

0 comments on commit dd0a26c

Please sign in to comment.