ibm.ContainerAlbCert
Explore with Pulumi AI
Create, update, or delete an SSL certificate that you store in IBM Cloud Certificate Manager for an Ingress Application Load Balancer (ALB). For more information, about container ALB certificate, see setting up Kubernetes Ingress.
Example Usage
The following example adds an SSL certificate that is stored in IBM Cloud Certificate Manager to an Ingress ALB that is set up in a cluster that is named myCluster
.
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const cert = new ibm.ContainerAlbCert("cert", {
certCrn: "crn:v1:bluemix:public:cloudcerts:us-south:a/e9021a4dc47e3d:faadea8e-a7f4-408f-8b39-2175ed17ae62:certificate:3f2ab474fbbf9564582",
clusterId: "myCluster",
secretName: "test-sec",
});
import pulumi
import pulumi_ibm as ibm
cert = ibm.ContainerAlbCert("cert",
cert_crn="crn:v1:bluemix:public:cloudcerts:us-south:a/e9021a4dc47e3d:faadea8e-a7f4-408f-8b39-2175ed17ae62:certificate:3f2ab474fbbf9564582",
cluster_id="myCluster",
secret_name="test-sec")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.NewContainerAlbCert(ctx, "cert", &ibm.ContainerAlbCertArgs{
CertCrn: pulumi.String("crn:v1:bluemix:public:cloudcerts:us-south:a/e9021a4dc47e3d:faadea8e-a7f4-408f-8b39-2175ed17ae62:certificate:3f2ab474fbbf9564582"),
ClusterId: pulumi.String("myCluster"),
SecretName: pulumi.String("test-sec"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var cert = new Ibm.ContainerAlbCert("cert", new()
{
CertCrn = "crn:v1:bluemix:public:cloudcerts:us-south:a/e9021a4dc47e3d:faadea8e-a7f4-408f-8b39-2175ed17ae62:certificate:3f2ab474fbbf9564582",
ClusterId = "myCluster",
SecretName = "test-sec",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.ContainerAlbCert;
import com.pulumi.ibm.ContainerAlbCertArgs;
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 cert = new ContainerAlbCert("cert", ContainerAlbCertArgs.builder()
.certCrn("crn:v1:bluemix:public:cloudcerts:us-south:a/e9021a4dc47e3d:faadea8e-a7f4-408f-8b39-2175ed17ae62:certificate:3f2ab474fbbf9564582")
.clusterId("myCluster")
.secretName("test-sec")
.build());
}
}
resources:
cert:
type: ibm:ContainerAlbCert
properties:
certCrn: crn:v1:bluemix:public:cloudcerts:us-south:a/e9021a4dc47e3d:faadea8e-a7f4-408f-8b39-2175ed17ae62:certificate:3f2ab474fbbf9564582
clusterId: myCluster
secretName: test-sec
Create ContainerAlbCert Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ContainerAlbCert(name: string, args: ContainerAlbCertArgs, opts?: CustomResourceOptions);
@overload
def ContainerAlbCert(resource_name: str,
args: ContainerAlbCertArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ContainerAlbCert(resource_name: str,
opts: Optional[ResourceOptions] = None,
cert_crn: Optional[str] = None,
cluster_id: Optional[str] = None,
secret_name: Optional[str] = None,
container_alb_cert_id: Optional[str] = None,
namespace: Optional[str] = None,
persistence: Optional[bool] = None,
region: Optional[str] = None,
timeouts: Optional[ContainerAlbCertTimeoutsArgs] = None)
func NewContainerAlbCert(ctx *Context, name string, args ContainerAlbCertArgs, opts ...ResourceOption) (*ContainerAlbCert, error)
public ContainerAlbCert(string name, ContainerAlbCertArgs args, CustomResourceOptions? opts = null)
public ContainerAlbCert(String name, ContainerAlbCertArgs args)
public ContainerAlbCert(String name, ContainerAlbCertArgs args, CustomResourceOptions options)
type: ibm:ContainerAlbCert
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ContainerAlbCertArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ContainerAlbCertArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ContainerAlbCertArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ContainerAlbCertArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ContainerAlbCertArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var containerAlbCertResource = new Ibm.ContainerAlbCert("containerAlbCertResource", new()
{
CertCrn = "string",
ClusterId = "string",
SecretName = "string",
ContainerAlbCertId = "string",
Namespace = "string",
Persistence = false,
Timeouts = new Ibm.Inputs.ContainerAlbCertTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := ibm.NewContainerAlbCert(ctx, "containerAlbCertResource", &ibm.ContainerAlbCertArgs{
CertCrn: pulumi.String("string"),
ClusterId: pulumi.String("string"),
SecretName: pulumi.String("string"),
ContainerAlbCertId: pulumi.String("string"),
Namespace: pulumi.String("string"),
Persistence: pulumi.Bool(false),
Timeouts: &ibm.ContainerAlbCertTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var containerAlbCertResource = new ContainerAlbCert("containerAlbCertResource", ContainerAlbCertArgs.builder()
.certCrn("string")
.clusterId("string")
.secretName("string")
.containerAlbCertId("string")
.namespace("string")
.persistence(false)
.timeouts(ContainerAlbCertTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
container_alb_cert_resource = ibm.ContainerAlbCert("containerAlbCertResource",
cert_crn="string",
cluster_id="string",
secret_name="string",
container_alb_cert_id="string",
namespace="string",
persistence=False,
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const containerAlbCertResource = new ibm.ContainerAlbCert("containerAlbCertResource", {
certCrn: "string",
clusterId: "string",
secretName: "string",
containerAlbCertId: "string",
namespace: "string",
persistence: false,
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: ibm:ContainerAlbCert
properties:
certCrn: string
clusterId: string
containerAlbCertId: string
namespace: string
persistence: false
secretName: string
timeouts:
create: string
delete: string
update: string
ContainerAlbCert Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ContainerAlbCert resource accepts the following input properties:
- Cert
Crn string - The CRN of the certificate that you uploaded to IBM Cloud Certificate Manager.
- Cluster
Id string - The ID of the cluster that hosts the Ingress ALB that you want to configure for SSL traffic.
- Secret
Name string - The name of the ALB certificate secret.
- Container
Alb stringCert Id - (String) The unique identifier of the certificate in the format
<cluster_name_id>/<secret_name>
. - Namespace string
- Optional- The namespace in which the secret is created. Default value is
ibm-cert-store
. - Persistence bool
- Persist the secret data in your cluster. If the secret is later deleted from the command line or OpenShift web console, the secret is automatically re-created in your cluster.
- Region string
- region name
- Timeouts
Container
Alb Cert Timeouts
- Cert
Crn string - The CRN of the certificate that you uploaded to IBM Cloud Certificate Manager.
- Cluster
Id string - The ID of the cluster that hosts the Ingress ALB that you want to configure for SSL traffic.
- Secret
Name string - The name of the ALB certificate secret.
- Container
Alb stringCert Id - (String) The unique identifier of the certificate in the format
<cluster_name_id>/<secret_name>
. - Namespace string
- Optional- The namespace in which the secret is created. Default value is
ibm-cert-store
. - Persistence bool
- Persist the secret data in your cluster. If the secret is later deleted from the command line or OpenShift web console, the secret is automatically re-created in your cluster.
- Region string
- region name
- Timeouts
Container
Alb Cert Timeouts Args
- cert
Crn String - The CRN of the certificate that you uploaded to IBM Cloud Certificate Manager.
- cluster
Id String - The ID of the cluster that hosts the Ingress ALB that you want to configure for SSL traffic.
- secret
Name String - The name of the ALB certificate secret.
- container
Alb StringCert Id - (String) The unique identifier of the certificate in the format
<cluster_name_id>/<secret_name>
. - namespace String
- Optional- The namespace in which the secret is created. Default value is
ibm-cert-store
. - persistence Boolean
- Persist the secret data in your cluster. If the secret is later deleted from the command line or OpenShift web console, the secret is automatically re-created in your cluster.
- region String
- region name
- timeouts
Container
Alb Cert Timeouts
- cert
Crn string - The CRN of the certificate that you uploaded to IBM Cloud Certificate Manager.
- cluster
Id string - The ID of the cluster that hosts the Ingress ALB that you want to configure for SSL traffic.
- secret
Name string - The name of the ALB certificate secret.
- container
Alb stringCert Id - (String) The unique identifier of the certificate in the format
<cluster_name_id>/<secret_name>
. - namespace string
- Optional- The namespace in which the secret is created. Default value is
ibm-cert-store
. - persistence boolean
- Persist the secret data in your cluster. If the secret is later deleted from the command line or OpenShift web console, the secret is automatically re-created in your cluster.
- region string
- region name
- timeouts
Container
Alb Cert Timeouts
- cert_
crn str - The CRN of the certificate that you uploaded to IBM Cloud Certificate Manager.
- cluster_
id str - The ID of the cluster that hosts the Ingress ALB that you want to configure for SSL traffic.
- secret_
name str - The name of the ALB certificate secret.
- container_
alb_ strcert_ id - (String) The unique identifier of the certificate in the format
<cluster_name_id>/<secret_name>
. - namespace str
- Optional- The namespace in which the secret is created. Default value is
ibm-cert-store
. - persistence bool
- Persist the secret data in your cluster. If the secret is later deleted from the command line or OpenShift web console, the secret is automatically re-created in your cluster.
- region str
- region name
- timeouts
Container
Alb Cert Timeouts Args
- cert
Crn String - The CRN of the certificate that you uploaded to IBM Cloud Certificate Manager.
- cluster
Id String - The ID of the cluster that hosts the Ingress ALB that you want to configure for SSL traffic.
- secret
Name String - The name of the ALB certificate secret.
- container
Alb StringCert Id - (String) The unique identifier of the certificate in the format
<cluster_name_id>/<secret_name>
. - namespace String
- Optional- The namespace in which the secret is created. Default value is
ibm-cert-store
. - persistence Boolean
- Persist the secret data in your cluster. If the secret is later deleted from the command line or OpenShift web console, the secret is automatically re-created in your cluster.
- region String
- region name
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the ContainerAlbCert resource produces the following output properties:
- Cloud
Cert stringInstance Id - (String) The IBM Cloud Certificate Manager instance ID from which the certificate was downloaded.
- Domain
Name string - (String) The domain name of the certificate.
- Expires
On string - Date - The date the certificate expires.
- Id string
- The provider-assigned unique ID for this managed resource.
- Issuer
Name string - (String) The name of the issuer of the certificate.
- Status string
- (String) The Status of the secret.
- Cloud
Cert stringInstance Id - (String) The IBM Cloud Certificate Manager instance ID from which the certificate was downloaded.
- Domain
Name string - (String) The domain name of the certificate.
- Expires
On string - Date - The date the certificate expires.
- Id string
- The provider-assigned unique ID for this managed resource.
- Issuer
Name string - (String) The name of the issuer of the certificate.
- Status string
- (String) The Status of the secret.
- cloud
Cert StringInstance Id - (String) The IBM Cloud Certificate Manager instance ID from which the certificate was downloaded.
- domain
Name String - (String) The domain name of the certificate.
- expires
On String - Date - The date the certificate expires.
- id String
- The provider-assigned unique ID for this managed resource.
- issuer
Name String - (String) The name of the issuer of the certificate.
- status String
- (String) The Status of the secret.
- cloud
Cert stringInstance Id - (String) The IBM Cloud Certificate Manager instance ID from which the certificate was downloaded.
- domain
Name string - (String) The domain name of the certificate.
- expires
On string - Date - The date the certificate expires.
- id string
- The provider-assigned unique ID for this managed resource.
- issuer
Name string - (String) The name of the issuer of the certificate.
- status string
- (String) The Status of the secret.
- cloud_
cert_ strinstance_ id - (String) The IBM Cloud Certificate Manager instance ID from which the certificate was downloaded.
- domain_
name str - (String) The domain name of the certificate.
- expires_
on str - Date - The date the certificate expires.
- id str
- The provider-assigned unique ID for this managed resource.
- issuer_
name str - (String) The name of the issuer of the certificate.
- status str
- (String) The Status of the secret.
- cloud
Cert StringInstance Id - (String) The IBM Cloud Certificate Manager instance ID from which the certificate was downloaded.
- domain
Name String - (String) The domain name of the certificate.
- expires
On String - Date - The date the certificate expires.
- id String
- The provider-assigned unique ID for this managed resource.
- issuer
Name String - (String) The name of the issuer of the certificate.
- status String
- (String) The Status of the secret.
Look up Existing ContainerAlbCert Resource
Get an existing ContainerAlbCert resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ContainerAlbCertState, opts?: CustomResourceOptions): ContainerAlbCert
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cert_crn: Optional[str] = None,
cloud_cert_instance_id: Optional[str] = None,
cluster_id: Optional[str] = None,
container_alb_cert_id: Optional[str] = None,
domain_name: Optional[str] = None,
expires_on: Optional[str] = None,
issuer_name: Optional[str] = None,
namespace: Optional[str] = None,
persistence: Optional[bool] = None,
region: Optional[str] = None,
secret_name: Optional[str] = None,
status: Optional[str] = None,
timeouts: Optional[ContainerAlbCertTimeoutsArgs] = None) -> ContainerAlbCert
func GetContainerAlbCert(ctx *Context, name string, id IDInput, state *ContainerAlbCertState, opts ...ResourceOption) (*ContainerAlbCert, error)
public static ContainerAlbCert Get(string name, Input<string> id, ContainerAlbCertState? state, CustomResourceOptions? opts = null)
public static ContainerAlbCert get(String name, Output<String> id, ContainerAlbCertState state, CustomResourceOptions options)
resources: _: type: ibm:ContainerAlbCert get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cert
Crn string - The CRN of the certificate that you uploaded to IBM Cloud Certificate Manager.
- Cloud
Cert stringInstance Id - (String) The IBM Cloud Certificate Manager instance ID from which the certificate was downloaded.
- Cluster
Id string - The ID of the cluster that hosts the Ingress ALB that you want to configure for SSL traffic.
- Container
Alb stringCert Id - (String) The unique identifier of the certificate in the format
<cluster_name_id>/<secret_name>
. - Domain
Name string - (String) The domain name of the certificate.
- Expires
On string - Date - The date the certificate expires.
- Issuer
Name string - (String) The name of the issuer of the certificate.
- Namespace string
- Optional- The namespace in which the secret is created. Default value is
ibm-cert-store
. - Persistence bool
- Persist the secret data in your cluster. If the secret is later deleted from the command line or OpenShift web console, the secret is automatically re-created in your cluster.
- Region string
- region name
- Secret
Name string - The name of the ALB certificate secret.
- Status string
- (String) The Status of the secret.
- Timeouts
Container
Alb Cert Timeouts
- Cert
Crn string - The CRN of the certificate that you uploaded to IBM Cloud Certificate Manager.
- Cloud
Cert stringInstance Id - (String) The IBM Cloud Certificate Manager instance ID from which the certificate was downloaded.
- Cluster
Id string - The ID of the cluster that hosts the Ingress ALB that you want to configure for SSL traffic.
- Container
Alb stringCert Id - (String) The unique identifier of the certificate in the format
<cluster_name_id>/<secret_name>
. - Domain
Name string - (String) The domain name of the certificate.
- Expires
On string - Date - The date the certificate expires.
- Issuer
Name string - (String) The name of the issuer of the certificate.
- Namespace string
- Optional- The namespace in which the secret is created. Default value is
ibm-cert-store
. - Persistence bool
- Persist the secret data in your cluster. If the secret is later deleted from the command line or OpenShift web console, the secret is automatically re-created in your cluster.
- Region string
- region name
- Secret
Name string - The name of the ALB certificate secret.
- Status string
- (String) The Status of the secret.
- Timeouts
Container
Alb Cert Timeouts Args
- cert
Crn String - The CRN of the certificate that you uploaded to IBM Cloud Certificate Manager.
- cloud
Cert StringInstance Id - (String) The IBM Cloud Certificate Manager instance ID from which the certificate was downloaded.
- cluster
Id String - The ID of the cluster that hosts the Ingress ALB that you want to configure for SSL traffic.
- container
Alb StringCert Id - (String) The unique identifier of the certificate in the format
<cluster_name_id>/<secret_name>
. - domain
Name String - (String) The domain name of the certificate.
- expires
On String - Date - The date the certificate expires.
- issuer
Name String - (String) The name of the issuer of the certificate.
- namespace String
- Optional- The namespace in which the secret is created. Default value is
ibm-cert-store
. - persistence Boolean
- Persist the secret data in your cluster. If the secret is later deleted from the command line or OpenShift web console, the secret is automatically re-created in your cluster.
- region String
- region name
- secret
Name String - The name of the ALB certificate secret.
- status String
- (String) The Status of the secret.
- timeouts
Container
Alb Cert Timeouts
- cert
Crn string - The CRN of the certificate that you uploaded to IBM Cloud Certificate Manager.
- cloud
Cert stringInstance Id - (String) The IBM Cloud Certificate Manager instance ID from which the certificate was downloaded.
- cluster
Id string - The ID of the cluster that hosts the Ingress ALB that you want to configure for SSL traffic.
- container
Alb stringCert Id - (String) The unique identifier of the certificate in the format
<cluster_name_id>/<secret_name>
. - domain
Name string - (String) The domain name of the certificate.
- expires
On string - Date - The date the certificate expires.
- issuer
Name string - (String) The name of the issuer of the certificate.
- namespace string
- Optional- The namespace in which the secret is created. Default value is
ibm-cert-store
. - persistence boolean
- Persist the secret data in your cluster. If the secret is later deleted from the command line or OpenShift web console, the secret is automatically re-created in your cluster.
- region string
- region name
- secret
Name string - The name of the ALB certificate secret.
- status string
- (String) The Status of the secret.
- timeouts
Container
Alb Cert Timeouts
- cert_
crn str - The CRN of the certificate that you uploaded to IBM Cloud Certificate Manager.
- cloud_
cert_ strinstance_ id - (String) The IBM Cloud Certificate Manager instance ID from which the certificate was downloaded.
- cluster_
id str - The ID of the cluster that hosts the Ingress ALB that you want to configure for SSL traffic.
- container_
alb_ strcert_ id - (String) The unique identifier of the certificate in the format
<cluster_name_id>/<secret_name>
. - domain_
name str - (String) The domain name of the certificate.
- expires_
on str - Date - The date the certificate expires.
- issuer_
name str - (String) The name of the issuer of the certificate.
- namespace str
- Optional- The namespace in which the secret is created. Default value is
ibm-cert-store
. - persistence bool
- Persist the secret data in your cluster. If the secret is later deleted from the command line or OpenShift web console, the secret is automatically re-created in your cluster.
- region str
- region name
- secret_
name str - The name of the ALB certificate secret.
- status str
- (String) The Status of the secret.
- timeouts
Container
Alb Cert Timeouts Args
- cert
Crn String - The CRN of the certificate that you uploaded to IBM Cloud Certificate Manager.
- cloud
Cert StringInstance Id - (String) The IBM Cloud Certificate Manager instance ID from which the certificate was downloaded.
- cluster
Id String - The ID of the cluster that hosts the Ingress ALB that you want to configure for SSL traffic.
- container
Alb StringCert Id - (String) The unique identifier of the certificate in the format
<cluster_name_id>/<secret_name>
. - domain
Name String - (String) The domain name of the certificate.
- expires
On String - Date - The date the certificate expires.
- issuer
Name String - (String) The name of the issuer of the certificate.
- namespace String
- Optional- The namespace in which the secret is created. Default value is
ibm-cert-store
. - persistence Boolean
- Persist the secret data in your cluster. If the secret is later deleted from the command line or OpenShift web console, the secret is automatically re-created in your cluster.
- region String
- region name
- secret
Name String - The name of the ALB certificate secret.
- status String
- (String) The Status of the secret.
- timeouts Property Map
Supporting Types
ContainerAlbCertTimeouts, ContainerAlbCertTimeoutsArgs
Import
The ibm_container_alb_cert
can be imported by using cluster_id, and secret_name.
Example
$ pulumi import ibm:index/containerAlbCert:ContainerAlbCert example 166179849c9a469581f28939874d0c82/mysecret
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.