Skip to content

Commit

Permalink
Update main.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
jansiwy committed Aug 22, 2022
1 parent e7d63a0 commit 2f99473
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,12 @@ data "aws_iam_policy_document" "vpc" {
# before actually creating the Lambda function.
actions = ["ec2:DeleteNetworkInterface"]
resources = ["*"]

condition {
variable = "ec2:Region"
test = "StringEquals"
values = [data.aws_region.current[local.vpc_config_key].name]
}
}
}

Expand Down

0 comments on commit 2f99473

Please sign in to comment.