harness.InfrastructureDefinition
Resource for creating am infrastructure definition. This resource uses the config-as-code API’s. When updating the name
or path
of this resource you should typically also set the create_before_destroy = true
lifecycle setting.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Harness = Lbrlabs.PulumiPackage.Harness;
return await Deployment.RunAsync(() =>
{
// Creating a Kubernetes infrastructure definition
var devKubernetes = new Harness.Cloudprovider.Kubernetes("devKubernetes", new()
{
Authentication = new Harness.Cloudprovider.Inputs.KubernetesAuthenticationArgs
{
DelegateSelectors = new[]
{
"k8s",
},
},
});
var example = new Harness.Application("example");
var devEnvironment = new Harness.Environment("devEnvironment", new()
{
AppId = example.Id,
Type = "NON_PROD",
});
var k8s = new Harness.InfrastructureDefinition("k8s", new()
{
AppId = example.Id,
EnvId = devEnvironment.Id,
CloudProviderType = "KUBERNETES_CLUSTER",
DeploymentType = "KUBERNETES",
Kubernetes = new Harness.Inputs.InfrastructureDefinitionKubernetesArgs
{
CloudProviderName = devKubernetes.Name,
Namespace = "dev",
ReleaseName = service.Name,
},
});
});
package main
import (
"github.com/lbrlabs/pulumi-harness/sdk/go/harness"
"github.com/lbrlabs/pulumi-harness/sdk/go/harness/cloudprovider"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
devKubernetes, err := cloudprovider.NewKubernetes(ctx, "devKubernetes", &cloudprovider.KubernetesArgs{
Authentication: &cloudprovider.KubernetesAuthenticationArgs{
DelegateSelectors: pulumi.StringArray{
pulumi.String("k8s"),
},
},
})
if err != nil {
return err
}
example, err := harness.NewApplication(ctx, "example", nil)
if err != nil {
return err
}
devEnvironment, err := harness.NewEnvironment(ctx, "devEnvironment", &harness.EnvironmentArgs{
AppId: example.ID(),
Type: pulumi.String("NON_PROD"),
})
if err != nil {
return err
}
_, err = harness.NewInfrastructureDefinition(ctx, "k8s", &harness.InfrastructureDefinitionArgs{
AppId: example.ID(),
EnvId: devEnvironment.ID(),
CloudProviderType: pulumi.String("KUBERNETES_CLUSTER"),
DeploymentType: pulumi.String("KUBERNETES"),
Kubernetes: &InfrastructureDefinitionKubernetesArgs{
CloudProviderName: devKubernetes.Name,
Namespace: pulumi.String("dev"),
ReleaseName: pulumi.Any(service.Name),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.cloudprovider.Kubernetes;
import com.pulumi.harness.cloudprovider.KubernetesArgs;
import com.pulumi.harness.cloudprovider.inputs.KubernetesAuthenticationArgs;
import com.pulumi.harness.Application;
import com.pulumi.harness.Environment;
import com.pulumi.harness.EnvironmentArgs;
import com.pulumi.harness.InfrastructureDefinition;
import com.pulumi.harness.InfrastructureDefinitionArgs;
import com.pulumi.harness.inputs.InfrastructureDefinitionKubernetesArgs;
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 devKubernetes = new Kubernetes("devKubernetes", KubernetesArgs.builder()
.authentication(KubernetesAuthenticationArgs.builder()
.delegateSelectors("k8s")
.build())
.build());
var example = new Application("example");
var devEnvironment = new Environment("devEnvironment", EnvironmentArgs.builder()
.appId(example.id())
.type("NON_PROD")
.build());
var k8s = new InfrastructureDefinition("k8s", InfrastructureDefinitionArgs.builder()
.appId(example.id())
.envId(devEnvironment.id())
.cloudProviderType("KUBERNETES_CLUSTER")
.deploymentType("KUBERNETES")
.kubernetes(InfrastructureDefinitionKubernetesArgs.builder()
.cloudProviderName(devKubernetes.name())
.namespace("dev")
.releaseName(service.name())
.build())
.build());
}
}
import pulumi
import lbrlabs_pulumi_harness as harness
# Creating a Kubernetes infrastructure definition
dev_kubernetes = harness.cloudprovider.Kubernetes("devKubernetes", authentication=harness.cloudprovider.KubernetesAuthenticationArgs(
delegate_selectors=["k8s"],
))
example = harness.Application("example")
dev_environment = harness.Environment("devEnvironment",
app_id=example.id,
type="NON_PROD")
k8s = harness.InfrastructureDefinition("k8s",
app_id=example.id,
env_id=dev_environment.id,
cloud_provider_type="KUBERNETES_CLUSTER",
deployment_type="KUBERNETES",
kubernetes=harness.InfrastructureDefinitionKubernetesArgs(
cloud_provider_name=dev_kubernetes.name,
namespace="dev",
release_name=service["name"],
))
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@lbrlabs/pulumi-harness";
// Creating a Kubernetes infrastructure definition
const devKubernetes = new harness.cloudprovider.Kubernetes("devKubernetes", {authentication: {
delegateSelectors: ["k8s"],
}});
const example = new harness.Application("example", {});
const devEnvironment = new harness.Environment("devEnvironment", {
appId: example.id,
type: "NON_PROD",
});
const k8s = new harness.InfrastructureDefinition("k8s", {
appId: example.id,
envId: devEnvironment.id,
cloudProviderType: "KUBERNETES_CLUSTER",
deploymentType: "KUBERNETES",
kubernetes: {
cloudProviderName: devKubernetes.name,
namespace: "dev",
releaseName: service.name,
},
});
resources:
# Creating a Kubernetes infrastructure definition
devKubernetes:
type: harness:cloudprovider:Kubernetes
properties:
authentication:
delegateSelectors:
- k8s
example:
type: harness:Application
devEnvironment:
type: harness:Environment
properties:
appId: ${example.id}
type: NON_PROD
k8s:
type: harness:InfrastructureDefinition
properties:
appId: ${example.id}
envId: ${devEnvironment.id}
cloudProviderType: KUBERNETES_CLUSTER
deploymentType: KUBERNETES
kubernetes:
cloudProviderName: ${devKubernetes.name}
namespace: dev
releaseName: ${service.name}
Create InfrastructureDefinition Resource
new InfrastructureDefinition(name: string, args: InfrastructureDefinitionArgs, opts?: CustomResourceOptions);
@overload
def InfrastructureDefinition(resource_name: str,
opts: Optional[ResourceOptions] = None,
app_id: Optional[str] = None,
aws_ami: Optional[InfrastructureDefinitionAwsAmiArgs] = None,
aws_ecs: Optional[InfrastructureDefinitionAwsEcsArgs] = None,
aws_lambda: Optional[InfrastructureDefinitionAwsLambdaArgs] = None,
aws_ssh: Optional[InfrastructureDefinitionAwsSshArgs] = None,
aws_winrm: Optional[InfrastructureDefinitionAwsWinrmArgs] = None,
azure_vmss: Optional[InfrastructureDefinitionAzureVmssArgs] = None,
azure_webapp: Optional[InfrastructureDefinitionAzureWebappArgs] = None,
cloud_provider_type: Optional[str] = None,
datacenter_ssh: Optional[InfrastructureDefinitionDatacenterSshArgs] = None,
datacenter_winrm: Optional[InfrastructureDefinitionDatacenterWinrmArgs] = None,
deployment_template_uri: Optional[str] = None,
deployment_type: Optional[str] = None,
env_id: Optional[str] = None,
kubernetes: Optional[InfrastructureDefinitionKubernetesArgs] = None,
kubernetes_gcp: Optional[InfrastructureDefinitionKubernetesGcpArgs] = None,
name: Optional[str] = None,
provisioner_name: Optional[str] = None,
scoped_services: Optional[Sequence[str]] = None,
tanzu: Optional[InfrastructureDefinitionTanzuArgs] = None)
@overload
def InfrastructureDefinition(resource_name: str,
args: InfrastructureDefinitionArgs,
opts: Optional[ResourceOptions] = None)
func NewInfrastructureDefinition(ctx *Context, name string, args InfrastructureDefinitionArgs, opts ...ResourceOption) (*InfrastructureDefinition, error)
public InfrastructureDefinition(string name, InfrastructureDefinitionArgs args, CustomResourceOptions? opts = null)
public InfrastructureDefinition(String name, InfrastructureDefinitionArgs args)
public InfrastructureDefinition(String name, InfrastructureDefinitionArgs args, CustomResourceOptions options)
type: harness:InfrastructureDefinition
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InfrastructureDefinitionArgs
- 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 InfrastructureDefinitionArgs
- 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 InfrastructureDefinitionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InfrastructureDefinitionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InfrastructureDefinitionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
InfrastructureDefinition Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The InfrastructureDefinition resource accepts the following input properties:
- App
Id string The id of the application the infrastructure definition belongs to.
- Cloud
Provider stringType The type of the cloud provider to connect with. Valid options are AWS, AZURE, CUSTOM, PHYSICALDATACENTER, KUBERNETESCLUSTER, PCF, SPOTINST
- Deployment
Type string The type of the deployment to use. Valid options are AMI, AWSCODEDEPLOY, AWSLAMBDA, AZUREVMSS, AZUREWEBAPP, Custom, ECS, HELM, KUBERNETES, PCF, SSH, WINRM
- Env
Id string The id of the environment the infrastructure definition belongs to.
- Aws
Ami Lbrlabs.Pulumi Package. Harness. Inputs. Infrastructure Definition Aws Ami Args The configuration details for Aws AMI deployments.
- Aws
Ecs Lbrlabs.Pulumi Package. Harness. Inputs. Infrastructure Definition Aws Ecs Args The configuration details for Aws AMI deployments.
- Aws
Lambda Lbrlabs.Pulumi Package. Harness. Inputs. Infrastructure Definition Aws Lambda Args The configuration details for Aws Lambda deployments.
- Aws
Ssh Lbrlabs.Pulumi Package. Harness. Inputs. Infrastructure Definition Aws Ssh Args The configuration details for AWS SSH deployments.
- Aws
Winrm Lbrlabs.Pulumi Package. Harness. Inputs. Infrastructure Definition Aws Winrm Args The configuration details for AWS WinRM deployments.
- Azure
Vmss Lbrlabs.Pulumi Package. Harness. Inputs. Infrastructure Definition Azure Vmss Args The configuration details for Azure VMSS deployments.
- Azure
Webapp Lbrlabs.Pulumi Package. Harness. Inputs. Infrastructure Definition Azure Webapp Args The configuration details for Azure WebApp deployments.
- Datacenter
Ssh Lbrlabs.Pulumi Package. Harness. Inputs. Infrastructure Definition Datacenter Ssh Args The configuration details for SSH datacenter deployments.
- Datacenter
Winrm Lbrlabs.Pulumi Package. Harness. Inputs. Infrastructure Definition Datacenter Winrm Args The configuration details for WinRM datacenter deployments.
- Deployment
Template stringUri The URI of the deployment template to use. Only used if deployment_type is
CUSTOM
.- Kubernetes
Lbrlabs.
Pulumi Package. Harness. Inputs. Infrastructure Definition Kubernetes Args The configuration details for Kubernetes deployments.
- Kubernetes
Gcp Lbrlabs.Pulumi Package. Harness. Inputs. Infrastructure Definition Kubernetes Gcp Args The configuration details for Kubernetes on GCP deployments.
- Name string
The name of the infrastructure definition
- Provisioner
Name string The name of the infrastructure provisioner to use.
- Scoped
Services List<string> The list of service names to scope this infrastructure definition to.
- Tanzu
Lbrlabs.
Pulumi Package. Harness. Inputs. Infrastructure Definition Tanzu Args The configuration details for PCF deployments.
- App
Id string The id of the application the infrastructure definition belongs to.
- Cloud
Provider stringType The type of the cloud provider to connect with. Valid options are AWS, AZURE, CUSTOM, PHYSICALDATACENTER, KUBERNETESCLUSTER, PCF, SPOTINST
- Deployment
Type string The type of the deployment to use. Valid options are AMI, AWSCODEDEPLOY, AWSLAMBDA, AZUREVMSS, AZUREWEBAPP, Custom, ECS, HELM, KUBERNETES, PCF, SSH, WINRM
- Env
Id string The id of the environment the infrastructure definition belongs to.
- Aws
Ami InfrastructureDefinition Aws Ami Args The configuration details for Aws AMI deployments.
- Aws
Ecs InfrastructureDefinition Aws Ecs Args The configuration details for Aws AMI deployments.
- Aws
Lambda InfrastructureDefinition Aws Lambda Args The configuration details for Aws Lambda deployments.
- Aws
Ssh InfrastructureDefinition Aws Ssh Args The configuration details for AWS SSH deployments.
- Aws
Winrm InfrastructureDefinition Aws Winrm Args The configuration details for AWS WinRM deployments.
- Azure
Vmss InfrastructureDefinition Azure Vmss Args The configuration details for Azure VMSS deployments.
- Azure
Webapp InfrastructureDefinition Azure Webapp Args The configuration details for Azure WebApp deployments.
- Datacenter
Ssh InfrastructureDefinition Datacenter Ssh Args The configuration details for SSH datacenter deployments.
- Datacenter
Winrm InfrastructureDefinition Datacenter Winrm Args The configuration details for WinRM datacenter deployments.
- Deployment
Template stringUri The URI of the deployment template to use. Only used if deployment_type is
CUSTOM
.- Kubernetes
Infrastructure
Definition Kubernetes Args The configuration details for Kubernetes deployments.
- Kubernetes
Gcp InfrastructureDefinition Kubernetes Gcp Args The configuration details for Kubernetes on GCP deployments.
- Name string
The name of the infrastructure definition
- Provisioner
Name string The name of the infrastructure provisioner to use.
- Scoped
Services []string The list of service names to scope this infrastructure definition to.
- Tanzu
Infrastructure
Definition Tanzu Args The configuration details for PCF deployments.
- app
Id String The id of the application the infrastructure definition belongs to.
- cloud
Provider StringType The type of the cloud provider to connect with. Valid options are AWS, AZURE, CUSTOM, PHYSICALDATACENTER, KUBERNETESCLUSTER, PCF, SPOTINST
- deployment
Type String The type of the deployment to use. Valid options are AMI, AWSCODEDEPLOY, AWSLAMBDA, AZUREVMSS, AZUREWEBAPP, Custom, ECS, HELM, KUBERNETES, PCF, SSH, WINRM
- env
Id String The id of the environment the infrastructure definition belongs to.
- aws
Ami InfrastructureDefinition Aws Ami Args The configuration details for Aws AMI deployments.
- aws
Ecs InfrastructureDefinition Aws Ecs Args The configuration details for Aws AMI deployments.
- aws
Lambda InfrastructureDefinition Aws Lambda Args The configuration details for Aws Lambda deployments.
- aws
Ssh InfrastructureDefinition Aws Ssh Args The configuration details for AWS SSH deployments.
- aws
Winrm InfrastructureDefinition Aws Winrm Args The configuration details for AWS WinRM deployments.
- azure
Vmss InfrastructureDefinition Azure Vmss Args The configuration details for Azure VMSS deployments.
- azure
Webapp InfrastructureDefinition Azure Webapp Args The configuration details for Azure WebApp deployments.
- datacenter
Ssh InfrastructureDefinition Datacenter Ssh Args The configuration details for SSH datacenter deployments.
- datacenter
Winrm InfrastructureDefinition Datacenter Winrm Args The configuration details for WinRM datacenter deployments.
- deployment
Template StringUri The URI of the deployment template to use. Only used if deployment_type is
CUSTOM
.- kubernetes
Infrastructure
Definition Kubernetes Args The configuration details for Kubernetes deployments.
- kubernetes
Gcp InfrastructureDefinition Kubernetes Gcp Args The configuration details for Kubernetes on GCP deployments.
- name String
The name of the infrastructure definition
- provisioner
Name String The name of the infrastructure provisioner to use.
- scoped
Services List<String> The list of service names to scope this infrastructure definition to.
- tanzu
Infrastructure
Definition Tanzu Args The configuration details for PCF deployments.
- app
Id string The id of the application the infrastructure definition belongs to.
- cloud
Provider stringType The type of the cloud provider to connect with. Valid options are AWS, AZURE, CUSTOM, PHYSICALDATACENTER, KUBERNETESCLUSTER, PCF, SPOTINST
- deployment
Type string The type of the deployment to use. Valid options are AMI, AWSCODEDEPLOY, AWSLAMBDA, AZUREVMSS, AZUREWEBAPP, Custom, ECS, HELM, KUBERNETES, PCF, SSH, WINRM
- env
Id string The id of the environment the infrastructure definition belongs to.
- aws
Ami InfrastructureDefinition Aws Ami Args The configuration details for Aws AMI deployments.
- aws
Ecs InfrastructureDefinition Aws Ecs Args The configuration details for Aws AMI deployments.
- aws
Lambda InfrastructureDefinition Aws Lambda Args The configuration details for Aws Lambda deployments.
- aws
Ssh InfrastructureDefinition Aws Ssh Args The configuration details for AWS SSH deployments.
- aws
Winrm InfrastructureDefinition Aws Winrm Args The configuration details for AWS WinRM deployments.
- azure
Vmss InfrastructureDefinition Azure Vmss Args The configuration details for Azure VMSS deployments.
- azure
Webapp InfrastructureDefinition Azure Webapp Args The configuration details for Azure WebApp deployments.
- datacenter
Ssh InfrastructureDefinition Datacenter Ssh Args The configuration details for SSH datacenter deployments.
- datacenter
Winrm InfrastructureDefinition Datacenter Winrm Args The configuration details for WinRM datacenter deployments.
- deployment
Template stringUri The URI of the deployment template to use. Only used if deployment_type is
CUSTOM
.- kubernetes
Infrastructure
Definition Kubernetes Args The configuration details for Kubernetes deployments.
- kubernetes
Gcp InfrastructureDefinition Kubernetes Gcp Args The configuration details for Kubernetes on GCP deployments.
- name string
The name of the infrastructure definition
- provisioner
Name string The name of the infrastructure provisioner to use.
- scoped
Services string[] The list of service names to scope this infrastructure definition to.
- tanzu
Infrastructure
Definition Tanzu Args The configuration details for PCF deployments.
- app_
id str The id of the application the infrastructure definition belongs to.
- cloud_
provider_ strtype The type of the cloud provider to connect with. Valid options are AWS, AZURE, CUSTOM, PHYSICALDATACENTER, KUBERNETESCLUSTER, PCF, SPOTINST
- deployment_
type str The type of the deployment to use. Valid options are AMI, AWSCODEDEPLOY, AWSLAMBDA, AZUREVMSS, AZUREWEBAPP, Custom, ECS, HELM, KUBERNETES, PCF, SSH, WINRM
- env_
id str The id of the environment the infrastructure definition belongs to.
- aws_
ami InfrastructureDefinition Aws Ami Args The configuration details for Aws AMI deployments.
- aws_
ecs InfrastructureDefinition Aws Ecs Args The configuration details for Aws AMI deployments.
- aws_
lambda InfrastructureDefinition Aws Lambda Args The configuration details for Aws Lambda deployments.
- aws_
ssh InfrastructureDefinition Aws Ssh Args The configuration details for AWS SSH deployments.
- aws_
winrm InfrastructureDefinition Aws Winrm Args The configuration details for AWS WinRM deployments.
- azure_
vmss InfrastructureDefinition Azure Vmss Args The configuration details for Azure VMSS deployments.
- azure_
webapp InfrastructureDefinition Azure Webapp Args The configuration details for Azure WebApp deployments.
- datacenter_
ssh InfrastructureDefinition Datacenter Ssh Args The configuration details for SSH datacenter deployments.
- datacenter_
winrm InfrastructureDefinition Datacenter Winrm Args The configuration details for WinRM datacenter deployments.
- deployment_
template_ struri The URI of the deployment template to use. Only used if deployment_type is
CUSTOM
.- kubernetes
Infrastructure
Definition Kubernetes Args The configuration details for Kubernetes deployments.
- kubernetes_
gcp InfrastructureDefinition Kubernetes Gcp Args The configuration details for Kubernetes on GCP deployments.
- name str
The name of the infrastructure definition
- provisioner_
name str The name of the infrastructure provisioner to use.
- scoped_
services Sequence[str] The list of service names to scope this infrastructure definition to.
- tanzu
Infrastructure
Definition Tanzu Args The configuration details for PCF deployments.
- app
Id String The id of the application the infrastructure definition belongs to.
- cloud
Provider StringType The type of the cloud provider to connect with. Valid options are AWS, AZURE, CUSTOM, PHYSICALDATACENTER, KUBERNETESCLUSTER, PCF, SPOTINST
- deployment
Type String The type of the deployment to use. Valid options are AMI, AWSCODEDEPLOY, AWSLAMBDA, AZUREVMSS, AZUREWEBAPP, Custom, ECS, HELM, KUBERNETES, PCF, SSH, WINRM
- env
Id String The id of the environment the infrastructure definition belongs to.
- aws
Ami Property Map The configuration details for Aws AMI deployments.
- aws
Ecs Property Map The configuration details for Aws AMI deployments.
- aws
Lambda Property Map The configuration details for Aws Lambda deployments.
- aws
Ssh Property Map The configuration details for AWS SSH deployments.
- aws
Winrm Property Map The configuration details for AWS WinRM deployments.
- azure
Vmss Property Map The configuration details for Azure VMSS deployments.
- azure
Webapp Property Map The configuration details for Azure WebApp deployments.
- datacenter
Ssh Property Map The configuration details for SSH datacenter deployments.
- datacenter
Winrm Property Map The configuration details for WinRM datacenter deployments.
- deployment
Template StringUri The URI of the deployment template to use. Only used if deployment_type is
CUSTOM
.- kubernetes Property Map
The configuration details for Kubernetes deployments.
- kubernetes
Gcp Property Map The configuration details for Kubernetes on GCP deployments.
- name String
The name of the infrastructure definition
- provisioner
Name String The name of the infrastructure provisioner to use.
- scoped
Services List<String> The list of service names to scope this infrastructure definition to.
- tanzu Property Map
The configuration details for PCF deployments.
Outputs
All input properties are implicitly available as output properties. Additionally, the InfrastructureDefinition resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing InfrastructureDefinition Resource
Get an existing InfrastructureDefinition 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?: InfrastructureDefinitionState, opts?: CustomResourceOptions): InfrastructureDefinition
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
app_id: Optional[str] = None,
aws_ami: Optional[InfrastructureDefinitionAwsAmiArgs] = None,
aws_ecs: Optional[InfrastructureDefinitionAwsEcsArgs] = None,
aws_lambda: Optional[InfrastructureDefinitionAwsLambdaArgs] = None,
aws_ssh: Optional[InfrastructureDefinitionAwsSshArgs] = None,
aws_winrm: Optional[InfrastructureDefinitionAwsWinrmArgs] = None,
azure_vmss: Optional[InfrastructureDefinitionAzureVmssArgs] = None,
azure_webapp: Optional[InfrastructureDefinitionAzureWebappArgs] = None,
cloud_provider_type: Optional[str] = None,
datacenter_ssh: Optional[InfrastructureDefinitionDatacenterSshArgs] = None,
datacenter_winrm: Optional[InfrastructureDefinitionDatacenterWinrmArgs] = None,
deployment_template_uri: Optional[str] = None,
deployment_type: Optional[str] = None,
env_id: Optional[str] = None,
kubernetes: Optional[InfrastructureDefinitionKubernetesArgs] = None,
kubernetes_gcp: Optional[InfrastructureDefinitionKubernetesGcpArgs] = None,
name: Optional[str] = None,
provisioner_name: Optional[str] = None,
scoped_services: Optional[Sequence[str]] = None,
tanzu: Optional[InfrastructureDefinitionTanzuArgs] = None) -> InfrastructureDefinition
func GetInfrastructureDefinition(ctx *Context, name string, id IDInput, state *InfrastructureDefinitionState, opts ...ResourceOption) (*InfrastructureDefinition, error)
public static InfrastructureDefinition Get(string name, Input<string> id, InfrastructureDefinitionState? state, CustomResourceOptions? opts = null)
public static InfrastructureDefinition get(String name, Output<String> id, InfrastructureDefinitionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- App
Id string The id of the application the infrastructure definition belongs to.
- Aws
Ami Lbrlabs.Pulumi Package. Harness. Inputs. Infrastructure Definition Aws Ami Args The configuration details for Aws AMI deployments.
- Aws
Ecs Lbrlabs.Pulumi Package. Harness. Inputs. Infrastructure Definition Aws Ecs Args The configuration details for Aws AMI deployments.
- Aws
Lambda Lbrlabs.Pulumi Package. Harness. Inputs. Infrastructure Definition Aws Lambda Args The configuration details for Aws Lambda deployments.
- Aws
Ssh Lbrlabs.Pulumi Package. Harness. Inputs. Infrastructure Definition Aws Ssh Args The configuration details for AWS SSH deployments.
- Aws
Winrm Lbrlabs.Pulumi Package. Harness. Inputs. Infrastructure Definition Aws Winrm Args The configuration details for AWS WinRM deployments.
- Azure
Vmss Lbrlabs.Pulumi Package. Harness. Inputs. Infrastructure Definition Azure Vmss Args The configuration details for Azure VMSS deployments.
- Azure
Webapp Lbrlabs.Pulumi Package. Harness. Inputs. Infrastructure Definition Azure Webapp Args The configuration details for Azure WebApp deployments.
- Cloud
Provider stringType The type of the cloud provider to connect with. Valid options are AWS, AZURE, CUSTOM, PHYSICALDATACENTER, KUBERNETESCLUSTER, PCF, SPOTINST
- Datacenter
Ssh Lbrlabs.Pulumi Package. Harness. Inputs. Infrastructure Definition Datacenter Ssh Args The configuration details for SSH datacenter deployments.
- Datacenter
Winrm Lbrlabs.Pulumi Package. Harness. Inputs. Infrastructure Definition Datacenter Winrm Args The configuration details for WinRM datacenter deployments.
- Deployment
Template stringUri The URI of the deployment template to use. Only used if deployment_type is
CUSTOM
.- Deployment
Type string The type of the deployment to use. Valid options are AMI, AWSCODEDEPLOY, AWSLAMBDA, AZUREVMSS, AZUREWEBAPP, Custom, ECS, HELM, KUBERNETES, PCF, SSH, WINRM
- Env
Id string The id of the environment the infrastructure definition belongs to.
- Kubernetes
Lbrlabs.
Pulumi Package. Harness. Inputs. Infrastructure Definition Kubernetes Args The configuration details for Kubernetes deployments.
- Kubernetes
Gcp Lbrlabs.Pulumi Package. Harness. Inputs. Infrastructure Definition Kubernetes Gcp Args The configuration details for Kubernetes on GCP deployments.
- Name string
The name of the infrastructure definition
- Provisioner
Name string The name of the infrastructure provisioner to use.
- Scoped
Services List<string> The list of service names to scope this infrastructure definition to.
- Tanzu
Lbrlabs.
Pulumi Package. Harness. Inputs. Infrastructure Definition Tanzu Args The configuration details for PCF deployments.
- App
Id string The id of the application the infrastructure definition belongs to.
- Aws
Ami InfrastructureDefinition Aws Ami Args The configuration details for Aws AMI deployments.
- Aws
Ecs InfrastructureDefinition Aws Ecs Args The configuration details for Aws AMI deployments.
- Aws
Lambda InfrastructureDefinition Aws Lambda Args The configuration details for Aws Lambda deployments.
- Aws
Ssh InfrastructureDefinition Aws Ssh Args The configuration details for AWS SSH deployments.
- Aws
Winrm InfrastructureDefinition Aws Winrm Args The configuration details for AWS WinRM deployments.
- Azure
Vmss InfrastructureDefinition Azure Vmss Args The configuration details for Azure VMSS deployments.
- Azure
Webapp InfrastructureDefinition Azure Webapp Args The configuration details for Azure WebApp deployments.
- Cloud
Provider stringType The type of the cloud provider to connect with. Valid options are AWS, AZURE, CUSTOM, PHYSICALDATACENTER, KUBERNETESCLUSTER, PCF, SPOTINST
- Datacenter
Ssh InfrastructureDefinition Datacenter Ssh Args The configuration details for SSH datacenter deployments.
- Datacenter
Winrm InfrastructureDefinition Datacenter Winrm Args The configuration details for WinRM datacenter deployments.
- Deployment
Template stringUri The URI of the deployment template to use. Only used if deployment_type is
CUSTOM
.- Deployment
Type string The type of the deployment to use. Valid options are AMI, AWSCODEDEPLOY, AWSLAMBDA, AZUREVMSS, AZUREWEBAPP, Custom, ECS, HELM, KUBERNETES, PCF, SSH, WINRM
- Env
Id string The id of the environment the infrastructure definition belongs to.
- Kubernetes
Infrastructure
Definition Kubernetes Args The configuration details for Kubernetes deployments.
- Kubernetes
Gcp InfrastructureDefinition Kubernetes Gcp Args The configuration details for Kubernetes on GCP deployments.
- Name string
The name of the infrastructure definition
- Provisioner
Name string The name of the infrastructure provisioner to use.
- Scoped
Services []string The list of service names to scope this infrastructure definition to.
- Tanzu
Infrastructure
Definition Tanzu Args The configuration details for PCF deployments.
- app
Id String The id of the application the infrastructure definition belongs to.
- aws
Ami InfrastructureDefinition Aws Ami Args The configuration details for Aws AMI deployments.
- aws
Ecs InfrastructureDefinition Aws Ecs Args The configuration details for Aws AMI deployments.
- aws
Lambda InfrastructureDefinition Aws Lambda Args The configuration details for Aws Lambda deployments.
- aws
Ssh InfrastructureDefinition Aws Ssh Args The configuration details for AWS SSH deployments.
- aws
Winrm InfrastructureDefinition Aws Winrm Args The configuration details for AWS WinRM deployments.
- azure
Vmss InfrastructureDefinition Azure Vmss Args The configuration details for Azure VMSS deployments.
- azure
Webapp InfrastructureDefinition Azure Webapp Args The configuration details for Azure WebApp deployments.
- cloud
Provider StringType The type of the cloud provider to connect with. Valid options are AWS, AZURE, CUSTOM, PHYSICALDATACENTER, KUBERNETESCLUSTER, PCF, SPOTINST
- datacenter
Ssh InfrastructureDefinition Datacenter Ssh Args The configuration details for SSH datacenter deployments.
- datacenter
Winrm InfrastructureDefinition Datacenter Winrm Args The configuration details for WinRM datacenter deployments.
- deployment
Template StringUri The URI of the deployment template to use. Only used if deployment_type is
CUSTOM
.- deployment
Type String The type of the deployment to use. Valid options are AMI, AWSCODEDEPLOY, AWSLAMBDA, AZUREVMSS, AZUREWEBAPP, Custom, ECS, HELM, KUBERNETES, PCF, SSH, WINRM
- env
Id String The id of the environment the infrastructure definition belongs to.
- kubernetes
Infrastructure
Definition Kubernetes Args The configuration details for Kubernetes deployments.
- kubernetes
Gcp InfrastructureDefinition Kubernetes Gcp Args The configuration details for Kubernetes on GCP deployments.
- name String
The name of the infrastructure definition
- provisioner
Name String The name of the infrastructure provisioner to use.
- scoped
Services List<String> The list of service names to scope this infrastructure definition to.
- tanzu
Infrastructure
Definition Tanzu Args The configuration details for PCF deployments.
- app
Id string The id of the application the infrastructure definition belongs to.
- aws
Ami InfrastructureDefinition Aws Ami Args The configuration details for Aws AMI deployments.
- aws
Ecs InfrastructureDefinition Aws Ecs Args The configuration details for Aws AMI deployments.
- aws
Lambda InfrastructureDefinition Aws Lambda Args The configuration details for Aws Lambda deployments.
- aws
Ssh InfrastructureDefinition Aws Ssh Args The configuration details for AWS SSH deployments.
- aws
Winrm InfrastructureDefinition Aws Winrm Args The configuration details for AWS WinRM deployments.
- azure
Vmss InfrastructureDefinition Azure Vmss Args The configuration details for Azure VMSS deployments.
- azure
Webapp InfrastructureDefinition Azure Webapp Args The configuration details for Azure WebApp deployments.
- cloud
Provider stringType The type of the cloud provider to connect with. Valid options are AWS, AZURE, CUSTOM, PHYSICALDATACENTER, KUBERNETESCLUSTER, PCF, SPOTINST
- datacenter
Ssh InfrastructureDefinition Datacenter Ssh Args The configuration details for SSH datacenter deployments.
- datacenter
Winrm InfrastructureDefinition Datacenter Winrm Args The configuration details for WinRM datacenter deployments.
- deployment
Template stringUri The URI of the deployment template to use. Only used if deployment_type is
CUSTOM
.- deployment
Type string The type of the deployment to use. Valid options are AMI, AWSCODEDEPLOY, AWSLAMBDA, AZUREVMSS, AZUREWEBAPP, Custom, ECS, HELM, KUBERNETES, PCF, SSH, WINRM
- env
Id string The id of the environment the infrastructure definition belongs to.
- kubernetes
Infrastructure
Definition Kubernetes Args The configuration details for Kubernetes deployments.
- kubernetes
Gcp InfrastructureDefinition Kubernetes Gcp Args The configuration details for Kubernetes on GCP deployments.
- name string
The name of the infrastructure definition
- provisioner
Name string The name of the infrastructure provisioner to use.
- scoped
Services string[] The list of service names to scope this infrastructure definition to.
- tanzu
Infrastructure
Definition Tanzu Args The configuration details for PCF deployments.
- app_
id str The id of the application the infrastructure definition belongs to.
- aws_
ami InfrastructureDefinition Aws Ami Args The configuration details for Aws AMI deployments.
- aws_
ecs InfrastructureDefinition Aws Ecs Args The configuration details for Aws AMI deployments.
- aws_
lambda InfrastructureDefinition Aws Lambda Args The configuration details for Aws Lambda deployments.
- aws_
ssh InfrastructureDefinition Aws Ssh Args The configuration details for AWS SSH deployments.
- aws_
winrm InfrastructureDefinition Aws Winrm Args The configuration details for AWS WinRM deployments.
- azure_
vmss InfrastructureDefinition Azure Vmss Args The configuration details for Azure VMSS deployments.
- azure_
webapp InfrastructureDefinition Azure Webapp Args The configuration details for Azure WebApp deployments.
- cloud_
provider_ strtype The type of the cloud provider to connect with. Valid options are AWS, AZURE, CUSTOM, PHYSICALDATACENTER, KUBERNETESCLUSTER, PCF, SPOTINST
- datacenter_
ssh InfrastructureDefinition Datacenter Ssh Args The configuration details for SSH datacenter deployments.
- datacenter_
winrm InfrastructureDefinition Datacenter Winrm Args The configuration details for WinRM datacenter deployments.
- deployment_
template_ struri The URI of the deployment template to use. Only used if deployment_type is
CUSTOM
.- deployment_
type str The type of the deployment to use. Valid options are AMI, AWSCODEDEPLOY, AWSLAMBDA, AZUREVMSS, AZUREWEBAPP, Custom, ECS, HELM, KUBERNETES, PCF, SSH, WINRM
- env_
id str The id of the environment the infrastructure definition belongs to.
- kubernetes
Infrastructure
Definition Kubernetes Args The configuration details for Kubernetes deployments.
- kubernetes_
gcp InfrastructureDefinition Kubernetes Gcp Args The configuration details for Kubernetes on GCP deployments.
- name str
The name of the infrastructure definition
- provisioner_
name str The name of the infrastructure provisioner to use.
- scoped_
services Sequence[str] The list of service names to scope this infrastructure definition to.
- tanzu
Infrastructure
Definition Tanzu Args The configuration details for PCF deployments.
- app
Id String The id of the application the infrastructure definition belongs to.
- aws
Ami Property Map The configuration details for Aws AMI deployments.
- aws
Ecs Property Map The configuration details for Aws AMI deployments.
- aws
Lambda Property Map The configuration details for Aws Lambda deployments.
- aws
Ssh Property Map The configuration details for AWS SSH deployments.
- aws
Winrm Property Map The configuration details for AWS WinRM deployments.
- azure
Vmss Property Map The configuration details for Azure VMSS deployments.
- azure
Webapp Property Map The configuration details for Azure WebApp deployments.
- cloud
Provider StringType The type of the cloud provider to connect with. Valid options are AWS, AZURE, CUSTOM, PHYSICALDATACENTER, KUBERNETESCLUSTER, PCF, SPOTINST
- datacenter
Ssh Property Map The configuration details for SSH datacenter deployments.
- datacenter
Winrm Property Map The configuration details for WinRM datacenter deployments.
- deployment
Template StringUri The URI of the deployment template to use. Only used if deployment_type is
CUSTOM
.- deployment
Type String The type of the deployment to use. Valid options are AMI, AWSCODEDEPLOY, AWSLAMBDA, AZUREVMSS, AZUREWEBAPP, Custom, ECS, HELM, KUBERNETES, PCF, SSH, WINRM
- env
Id String The id of the environment the infrastructure definition belongs to.
- kubernetes Property Map
The configuration details for Kubernetes deployments.
- kubernetes
Gcp Property Map The configuration details for Kubernetes on GCP deployments.
- name String
The name of the infrastructure definition
- provisioner
Name String The name of the infrastructure provisioner to use.
- scoped
Services List<String> The list of service names to scope this infrastructure definition to.
- tanzu Property Map
The configuration details for PCF deployments.
Supporting Types
InfrastructureDefinitionAwsAmi
- Ami
Deployment stringType The ami deployment type to use. Valid options are AWS_ASG, SPOTINST
- Cloud
Provider stringName The name of the cloud provider to connect with.
- Region string
The region to deploy to.
- Asg
Identifies boolWorkload Flag to indicate whether the autoscaling group identifies the workload.
- Autoscaling
Group stringName The name of the autoscaling group.
- Classic
Loadbalancers List<string> The classic load balancers to use.
- Hostname
Convention string The naming convention to use for the hostname. Defaults to ${host.ec2Instance.privateDnsName.split('.')[0]}
- Spotinst
Cloud stringProvider Name The name of the SpotInst cloud provider to connect with.
- Spotinst
Config stringJson The SpotInst configuration to use.
- Stage
Classic List<string>Loadbalancers The staging classic load balancers to use.
- Stage
Target List<string>Group Arns The staging classic load balancers to use.
- Target
Group List<string>Arns The ARN's of the target groups.
- Use
Traffic boolShift Flag to enable traffic shifting.
- Ami
Deployment stringType The ami deployment type to use. Valid options are AWS_ASG, SPOTINST
- Cloud
Provider stringName The name of the cloud provider to connect with.
- Region string
The region to deploy to.
- Asg
Identifies boolWorkload Flag to indicate whether the autoscaling group identifies the workload.
- Autoscaling
Group stringName The name of the autoscaling group.
- Classic
Loadbalancers []string The classic load balancers to use.
- Hostname
Convention string The naming convention to use for the hostname. Defaults to ${host.ec2Instance.privateDnsName.split('.')[0]}
- Spotinst
Cloud stringProvider Name The name of the SpotInst cloud provider to connect with.
- Spotinst
Config stringJson The SpotInst configuration to use.
- Stage
Classic []stringLoadbalancers The staging classic load balancers to use.
- Stage
Target []stringGroup Arns The staging classic load balancers to use.
- Target
Group []stringArns The ARN's of the target groups.
- Use
Traffic boolShift Flag to enable traffic shifting.
- ami
Deployment StringType The ami deployment type to use. Valid options are AWS_ASG, SPOTINST
- cloud
Provider StringName The name of the cloud provider to connect with.
- region String
The region to deploy to.
- asg
Identifies BooleanWorkload Flag to indicate whether the autoscaling group identifies the workload.
- autoscaling
Group StringName The name of the autoscaling group.
- classic
Loadbalancers List<String> The classic load balancers to use.
- hostname
Convention String The naming convention to use for the hostname. Defaults to ${host.ec2Instance.privateDnsName.split('.')[0]}
- spotinst
Cloud StringProvider Name The name of the SpotInst cloud provider to connect with.
- spotinst
Config StringJson The SpotInst configuration to use.
- stage
Classic List<String>Loadbalancers The staging classic load balancers to use.
- stage
Target List<String>Group Arns The staging classic load balancers to use.
- target
Group List<String>Arns The ARN's of the target groups.
- use
Traffic BooleanShift Flag to enable traffic shifting.
- ami
Deployment stringType The ami deployment type to use. Valid options are AWS_ASG, SPOTINST
- cloud
Provider stringName The name of the cloud provider to connect with.
- region string
The region to deploy to.
- asg
Identifies booleanWorkload Flag to indicate whether the autoscaling group identifies the workload.
- autoscaling
Group stringName The name of the autoscaling group.
- classic
Loadbalancers string[] The classic load balancers to use.
- hostname
Convention string The naming convention to use for the hostname. Defaults to ${host.ec2Instance.privateDnsName.split('.')[0]}
- spotinst
Cloud stringProvider Name The name of the SpotInst cloud provider to connect with.
- spotinst
Config stringJson The SpotInst configuration to use.
- stage
Classic string[]Loadbalancers The staging classic load balancers to use.
- stage
Target string[]Group Arns The staging classic load balancers to use.
- target
Group string[]Arns The ARN's of the target groups.
- use
Traffic booleanShift Flag to enable traffic shifting.
- ami_
deployment_ strtype The ami deployment type to use. Valid options are AWS_ASG, SPOTINST
- cloud_
provider_ strname The name of the cloud provider to connect with.
- region str
The region to deploy to.
- asg_
identifies_ boolworkload Flag to indicate whether the autoscaling group identifies the workload.
- autoscaling_
group_ strname The name of the autoscaling group.
- classic_
loadbalancers Sequence[str] The classic load balancers to use.
- hostname_
convention str The naming convention to use for the hostname. Defaults to ${host.ec2Instance.privateDnsName.split('.')[0]}
- spotinst_
cloud_ strprovider_ name The name of the SpotInst cloud provider to connect with.
- spotinst_
config_ strjson The SpotInst configuration to use.
- stage_
classic_ Sequence[str]loadbalancers The staging classic load balancers to use.
- stage_
target_ Sequence[str]group_ arns The staging classic load balancers to use.
- target_
group_ Sequence[str]arns The ARN's of the target groups.
- use_
traffic_ boolshift Flag to enable traffic shifting.
- ami
Deployment StringType The ami deployment type to use. Valid options are AWS_ASG, SPOTINST
- cloud
Provider StringName The name of the cloud provider to connect with.
- region String
The region to deploy to.
- asg
Identifies BooleanWorkload Flag to indicate whether the autoscaling group identifies the workload.
- autoscaling
Group StringName The name of the autoscaling group.
- classic
Loadbalancers List<String> The classic load balancers to use.
- hostname
Convention String The naming convention to use for the hostname. Defaults to ${host.ec2Instance.privateDnsName.split('.')[0]}
- spotinst
Cloud StringProvider Name The name of the SpotInst cloud provider to connect with.
- spotinst
Config StringJson The SpotInst configuration to use.
- stage
Classic List<String>Loadbalancers The staging classic load balancers to use.
- stage
Target List<String>Group Arns The staging classic load balancers to use.
- target
Group List<String>Arns The ARN's of the target groups.
- use
Traffic BooleanShift Flag to enable traffic shifting.
InfrastructureDefinitionAwsEcs
- Cloud
Provider stringName The name of the cloud provider to connect with.
- Cluster
Name string The name of the ECS cluster to use.
- Launch
Type string The type of launch configuration to use. Valid options are FARGATE
- Region string
The region to deploy to.
- Assign
Public boolIp Flag to assign a public IP address.
- Execution
Role string The ARN of the role to use for execution.
- Security
Group List<string>Ids The security group ids to apply to the ecs service.
- Subnet
Ids List<string> The subnet ids to apply to the ecs service.
- Vpc
Id string The VPC ids to use when selecting the instances.
- Cloud
Provider stringName The name of the cloud provider to connect with.
- Cluster
Name string The name of the ECS cluster to use.
- Launch
Type string The type of launch configuration to use. Valid options are FARGATE
- Region string
The region to deploy to.
- Assign
Public boolIp Flag to assign a public IP address.
- Execution
Role string The ARN of the role to use for execution.
- Security
Group []stringIds The security group ids to apply to the ecs service.
- Subnet
Ids []string The subnet ids to apply to the ecs service.
- Vpc
Id string The VPC ids to use when selecting the instances.
- cloud
Provider StringName The name of the cloud provider to connect with.
- cluster
Name String The name of the ECS cluster to use.
- launch
Type String The type of launch configuration to use. Valid options are FARGATE
- region String
The region to deploy to.
- assign
Public BooleanIp Flag to assign a public IP address.
- execution
Role String The ARN of the role to use for execution.
- security
Group List<String>Ids The security group ids to apply to the ecs service.
- subnet
Ids List<String> The subnet ids to apply to the ecs service.
- vpc
Id String The VPC ids to use when selecting the instances.
- cloud
Provider stringName The name of the cloud provider to connect with.
- cluster
Name string The name of the ECS cluster to use.
- launch
Type string The type of launch configuration to use. Valid options are FARGATE
- region string
The region to deploy to.
- assign
Public booleanIp Flag to assign a public IP address.
- execution
Role string The ARN of the role to use for execution.
- security
Group string[]Ids The security group ids to apply to the ecs service.
- subnet
Ids string[] The subnet ids to apply to the ecs service.
- vpc
Id string The VPC ids to use when selecting the instances.
- cloud_
provider_ strname The name of the cloud provider to connect with.
- cluster_
name str The name of the ECS cluster to use.
- launch_
type str The type of launch configuration to use. Valid options are FARGATE
- region str
The region to deploy to.
- assign_
public_ boolip Flag to assign a public IP address.
- execution_
role str The ARN of the role to use for execution.
- security_
group_ Sequence[str]ids The security group ids to apply to the ecs service.
- subnet_
ids Sequence[str] The subnet ids to apply to the ecs service.
- vpc_
id str The VPC ids to use when selecting the instances.
- cloud
Provider StringName The name of the cloud provider to connect with.
- cluster
Name String The name of the ECS cluster to use.
- launch
Type String The type of launch configuration to use. Valid options are FARGATE
- region String
The region to deploy to.
- assign
Public BooleanIp Flag to assign a public IP address.
- execution
Role String The ARN of the role to use for execution.
- security
Group List<String>Ids The security group ids to apply to the ecs service.
- subnet
Ids List<String> The subnet ids to apply to the ecs service.
- vpc
Id String The VPC ids to use when selecting the instances.
InfrastructureDefinitionAwsLambda
- Cloud
Provider stringName The name of the cloud provider to connect with.
- Region string
The region to deploy to.
- Iam
Role string The IAM role to use.
- Security
Group List<string>Ids The security group ids to apply to the ecs service.
- Subnet
Ids List<string> The subnet ids to apply to the ecs service.
- Vpc
Id string The VPC ids to use when selecting the instances.
- Cloud
Provider stringName The name of the cloud provider to connect with.
- Region string
The region to deploy to.
- Iam
Role string The IAM role to use.
- Security
Group []stringIds The security group ids to apply to the ecs service.
- Subnet
Ids []string The subnet ids to apply to the ecs service.
- Vpc
Id string The VPC ids to use when selecting the instances.
- cloud
Provider StringName The name of the cloud provider to connect with.
- region String
The region to deploy to.
- iam
Role String The IAM role to use.
- security
Group List<String>Ids The security group ids to apply to the ecs service.
- subnet
Ids List<String> The subnet ids to apply to the ecs service.
- vpc
Id String The VPC ids to use when selecting the instances.
- cloud
Provider stringName The name of the cloud provider to connect with.
- region string
The region to deploy to.
- iam
Role string The IAM role to use.
- security
Group string[]Ids The security group ids to apply to the ecs service.
- subnet
Ids string[] The subnet ids to apply to the ecs service.
- vpc
Id string The VPC ids to use when selecting the instances.
- cloud_
provider_ strname The name of the cloud provider to connect with.
- region str
The region to deploy to.
- iam_
role str The IAM role to use.
- security_
group_ Sequence[str]ids The security group ids to apply to the ecs service.
- subnet_
ids Sequence[str] The subnet ids to apply to the ecs service.
- vpc_
id str The VPC ids to use when selecting the instances.
- cloud
Provider StringName The name of the cloud provider to connect with.
- region String
The region to deploy to.
- iam
Role String The IAM role to use.
- security
Group List<String>Ids The security group ids to apply to the ecs service.
- subnet
Ids List<String> The subnet ids to apply to the ecs service.
- vpc
Id String The VPC ids to use when selecting the instances.
InfrastructureDefinitionAwsSsh
- Cloud
Provider stringName The name of the cloud provider to connect with.
- Host
Connection stringType The type of host connection to use. Valid options are PRIVATEDNS, PUBLICDNS, PRIVATEIP, PUBLICIP
- Region string
The region to deploy to.
- Autoscaling
Group stringName The name of the autoscaling group.
- Desired
Capacity int The desired capacity of the auto scaling group.
- Host
Connection stringAttrs Name The name of the host connection attributes to use.
- Hostname
Convention string The naming convention to use for the hostname. Defaults to ${host.ec2Instance.privateDnsName.split('.')[0]}
- Loadbalancer
Name string The name of the load balancer to use.
- List<Lbrlabs.
Pulumi Package. Harness. Inputs. Infrastructure Definition Aws Ssh Tag> The tags to use when selecting the instances.
- Vpc
Ids List<string> The VPC ids to use when selecting the instances.
- Cloud
Provider stringName The name of the cloud provider to connect with.
- Host
Connection stringType The type of host connection to use. Valid options are PRIVATEDNS, PUBLICDNS, PRIVATEIP, PUBLICIP
- Region string
The region to deploy to.
- Autoscaling
Group stringName The name of the autoscaling group.
- Desired
Capacity int The desired capacity of the auto scaling group.
- Host
Connection stringAttrs Name The name of the host connection attributes to use.
- Hostname
Convention string The naming convention to use for the hostname. Defaults to ${host.ec2Instance.privateDnsName.split('.')[0]}
- Loadbalancer
Name string The name of the load balancer to use.
- []Infrastructure
Definition Aws Ssh Tag The tags to use when selecting the instances.
- Vpc
Ids []string The VPC ids to use when selecting the instances.
- cloud
Provider StringName The name of the cloud provider to connect with.
- host
Connection StringType The type of host connection to use. Valid options are PRIVATEDNS, PUBLICDNS, PRIVATEIP, PUBLICIP
- region String
The region to deploy to.
- autoscaling
Group StringName The name of the autoscaling group.
- desired
Capacity Integer The desired capacity of the auto scaling group.
- host
Connection StringAttrs Name The name of the host connection attributes to use.
- hostname
Convention String The naming convention to use for the hostname. Defaults to ${host.ec2Instance.privateDnsName.split('.')[0]}
- loadbalancer
Name String The name of the load balancer to use.
- List<Infrastructure
Definition Aws Ssh Tag> The tags to use when selecting the instances.
- vpc
Ids List<String> The VPC ids to use when selecting the instances.
- cloud
Provider stringName The name of the cloud provider to connect with.
- host
Connection stringType The type of host connection to use. Valid options are PRIVATEDNS, PUBLICDNS, PRIVATEIP, PUBLICIP
- region string
The region to deploy to.
- autoscaling
Group stringName The name of the autoscaling group.
- desired
Capacity number The desired capacity of the auto scaling group.
- host
Connection stringAttrs Name The name of the host connection attributes to use.
- hostname
Convention string The naming convention to use for the hostname. Defaults to ${host.ec2Instance.privateDnsName.split('.')[0]}
- loadbalancer
Name string The name of the load balancer to use.
- Infrastructure
Definition Aws Ssh Tag[] The tags to use when selecting the instances.
- vpc
Ids string[] The VPC ids to use when selecting the instances.
- cloud_
provider_ strname The name of the cloud provider to connect with.
- host_
connection_ strtype The type of host connection to use. Valid options are PRIVATEDNS, PUBLICDNS, PRIVATEIP, PUBLICIP
- region str
The region to deploy to.
- autoscaling_
group_ strname The name of the autoscaling group.
- desired_
capacity int The desired capacity of the auto scaling group.
- host_
connection_ strattrs_ name The name of the host connection attributes to use.
- hostname_
convention str The naming convention to use for the hostname. Defaults to ${host.ec2Instance.privateDnsName.split('.')[0]}
- loadbalancer_
name str The name of the load balancer to use.
- Sequence[Infrastructure
Definition Aws Ssh Tag] The tags to use when selecting the instances.
- vpc_
ids Sequence[str] The VPC ids to use when selecting the instances.
- cloud
Provider StringName The name of the cloud provider to connect with.
- host
Connection StringType The type of host connection to use. Valid options are PRIVATEDNS, PUBLICDNS, PRIVATEIP, PUBLICIP
- region String
The region to deploy to.
- autoscaling
Group StringName The name of the autoscaling group.
- desired
Capacity Number The desired capacity of the auto scaling group.
- host
Connection StringAttrs Name The name of the host connection attributes to use.
- hostname
Convention String The naming convention to use for the hostname. Defaults to ${host.ec2Instance.privateDnsName.split('.')[0]}
- loadbalancer
Name String The name of the load balancer to use.
- List<Property Map>
The tags to use when selecting the instances.
- vpc
Ids List<String> The VPC ids to use when selecting the instances.
InfrastructureDefinitionAwsSshTag
InfrastructureDefinitionAwsWinrm
- Autoscaling
Group stringName The name of the autoscaling group.
- Cloud
Provider stringName The name of the cloud provider to connect with.
- Host
Connection stringAttrs Name The name of the host connection attributes to use.
- Host
Connection stringType The type of host connection to use. Valid options are PRIVATEDNS, PUBLICDNS, PRIVATEIP, PUBLICIP
- Region string
The region to deploy to.
- Desired
Capacity int The desired capacity of the autoscaling group.
- Hostname
Convention string The naming convention to use for the hostname. Defaults to ${host.ec2Instance.privateDnsName.split('.')[0]}
- Loadbalancer
Name string The name of the load balancer to use.
- Autoscaling
Group stringName The name of the autoscaling group.
- Cloud
Provider stringName The name of the cloud provider to connect with.
- Host
Connection stringAttrs Name The name of the host connection attributes to use.
- Host
Connection stringType The type of host connection to use. Valid options are PRIVATEDNS, PUBLICDNS, PRIVATEIP, PUBLICIP
- Region string
The region to deploy to.
- Desired
Capacity int The desired capacity of the autoscaling group.
- Hostname
Convention string The naming convention to use for the hostname. Defaults to ${host.ec2Instance.privateDnsName.split('.')[0]}
- Loadbalancer
Name string The name of the load balancer to use.
- autoscaling
Group StringName The name of the autoscaling group.
- cloud
Provider StringName The name of the cloud provider to connect with.
- host
Connection StringAttrs Name The name of the host connection attributes to use.
- host
Connection StringType The type of host connection to use. Valid options are PRIVATEDNS, PUBLICDNS, PRIVATEIP, PUBLICIP
- region String
The region to deploy to.
- desired
Capacity Integer The desired capacity of the autoscaling group.
- hostname
Convention String The naming convention to use for the hostname. Defaults to ${host.ec2Instance.privateDnsName.split('.')[0]}
- loadbalancer
Name String The name of the load balancer to use.
- autoscaling
Group stringName The name of the autoscaling group.
- cloud
Provider stringName The name of the cloud provider to connect with.
- host
Connection stringAttrs Name The name of the host connection attributes to use.
- host
Connection stringType The type of host connection to use. Valid options are PRIVATEDNS, PUBLICDNS, PRIVATEIP, PUBLICIP
- region string
The region to deploy to.
- desired
Capacity number The desired capacity of the autoscaling group.
- hostname
Convention string The naming convention to use for the hostname. Defaults to ${host.ec2Instance.privateDnsName.split('.')[0]}
- loadbalancer
Name string The name of the load balancer to use.
- autoscaling_
group_ strname The name of the autoscaling group.
- cloud_
provider_ strname The name of the cloud provider to connect with.
- host_
connection_ strattrs_ name The name of the host connection attributes to use.
- host_
connection_ strtype The type of host connection to use. Valid options are PRIVATEDNS, PUBLICDNS, PRIVATEIP, PUBLICIP
- region str
The region to deploy to.
- desired_
capacity int The desired capacity of the autoscaling group.
- hostname_
convention str The naming convention to use for the hostname. Defaults to ${host.ec2Instance.privateDnsName.split('.')[0]}
- loadbalancer_
name str The name of the load balancer to use.
- autoscaling
Group StringName The name of the autoscaling group.
- cloud
Provider StringName The name of the cloud provider to connect with.
- host
Connection StringAttrs Name The name of the host connection attributes to use.
- host
Connection StringType The type of host connection to use. Valid options are PRIVATEDNS, PUBLICDNS, PRIVATEIP, PUBLICIP
- region String
The region to deploy to.
- desired
Capacity Number The desired capacity of the autoscaling group.
- hostname
Convention String The naming convention to use for the hostname. Defaults to ${host.ec2Instance.privateDnsName.split('.')[0]}
- loadbalancer
Name String The name of the load balancer to use.
InfrastructureDefinitionAzureVmss
- Auth
Type string The type of authentication to use. Valid options are SSHPUBLICKEY.
- Base
Name string Base name.
- Cloud
Provider stringName The name of the cloud provider to connect with.
- Deployment
Type string The type of deployment. Valid options are NATIVE_VMSS
- Resource
Group stringName The name of the resource group.
- Subscription
Id string The unique id of the azure subscription.
- Username string
The username to connect with.
- Host
Connection stringAttrs Name The name of the host connection attributes to use.
- Auth
Type string The type of authentication to use. Valid options are SSHPUBLICKEY.
- Base
Name string Base name.
- Cloud
Provider stringName The name of the cloud provider to connect with.
- Deployment
Type string The type of deployment. Valid options are NATIVE_VMSS
- Resource
Group stringName The name of the resource group.
- Subscription
Id string The unique id of the azure subscription.
- Username string
The username to connect with.
- Host
Connection stringAttrs Name The name of the host connection attributes to use.
- auth
Type String The type of authentication to use. Valid options are SSHPUBLICKEY.
- base
Name String Base name.
- cloud
Provider StringName The name of the cloud provider to connect with.
- deployment
Type String The type of deployment. Valid options are NATIVE_VMSS
- resource
Group StringName The name of the resource group.
- subscription
Id String The unique id of the azure subscription.
- username String
The username to connect with.
- host
Connection StringAttrs Name The name of the host connection attributes to use.
- auth
Type string The type of authentication to use. Valid options are SSHPUBLICKEY.
- base
Name string Base name.
- cloud
Provider stringName The name of the cloud provider to connect with.
- deployment
Type string The type of deployment. Valid options are NATIVE_VMSS
- resource
Group stringName The name of the resource group.
- subscription
Id string The unique id of the azure subscription.
- username string
The username to connect with.
- host
Connection stringAttrs Name The name of the host connection attributes to use.
- auth_
type str The type of authentication to use. Valid options are SSHPUBLICKEY.
- base_
name str Base name.
- cloud_
provider_ strname The name of the cloud provider to connect with.
- deployment_
type str The type of deployment. Valid options are NATIVE_VMSS
- resource_
group_ strname The name of the resource group.
- subscription_
id str The unique id of the azure subscription.
- username str
The username to connect with.
- host_
connection_ strattrs_ name The name of the host connection attributes to use.
- auth
Type String The type of authentication to use. Valid options are SSHPUBLICKEY.
- base
Name String Base name.
- cloud
Provider StringName The name of the cloud provider to connect with.
- deployment
Type String The type of deployment. Valid options are NATIVE_VMSS
- resource
Group StringName The name of the resource group.
- subscription
Id String The unique id of the azure subscription.
- username String
The username to connect with.
- host
Connection StringAttrs Name The name of the host connection attributes to use.
InfrastructureDefinitionAzureWebapp
- Cloud
Provider stringName The name of the cloud provider to connect with.
- Resource
Group string The name of the resource group.
- Subscription
Id string The unique id of the azure subscription.
- Cloud
Provider stringName The name of the cloud provider to connect with.
- Resource
Group string The name of the resource group.
- Subscription
Id string The unique id of the azure subscription.
- cloud
Provider StringName The name of the cloud provider to connect with.
- resource
Group String The name of the resource group.
- subscription
Id String The unique id of the azure subscription.
- cloud
Provider stringName The name of the cloud provider to connect with.
- resource
Group string The name of the resource group.
- subscription
Id string The unique id of the azure subscription.
- cloud_
provider_ strname The name of the cloud provider to connect with.
- resource_
group str The name of the resource group.
- subscription_
id str The unique id of the azure subscription.
- cloud
Provider StringName The name of the cloud provider to connect with.
- resource
Group String The name of the resource group.
- subscription
Id String The unique id of the azure subscription.
InfrastructureDefinitionDatacenterSsh
- Cloud
Provider stringName The name of the cloud provider to connect with.
- Host
Connection stringAttributes Name The name of the SSH connection attributes to use.
- Hostnames List<string>
A list of hosts to deploy to.
- Cloud
Provider stringName The name of the cloud provider to connect with.
- Host
Connection stringAttributes Name The name of the SSH connection attributes to use.
- Hostnames []string
A list of hosts to deploy to.
- cloud
Provider StringName The name of the cloud provider to connect with.
- host
Connection StringAttributes Name The name of the SSH connection attributes to use.
- hostnames List<String>
A list of hosts to deploy to.
- cloud
Provider stringName The name of the cloud provider to connect with.
- host
Connection stringAttributes Name The name of the SSH connection attributes to use.
- hostnames string[]
A list of hosts to deploy to.
- cloud_
provider_ strname The name of the cloud provider to connect with.
- host_
connection_ strattributes_ name The name of the SSH connection attributes to use.
- hostnames Sequence[str]
A list of hosts to deploy to.
- cloud
Provider StringName The name of the cloud provider to connect with.
- host
Connection StringAttributes Name The name of the SSH connection attributes to use.
- hostnames List<String>
A list of hosts to deploy to.
InfrastructureDefinitionDatacenterWinrm
- Cloud
Provider stringName The name of the cloud provider to connect with.
- Hostnames List<string>
A list of hosts to deploy to.
- Winrm
Connection stringAttributes Name The name of the WinRM connection attributes to use.
- Cloud
Provider stringName The name of the cloud provider to connect with.
- Hostnames []string
A list of hosts to deploy to.
- Winrm
Connection stringAttributes Name The name of the WinRM connection attributes to use.
- cloud
Provider StringName The name of the cloud provider to connect with.
- hostnames List<String>
A list of hosts to deploy to.
- winrm
Connection StringAttributes Name The name of the WinRM connection attributes to use.
- cloud
Provider stringName The name of the cloud provider to connect with.
- hostnames string[]
A list of hosts to deploy to.
- winrm
Connection stringAttributes Name The name of the WinRM connection attributes to use.
- cloud_
provider_ strname The name of the cloud provider to connect with.
- hostnames Sequence[str]
A list of hosts to deploy to.
- winrm_
connection_ strattributes_ name The name of the WinRM connection attributes to use.
- cloud
Provider StringName The name of the cloud provider to connect with.
- hostnames List<String>
A list of hosts to deploy to.
- winrm
Connection StringAttributes Name The name of the WinRM connection attributes to use.
InfrastructureDefinitionKubernetes
- Cloud
Provider stringName The name of the cloud provider to connect with.
- Namespace string
The namespace in Kubernetes to deploy to.
- Release
Name string The naming convention of the release. When using Helm Native the default is ${infra.kubernetes.infraId}. For standard Kubernetes manifests the default is release-${infra.kubernetes.infraId}
- Cloud
Provider stringName The name of the cloud provider to connect with.
- Namespace string
The namespace in Kubernetes to deploy to.
- Release
Name string The naming convention of the release. When using Helm Native the default is ${infra.kubernetes.infraId}. For standard Kubernetes manifests the default is release-${infra.kubernetes.infraId}
- cloud
Provider StringName The name of the cloud provider to connect with.
- namespace String
The namespace in Kubernetes to deploy to.
- release
Name String The naming convention of the release. When using Helm Native the default is ${infra.kubernetes.infraId}. For standard Kubernetes manifests the default is release-${infra.kubernetes.infraId}
- cloud
Provider stringName The name of the cloud provider to connect with.
- namespace string
The namespace in Kubernetes to deploy to.
- release
Name string The naming convention of the release. When using Helm Native the default is ${infra.kubernetes.infraId}. For standard Kubernetes manifests the default is release-${infra.kubernetes.infraId}
- cloud_
provider_ strname The name of the cloud provider to connect with.
- namespace str
The namespace in Kubernetes to deploy to.
- release_
name str The naming convention of the release. When using Helm Native the default is ${infra.kubernetes.infraId}. For standard Kubernetes manifests the default is release-${infra.kubernetes.infraId}
- cloud
Provider StringName The name of the cloud provider to connect with.
- namespace String
The namespace in Kubernetes to deploy to.
- release
Name String The naming convention of the release. When using Helm Native the default is ${infra.kubernetes.infraId}. For standard Kubernetes manifests the default is release-${infra.kubernetes.infraId}
InfrastructureDefinitionKubernetesGcp
- Cloud
Provider stringName The name of the cloud provider to connect with.
- Cluster
Name string The name of the cluster being deployed to.
- Namespace string
The namespace in Kubernetes to deploy to.
- Release
Name string The naming convention of the release.
- Cloud
Provider stringName The name of the cloud provider to connect with.
- Cluster
Name string The name of the cluster being deployed to.
- Namespace string
The namespace in Kubernetes to deploy to.
- Release
Name string The naming convention of the release.
- cloud
Provider StringName The name of the cloud provider to connect with.
- cluster
Name String The name of the cluster being deployed to.
- namespace String
The namespace in Kubernetes to deploy to.
- release
Name String The naming convention of the release.
- cloud
Provider stringName The name of the cloud provider to connect with.
- cluster
Name string The name of the cluster being deployed to.
- namespace string
The namespace in Kubernetes to deploy to.
- release
Name string The naming convention of the release.
- cloud_
provider_ strname The name of the cloud provider to connect with.
- cluster_
name str The name of the cluster being deployed to.
- namespace str
The namespace in Kubernetes to deploy to.
- release_
name str The naming convention of the release.
- cloud
Provider StringName The name of the cloud provider to connect with.
- cluster
Name String The name of the cluster being deployed to.
- namespace String
The namespace in Kubernetes to deploy to.
- release
Name String The naming convention of the release.
InfrastructureDefinitionTanzu
- Cloud
Provider stringName The name of the cloud provider to connect with.
- Organization string
The PCF organization to use.
- Space string
The PCF space to deploy to.
- Cloud
Provider stringName The name of the cloud provider to connect with.
- Organization string
The PCF organization to use.
- Space string
The PCF space to deploy to.
- cloud
Provider StringName The name of the cloud provider to connect with.
- organization String
The PCF organization to use.
- space String
The PCF space to deploy to.
- cloud
Provider stringName The name of the cloud provider to connect with.
- organization string
The PCF organization to use.
- space string
The PCF space to deploy to.
- cloud_
provider_ strname The name of the cloud provider to connect with.
- organization str
The PCF organization to use.
- space str
The PCF space to deploy to.
- cloud
Provider StringName The name of the cloud provider to connect with.
- organization String
The PCF organization to use.
- space String
The PCF space to deploy to.
Import
Import using the Harness application id, environment id, and infrastructure definition id
$ pulumi import harness:index/infrastructureDefinition:InfrastructureDefinition example <app_id>/<env_id>/<infradef_id>
Package Details
- Repository
- harness lbrlabs/pulumi-harness
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
harness
Terraform Provider.