Skip to content

Commit

Permalink
Documentation correction for aws_s3_object-fix #30770
Browse files Browse the repository at this point in the history
Description
In the example usage of the Resource:  aws_lambda_function.test_lambda there is this field: s3_bucket = data.aws_s3_object.lambda.id. That id refers to the object id not the bucket id.

References:
documentation containing issue:
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/s3_object
  • Loading branch information
ishwar-amzn authored Apr 22, 2023
1 parent 6eea39b commit e05d8b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/d/s3_object.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ data "aws_s3_object" "lambda" {
}
resource "aws_lambda_function" "test_lambda" {
s3_bucket = data.aws_s3_object.lambda.id
s3_bucket = data.aws_s3_object.lambda.bucket
s3_key = data.aws_s3_object.lambda.key
s3_object_version = data.aws_s3_object.lambda.version_id
function_name = "lambda_function_name"
Expand Down

0 comments on commit e05d8b0

Please sign in to comment.