0.5.2 • Published 2 years ago

@wanews/pulumi-certificate-validation v0.5.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

AWS Certificate Validation

This resource makes it easy to validate any certificates you provision. It supports certificates with multiple domain names attached, creating all required validation records.

Usage

import { ValidateCertificate } from '@wanews/pulumi-certificate-validation'
import { Certificate } from '@pulumi/aws/acm'

const cert = new Certificate(`${name}-cert`, {
  domainName: 'my.customdomain.net',
  validationMethod: 'DNS',
})

// Get the route53 zone
const zone = pulumi.output(aws.route53.getZone({ name: 'customdomain.net' }))
  .zoneId

// Use @wanews/pulumi-certificate-validation to perform dns validation
const validCertificate = new ValidateCertificate(`cert-validation`, {
  cert,
  // Certificates can be for multiple domains
  // You need to specify the domain, plus the hosting route53 zone id
  // (the validation DNS records will be created in those zone)
  zones: [
    {
      domain: 'my.customdomain.net',
      zoneId,
    },
  ],
})

// use this arn which will be resolved once the certificate is validated
const certArn = validCertificate.validCertificateArn
0.5.2

2 years ago

0.5.0

2 years ago

0.5.1

2 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago