Skip to content

ACM

CloudMock emulates AWS Certificate Manager (ACM), supporting certificate request, import, renewal, export, and tagging operations.

OperationStatusNotes
RequestCertificateSupportedCreates a certificate request
DescribeCertificateSupportedReturns certificate details
ListCertificatesSupportedLists all certificates
DeleteCertificateSupportedDeletes a certificate
ImportCertificateSupportedImports an external certificate
RenewCertificateSupportedTriggers certificate renewal
ExportCertificateSupportedExports a certificate and private key
GetCertificateSupportedReturns the certificate body and chain
AddTagsToCertificateSupportedAdds tags to a certificate
RemoveTagsFromCertificateSupportedRemoves tags from a certificate
ListTagsForCertificateSupportedLists tags for a certificate
import { ACMClient, RequestCertificateCommand, DescribeCertificateCommand } from '@aws-sdk/client-acm';
const client = new ACMClient({
endpoint: 'http://localhost:4566',
region: 'us-east-1',
credentials: { accessKeyId: 'test', secretAccessKey: 'test' },
});
const { CertificateArn } = await client.send(new RequestCertificateCommand({
DomainName: 'example.com',
}));
const cert = await client.send(new DescribeCertificateCommand({
CertificateArn,
}));
console.log(cert.Certificate);
import boto3
client = boto3.client('acm',
endpoint_url='http://localhost:4566',
region_name='us-east-1',
aws_access_key_id='test',
aws_secret_access_key='test')
response = client.request_certificate(DomainName='example.com')
arn = response['CertificateArn']
cert = client.describe_certificate(CertificateArn=arn)
print(cert['Certificate'])
cloudmock.yml
services:
acm:
enabled: true
  • Certificates are not actually validated via DNS or email
  • Renewal does not perform real re-issuance; it updates the certificate status
  • Export returns stub certificate data