iam_server_certificate
Manage IAM server certificates for use on ELBs and CloudFront
Collection: community.aws
Full Name: community.aws.iam_server_certificate
Synopsis
Manage IAM server certificates for use on ELBs and CloudFront
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| access_key | str | |||
| aws_ca_bundle | path | |||
| aws_config | dict | |||
| cert | str | |||
| cert_chain | str | |||
| debug_botocore_endpoint_logs | bool | false | ||
| dup_ok | bool | true | ||
| endpoint_url | str | |||
| key | str | |||
| name | str | yes | ||
| new_name | str | |||
| new_path | str | |||
| path | str | / | ||
| profile | str | |||
| region | str | |||
| secret_key | str | |||
| session_token | str | |||
| state | str | yes | ||
| validate_certs | bool | true |
Example
yaml
- name: Basic server certificate upload from local file
community.aws.iam_server_certificate:
name: very_ssl
state: present
cert: "{{ lookup('file', 'path/to/cert') }}"
key: "{{ lookup('file', 'path/to/key') }}"
cert_chain: "{{ lookup('file', 'path/to/certchain') }}"
- name: Server certificate upload using key string
community.aws.iam_server_certificate:
name: very_ssl
state: present
path: "/a/cert/path/"
cert: "{{ lookup('file', 'path/to/cert') }}"
key: "{{ lookup('file', 'path/to/key') }}"
cert_chain: "{{ lookup('file', 'path/to/certchain') }}"
- name: Basic rename of existing certificate
community.aws.iam_server_certificate:
name: very_ssl
new_name: new_very_ssl
state: present