Certificate Provisioning to AWS Certificate Manager
Certificate Provisioning to AWS Certificate Manager (ACM) lets you push a certificate stored in Akeyless directly into ACM, using an existing AWS Target. This is one of the certificate provisioning destinations supported by Akeyless.
Unlike provisioning to a Linux or Windows endpoint, the AWS Target holds only the credentials used to call the ACM API. The certificate is stored in ACM as a single object that bundles the certificate, private key, and chain. After a successful provisioning, future renewals of the certificate are provisioned automatically.
Every certificate provisioned by Akeyless is tagged with provisioned-by: akeyless in ACM, so you can identify and audit Akeyless-managed certificates.
Note:The host-based provisioning fields Certificate Remote Path, Private Key Remote Path, Certificate Chain Path, and Post Provision Command aren't available for cloud targets. To run actions after provisioning, see Post-Provisioning Actions.
Prerequisites
- An Akeyless Gateway.
- A certificate item stored in Akeyless that includes its private key. For more information, see Certificate Storage.
- An AWS Target whose identity has the following permissions in the destination account:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"acm:ImportCertificate",
"acm:DescribeCertificate",
"acm:ListCertificates",
"acm:AddTagsToCertificate"
],
"Resource": "*"
}
]
}Provider-Specific Fields
| Field | Description |
|---|---|
| Certificate Name | The certificate name in ACM. |
| Certificate ARN | Optional. Relevant only when renewing or overwriting an existing certificate. If left blank, ACM provisions a new certificate resource. |
NoteThe certificate is imported to the region defined on the AWS Target.
Set the Certificate ARN to Avoid DuplicatesWithout
certificate-arn, a new ACM certificate is created on every provisioning, including after each renewal.
Provisioning a Certificate Using the Akeyless CLI
Run the following CLI command to provision a certificate to AWS Certificate Manager:
akeyless assoc-target-item \
--name <Certificate name> \
--target-name <AWS Target name> \
--gateway-url 'https://<Your-Akeyless-GW-URL>:8000' \
--certificate-name <Certificate name in ACM> \
--certificate-arn <Existing certificate ARN>Where:
name: The Certificate item name.target-name: The AWS Target item name to provision the certificate with.gateway-url: Akeyless Gateway Configuration Manager URL (port8000).certificate-name: The name of the certificate in ACM.certificate-arn: Optional, the ARN of an existing ACM certificate to overwrite. If left empty, a new certificate resource is created.
You can find the complete list of additional parameters for this command in the CLI Reference section.
Provisioning a Certificate Using the Akeyless Console
- Log in to the Akeyless Console, go to Items, and find the certificate you wish to provision.
- Click on the Certificate item, click on the Provisioning tab, and then Attach.
- Select an AWS Target.
- Enter the fields:
- Certificate Name: The certificate name in ACM.
- Certificate ARN: Optional. Relevant only when renewing or overwriting an existing certificate. If left blank, ACM provisions a new certificate resource.
- Select the Gateway through which the certificate will be provisioned. Choose a Gateway that has network access to the AWS Certificate Manager API, so provisioning goes through the right Gateway.
- Click Save.
How the Certificate Is Stored in ACM
The leaf certificate, private key, and certificate chain are imported as one ACM certificate.
Post-Provisioning Actions
ACM doesn't run commands on hosts, so Post Provision Command isn't supported. To reload services or update bindings after a certificate is provisioned or renewed, create an Amazon EventBridge rule that matches the ImportCertificate CloudTrail event, and trigger an AWS Systems Manager Run Command or an AWS Lambda function.
Updated 2 days ago
