github.com/recobe182/terraform@v0.8.5-0.20170117231232-49ab22a935b7/website/source/docs/providers/aws/d/iam_server_certificate.html.markdown (about) 1 --- 2 layout: "aws" 3 page_title: "AWS: aws_iam_server_certificate" 4 sidebar_current: "docs-aws-iam-server-certificate" 5 description: |- 6 Get information about a server certificate 7 --- 8 9 # aws\_iam\_server\_certificate 10 11 Use this data source to lookup information about IAM Server Certificates. 12 13 ## Example Usage 14 15 ``` 16 data "aws_iam_server_certificate" "my-domain" { 17 name_prefix = "my-domain.org" 18 latest = true 19 } 20 21 resource "aws_elb" "elb" { 22 name = "my-domain-elb" 23 24 25 listener { 26 instance_port = 8000 27 instance_protocol = "https" 28 lb_port = 443 29 lb_protocol = "https" 30 ssl_certificate_id = "${data.aws_iam_server_certificate.my-domain.arn}" 31 } 32 } 33 ``` 34 35 ## Argument Reference 36 37 * `name_prefix` - prefix of cert to filter by 38 * `name` - exact name of the cert to lookup 39 * `latest` - sort results by expiration date. returns the certificate with expiration date in furthest in the future. 40 41 ## Attributes Reference 42 43 `arn` is set to the ARN of the IAM Server Certificate 44 `path` is set to the path of the IAM Server Certificate 45 `expiration_date` is set to the expiration date of the IAM Server Certificate