Skip to content

Commit

Permalink
chore: Fixed code in examples (dynamodb resource not found error) (#742)
Browse files Browse the repository at this point in the history
  • Loading branch information
dauntlessnomad authored Jan 27, 2022
1 parent f296568 commit 668d457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/complete-vpc/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ data "aws_iam_policy_document" "dynamodb_endpoint_policy" {
test = "StringNotEquals"
variable = "aws:sourceVpce"

values = [data.aws_vpc_endpoint.dynamodb.id]
values = [data.vpc.vpc_id]

This comment has been minimized.

Copy link
@lorengordon

lorengordon Jan 28, 2022

Contributor

This was not a valid change. There is no data source named "vpc".

This comment has been minimized.

Copy link
@bryantbiggs

bryantbiggs Jan 28, 2022

Member

looks like it should be [module.vpc.vpc_id]

This comment has been minimized.

Copy link
@analytically

analytically May 12, 2022

Use this key to compare the VPC endpoint identifier of the request with the endpoint ID that you specify in the policy. In a policy, you can use this key to restrict access to a specific VPC endpoint. For more information, see Restricting Access to a Specific VPC Endpoint in the Amazon Simple Storage Service User Guide.

}
}
}
Expand Down

0 comments on commit 668d457

Please sign in to comment.