🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@wanews/pulumi-certificate-validation

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wanews/pulumi-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.

latest
Source
npmnpm
Version
0.5.2
Version published
Maintainers
3
Created
Source

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

Keywords

Pulumi

FAQs

Package last updated on 12 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts