provider/aws: aws_s3_object -> aws_s3_bucket_object (docs + filename) (#6979)
* aws/docs: Fix s3_bucket_object DS documentation * provider/aws: aws_s3_object -> aws_s3_bucket_object
This commit is contained in:
parent
88b3b08852
commit
2a9f47aa70
|
@ -1,12 +1,12 @@
|
||||||
---
|
---
|
||||||
layout: "aws"
|
layout: "aws"
|
||||||
page_title: "AWS: aws_s3_object"
|
page_title: "AWS: aws_s3_bucket_object"
|
||||||
sidebar_current: "docs-aws-datasource-s3-object"
|
sidebar_current: "docs-aws-datasource-s3-bucket-object"
|
||||||
description: |-
|
description: |-
|
||||||
Provides metadata and optionally content of an S3 object
|
Provides metadata and optionally content of an S3 object
|
||||||
---
|
---
|
||||||
|
|
||||||
# aws\_s3\_object
|
# aws\_s3\_bucket\_object
|
||||||
|
|
||||||
The S3 object data source allows access to the metadata and
|
The S3 object data source allows access to the metadata and
|
||||||
_optionally_ (see below) content of an object stored inside S3 bucket.
|
_optionally_ (see below) content of an object stored inside S3 bucket.
|
||||||
|
@ -16,7 +16,7 @@ _optionally_ (see below) content of an object stored inside S3 bucket.
|
||||||
## Example Usage
|
## Example Usage
|
||||||
|
|
||||||
```
|
```
|
||||||
data "aws_s3_object" "lambda" {
|
data "aws_s3_bucket_object" "lambda" {
|
||||||
bucket = "my-lambda-functions"
|
bucket = "my-lambda-functions"
|
||||||
key = "hello-world.zip"
|
key = "hello-world.zip"
|
||||||
}
|
}
|
||||||
|
@ -41,9 +41,9 @@ EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_lambda_function" "test_lambda" {
|
resource "aws_lambda_function" "test_lambda" {
|
||||||
s3_bucket = "${data.aws_s3_object.lambda.bucket}"
|
s3_bucket = "${data.aws_s3_bucket_object.lambda.bucket}"
|
||||||
s3_key = "${data.aws_s3_object.lambda.key}"
|
s3_key = "${data.aws_s3_bucket_object.lambda.key}"
|
||||||
s3_object_version = "${data.aws_s3_object.lambda.version_id}"
|
s3_object_version = "${data.aws_s3_bucket_object.lambda.version_id}"
|
||||||
function_name = "lambda_function_name"
|
function_name = "lambda_function_name"
|
||||||
role = "${aws_iam_role.iam_for_lambda.arn}"
|
role = "${aws_iam_role.iam_for_lambda.arn}"
|
||||||
handler = "exports.test"
|
handler = "exports.test"
|
|
@ -22,8 +22,8 @@
|
||||||
<li<%= sidebar_current("docs-aws-datasource-iam-policy-document") %>>
|
<li<%= sidebar_current("docs-aws-datasource-iam-policy-document") %>>
|
||||||
<a href="/docs/providers/aws/d/iam_policy_document.html">aws_iam_policy_document</a>
|
<a href="/docs/providers/aws/d/iam_policy_document.html">aws_iam_policy_document</a>
|
||||||
</li>
|
</li>
|
||||||
<li<%= sidebar_current("docs-aws-datasource-s3-object") %>>
|
<li<%= sidebar_current("docs-aws-datasource-s3-bucket-object") %>>
|
||||||
<a href="/docs/providers/aws/d/s3_object.html">aws_s3_object</a>
|
<a href="/docs/providers/aws/d/s3_bucket_object.html">aws_s3_bucket_object</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in New Issue