Files
opentf/website/source/docs/providers/aws/d/iam_server_certificate.html.markdown
George Christou 61277c0dbd website/docs: Run terraform fmt on code examples (#12075)
* docs/vsphere: Fix code block

* docs: Convert `...` to `# ...` to allow `terraform fmt`ing

* docs: Trim trailing whitespace

* docs: First-pass run of `terraform fmt` on code examples
2017-02-19 00:48:50 +02:00

1.1 KiB

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
aws AWS: aws_iam_server_certificate docs-aws-iam-server-certificate Get information about a server certificate

aws_iam_server_certificate

Use this data source to lookup information about IAM Server Certificates.

Example Usage

data "aws_iam_server_certificate" "my-domain" {
  name_prefix = "my-domain.org"
  latest      = true
}

resource "aws_elb" "elb" {
  name = "my-domain-elb"

  listener {
    instance_port      = 8000
    instance_protocol  = "https"
    lb_port            = 443
    lb_protocol        = "https"
    ssl_certificate_id = "${data.aws_iam_server_certificate.my-domain.arn}"
  }
}

Argument Reference

  • name_prefix - prefix of cert to filter by
  • name - exact name of the cert to lookup
  • latest - sort results by expiration date. returns the certificate with expiration date in furthest in the future.

Attributes Reference

arn is set to the ARN of the IAM Server Certificate path is set to the path of the IAM Server Certificate expiration_date is set to the expiration date of the IAM Server Certificate