Skip to content

Commit

Permalink
Fix documentation and include more examples
Browse files Browse the repository at this point in the history
  • Loading branch information
David González committed Jan 20, 2018
1 parent cbb12a8 commit ab4396c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions website/docs/d/acm_certificate.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ them by domain without having to hard code the ARNs as input.
data "aws_acm_certificate" "example" {
domain = "tf.example.com"
statuses = ["ISSUED"]
}
data "aws_acm_certificate" "example" {
domain = "tf.example.com"
types = ["AMAZON_ISSUED"]
most_recent = true
}
```
Expand All @@ -30,8 +35,9 @@ data "aws_acm_certificate" "example" {
* `statuses` - (Optional) A list of statuses on which to filter the returned list. Valid values are `PENDING_VALIDATION`, `ISSUED`,
`INACTIVE`, `EXPIRED`, `VALIDATION_TIMED_OUT`, `REVOKED` and `FAILED`. If no value is specified, only certificates in the `ISSUED` state
are returned.
* `types` - (Optional) A list of types on which to filter the returned list. Valid values are `AMAZON_ISSUED` and `IMPORTED`
* `most_recent` - (Optional) If set to true, it sorts certificates matched by previous criterias by the NotBefore field, returning only the most recent one. If set to false, it returns an error if more than one certificates are found. Defaults to false.
* `types` - (Optional) A list of types on which to filter the returned list. Valid values are `AMAZON_ISSUED` and `IMPORTED`.
* `most_recent` - (Optional) If set to true, it sorts the certificates matched by previous criteria by the NotBefore field, returning only the most recent one. If set to false, it returns an error if more than one certificate is found. Defaults to false.

## Attributes Reference

* `arn` - Set to the ARN of the found certificate, suitable for referencing in other resources that support ACM certificates.

0 comments on commit ab4396c

Please sign in to comment.