Certificate Pack
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.CertificatePack;
import com.pulumi.cloudflare.CertificatePackArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new CertificatePack("example", CertificatePackArgs.builder()
.certificateAuthority("lets_encrypt")
.cloudflareBranding(false)
.hosts(
"example.com",
"*.example.com")
.type("advanced")
.validationMethod("http")
.validityDays(90)
.waitForActiveStatus(true)
.zoneId("0da42c8d2132a9ddaf714f9e7c920711")
.build());
}
}
Import
$ pulumi import cloudflare:index/certificatePack:CertificatePack example 1d5fdc9e88c8a8c4518b068cd94331fe/8fda82e2-6af9-4eb2-992a-5ab65b792ef1
While supported, importing isn't recommended and it is advised to replace the certificate entirely instead.
Properties
Which certificate authority to issue the certificate pack. Available values: digicert
, lets_encrypt
, google
. Modifying this attribute will force creation of a new resource.
Whether or not to include Cloudflare branding. This will add sni.cloudflaressl.com
as the Common Name if set to true
. Modifying this attribute will force creation of a new resource.
List of hostnames to provision the certificate pack for. The zone name must be included as a host. Note: If using Let's Encrypt, you cannot use individual subdomains and only a wildcard for subdomain is available. Modifying this attribute will force creation of a new resource.
Which validation method to use in order to prove domain ownership. Available values: txt
, http
, email
. Modifying this attribute will force creation of a new resource.
How long the certificate is valid for. Note: If using Let's Encrypt, this value can only be 90 days. Available values: 14
, 30
, 90
, 365
. Modifying this attribute will force creation of a new resource.
Whether or not to wait for a certificate pack to reach status active
during creation. Defaults to false
. Modifying this attribute will force creation of a new resource.