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 c52809c commit e7d63a0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,11 @@ data "aws_iam_policy_document" "vpc" {
}

statement {
actions = ["ec2:DeleteNetworkInterface"]

resources = [
"arn:${data.aws_partition.current[local.vpc_config_key].partition}:ec2:${data.aws_region.current[local.vpc_config_key].name}:${data.aws_caller_identity.current[local.vpc_config_key].account_id}:network-interface/*",
]
# It is not possible to restrict this permissions because the Lambda runtime
# is making a DryRun call to this action without any request parameters
# before actually creating the Lambda function.
actions = ["ec2:DeleteNetworkInterface"]
resources = ["*"]
}
}

Expand Down

0 comments on commit e7d63a0

Please sign in to comment.