1. Packages
  2. Harness
  3. API Docs
  4. platform
  5. EnvironmentServiceOverrides
Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs

harness.platform.EnvironmentServiceOverrides

Explore with Pulumi AI

harness logo
Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs

    Resource for creating a Harness environment service overrides.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Lbrlabs.PulumiPackage.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Harness.Platform.EnvironmentServiceOverrides("example", new()
        {
            EnvId = "environmentIdentifier",
            OrgId = "orgIdentifier",
            ProjectId = "projectIdentifier",
            ServiceId = "serviceIdentifier",
            Yaml = @"        serviceOverrides:
              environmentRef: environmentIdentifier
              serviceRef: serviceIdentifier
              variables:
               - name: asda
                 type: String
                 value: asddad
              manifests:
                 - manifest:
                     identifier: manifestEnv
                     type: Values
                     spec:
                       store:
                         type: Git
                         spec:
                           connectorRef: <+input>
                           gitFetchType: Branch
                           paths:
                             - file1
                           repoName: <+input>
                           branch: master
              configFiles:
                 - configFile:
                     identifier: configFileEnv
                     spec:
                       store:
                         type: Harness
                         spec:
                           files:
                             - account:/Add-ons/svcOverrideTest
                           secretFiles: []
    
    ",
        });
    
    });
    
    package main
    
    import (
    	"github.com/lbrlabs/pulumi-harness/sdk/go/harness/platform"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := platform.NewEnvironmentServiceOverrides(ctx, "example", &platform.EnvironmentServiceOverridesArgs{
    			EnvId:     pulumi.String("environmentIdentifier"),
    			OrgId:     pulumi.String("orgIdentifier"),
    			ProjectId: pulumi.String("projectIdentifier"),
    			ServiceId: pulumi.String("serviceIdentifier"),
    			Yaml: pulumi.String(`        serviceOverrides:
              environmentRef: environmentIdentifier
              serviceRef: serviceIdentifier
              variables:
               - name: asda
                 type: String
                 value: asddad
              manifests:
                 - manifest:
                     identifier: manifestEnv
                     type: Values
                     spec:
                       store:
                         type: Git
                         spec:
                           connectorRef: <+input>
                           gitFetchType: Branch
                           paths:
                             - file1
                           repoName: <+input>
                           branch: master
              configFiles:
                 - configFile:
                     identifier: configFileEnv
                     spec:
                       store:
                         type: Harness
                         spec:
                           files:
                             - account:/Add-ons/svcOverrideTest
                           secretFiles: []
    
    `),
    		})
    		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.platform.EnvironmentServiceOverrides;
    import com.pulumi.harness.platform.EnvironmentServiceOverridesArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new EnvironmentServiceOverrides("example", EnvironmentServiceOverridesArgs.builder()        
                .envId("environmentIdentifier")
                .orgId("orgIdentifier")
                .projectId("projectIdentifier")
                .serviceId("serviceIdentifier")
                .yaml("""
            serviceOverrides:
              environmentRef: environmentIdentifier
              serviceRef: serviceIdentifier
              variables:
               - name: asda
                 type: String
                 value: asddad
              manifests:
                 - manifest:
                     identifier: manifestEnv
                     type: Values
                     spec:
                       store:
                         type: Git
                         spec:
                           connectorRef: <+input>
                           gitFetchType: Branch
                           paths:
                             - file1
                           repoName: <+input>
                           branch: master
              configFiles:
                 - configFile:
                     identifier: configFileEnv
                     spec:
                       store:
                         type: Harness
                         spec:
                           files:
                             - account:/Add-ons/svcOverrideTest
                           secretFiles: []
    
                """)
                .build());
    
        }
    }
    
    import pulumi
    import lbrlabs_pulumi_harness as harness
    
    example = harness.platform.EnvironmentServiceOverrides("example",
        env_id="environmentIdentifier",
        org_id="orgIdentifier",
        project_id="projectIdentifier",
        service_id="serviceIdentifier",
        yaml="""        serviceOverrides:
              environmentRef: environmentIdentifier
              serviceRef: serviceIdentifier
              variables:
               - name: asda
                 type: String
                 value: asddad
              manifests:
                 - manifest:
                     identifier: manifestEnv
                     type: Values
                     spec:
                       store:
                         type: Git
                         spec:
                           connectorRef: <+input>
                           gitFetchType: Branch
                           paths:
                             - file1
                           repoName: <+input>
                           branch: master
              configFiles:
                 - configFile:
                     identifier: configFileEnv
                     spec:
                       store:
                         type: Harness
                         spec:
                           files:
                             - account:/Add-ons/svcOverrideTest
                           secretFiles: []
    
    """)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@lbrlabs/pulumi-harness";
    
    const example = new harness.platform.EnvironmentServiceOverrides("example", {
        envId: "environmentIdentifier",
        orgId: "orgIdentifier",
        projectId: "projectIdentifier",
        serviceId: "serviceIdentifier",
        yaml: `        serviceOverrides:
              environmentRef: environmentIdentifier
              serviceRef: serviceIdentifier
              variables:
               - name: asda
                 type: String
                 value: asddad
              manifests:
                 - manifest:
                     identifier: manifestEnv
                     type: Values
                     spec:
                       store:
                         type: Git
                         spec:
                           connectorRef: <+input>
                           gitFetchType: Branch
                           paths:
                             - file1
                           repoName: <+input>
                           branch: master
              configFiles:
                 - configFile:
                     identifier: configFileEnv
                     spec:
                       store:
                         type: Harness
                         spec:
                           files:
                             - account:/Add-ons/svcOverrideTest
                           secretFiles: []
    
    `,
    });
    
    resources:
      example:
        type: harness:platform:EnvironmentServiceOverrides
        properties:
          envId: environmentIdentifier
          orgId: orgIdentifier
          projectId: projectIdentifier
          serviceId: serviceIdentifier
          yaml: |2+
                    serviceOverrides:
                      environmentRef: environmentIdentifier
                      serviceRef: serviceIdentifier
                      variables:
                       - name: asda
                         type: String
                         value: asddad
                      manifests:
                         - manifest:
                             identifier: manifestEnv
                             type: Values
                             spec:
                               store:
                                 type: Git
                                 spec:
                                   connectorRef: <+input>
                                   gitFetchType: Branch
                                   paths:
                                     - file1
                                   repoName: <+input>
                                   branch: master
                      configFiles:
                         - configFile:
                             identifier: configFileEnv
                             spec:
                               store:
                                 type: Harness
                                 spec:
                                   files:
                                     - account:/Add-ons/svcOverrideTest
                                   secretFiles: []
    

    Create EnvironmentServiceOverrides Resource

    new EnvironmentServiceOverrides(name: string, args: EnvironmentServiceOverridesArgs, opts?: CustomResourceOptions);
    @overload
    def EnvironmentServiceOverrides(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    env_id: Optional[str] = None,
                                    identifier: Optional[str] = None,
                                    org_id: Optional[str] = None,
                                    project_id: Optional[str] = None,
                                    service_id: Optional[str] = None,
                                    yaml: Optional[str] = None)
    @overload
    def EnvironmentServiceOverrides(resource_name: str,
                                    args: EnvironmentServiceOverridesArgs,
                                    opts: Optional[ResourceOptions] = None)
    func NewEnvironmentServiceOverrides(ctx *Context, name string, args EnvironmentServiceOverridesArgs, opts ...ResourceOption) (*EnvironmentServiceOverrides, error)
    public EnvironmentServiceOverrides(string name, EnvironmentServiceOverridesArgs args, CustomResourceOptions? opts = null)
    public EnvironmentServiceOverrides(String name, EnvironmentServiceOverridesArgs args)
    public EnvironmentServiceOverrides(String name, EnvironmentServiceOverridesArgs args, CustomResourceOptions options)
    
    type: harness:platform:EnvironmentServiceOverrides
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args EnvironmentServiceOverridesArgs
    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 EnvironmentServiceOverridesArgs
    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 EnvironmentServiceOverridesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EnvironmentServiceOverridesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EnvironmentServiceOverridesArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    EnvironmentServiceOverrides 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 EnvironmentServiceOverrides resource accepts the following input properties:

    EnvId string

    The env Id associated with the overrides. To reference an environment at the organization scope, prefix 'org' to the expression: org.{envid}. To reference an environment at the account scope, prefix 'account' to the expression: account.{envid}).

    ServiceId string

    The service Id associated with the overrides. To reference a service at the organization scope, prefix 'org' to the expression: org.{serviceid}. To reference a service at the account scope, prefix 'account' to the expression: account.{serviceid}).

    Yaml string

    Environment Service Overrides YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.

    Identifier string

    identifier of the service overrides.

    OrgId string

    Unique identifier of the organization.

    ProjectId string

    Unique identifier of the project.

    EnvId string

    The env Id associated with the overrides. To reference an environment at the organization scope, prefix 'org' to the expression: org.{envid}. To reference an environment at the account scope, prefix 'account' to the expression: account.{envid}).

    ServiceId string

    The service Id associated with the overrides. To reference a service at the organization scope, prefix 'org' to the expression: org.{serviceid}. To reference a service at the account scope, prefix 'account' to the expression: account.{serviceid}).

    Yaml string

    Environment Service Overrides YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.

    Identifier string

    identifier of the service overrides.

    OrgId string

    Unique identifier of the organization.

    ProjectId string

    Unique identifier of the project.

    envId String

    The env Id associated with the overrides. To reference an environment at the organization scope, prefix 'org' to the expression: org.{envid}. To reference an environment at the account scope, prefix 'account' to the expression: account.{envid}).

    serviceId String

    The service Id associated with the overrides. To reference a service at the organization scope, prefix 'org' to the expression: org.{serviceid}. To reference a service at the account scope, prefix 'account' to the expression: account.{serviceid}).

    yaml String

    Environment Service Overrides YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.

    identifier String

    identifier of the service overrides.

    orgId String

    Unique identifier of the organization.

    projectId String

    Unique identifier of the project.

    envId string

    The env Id associated with the overrides. To reference an environment at the organization scope, prefix 'org' to the expression: org.{envid}. To reference an environment at the account scope, prefix 'account' to the expression: account.{envid}).

    serviceId string

    The service Id associated with the overrides. To reference a service at the organization scope, prefix 'org' to the expression: org.{serviceid}. To reference a service at the account scope, prefix 'account' to the expression: account.{serviceid}).

    yaml string

    Environment Service Overrides YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.

    identifier string

    identifier of the service overrides.

    orgId string

    Unique identifier of the organization.

    projectId string

    Unique identifier of the project.

    env_id str

    The env Id associated with the overrides. To reference an environment at the organization scope, prefix 'org' to the expression: org.{envid}. To reference an environment at the account scope, prefix 'account' to the expression: account.{envid}).

    service_id str

    The service Id associated with the overrides. To reference a service at the organization scope, prefix 'org' to the expression: org.{serviceid}. To reference a service at the account scope, prefix 'account' to the expression: account.{serviceid}).

    yaml str

    Environment Service Overrides YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.

    identifier str

    identifier of the service overrides.

    org_id str

    Unique identifier of the organization.

    project_id str

    Unique identifier of the project.

    envId String

    The env Id associated with the overrides. To reference an environment at the organization scope, prefix 'org' to the expression: org.{envid}. To reference an environment at the account scope, prefix 'account' to the expression: account.{envid}).

    serviceId String

    The service Id associated with the overrides. To reference a service at the organization scope, prefix 'org' to the expression: org.{serviceid}. To reference a service at the account scope, prefix 'account' to the expression: account.{serviceid}).

    yaml String

    Environment Service Overrides YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.

    identifier String

    identifier of the service overrides.

    orgId String

    Unique identifier of the organization.

    projectId String

    Unique identifier of the project.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the EnvironmentServiceOverrides 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 EnvironmentServiceOverrides Resource

    Get an existing EnvironmentServiceOverrides 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?: EnvironmentServiceOverridesState, opts?: CustomResourceOptions): EnvironmentServiceOverrides
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            env_id: Optional[str] = None,
            identifier: Optional[str] = None,
            org_id: Optional[str] = None,
            project_id: Optional[str] = None,
            service_id: Optional[str] = None,
            yaml: Optional[str] = None) -> EnvironmentServiceOverrides
    func GetEnvironmentServiceOverrides(ctx *Context, name string, id IDInput, state *EnvironmentServiceOverridesState, opts ...ResourceOption) (*EnvironmentServiceOverrides, error)
    public static EnvironmentServiceOverrides Get(string name, Input<string> id, EnvironmentServiceOverridesState? state, CustomResourceOptions? opts = null)
    public static EnvironmentServiceOverrides get(String name, Output<String> id, EnvironmentServiceOverridesState 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.
    The following state arguments are supported:
    EnvId string

    The env Id associated with the overrides. To reference an environment at the organization scope, prefix 'org' to the expression: org.{envid}. To reference an environment at the account scope, prefix 'account' to the expression: account.{envid}).

    Identifier string

    identifier of the service overrides.

    OrgId string

    Unique identifier of the organization.

    ProjectId string

    Unique identifier of the project.

    ServiceId string

    The service Id associated with the overrides. To reference a service at the organization scope, prefix 'org' to the expression: org.{serviceid}. To reference a service at the account scope, prefix 'account' to the expression: account.{serviceid}).

    Yaml string

    Environment Service Overrides YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.

    EnvId string

    The env Id associated with the overrides. To reference an environment at the organization scope, prefix 'org' to the expression: org.{envid}. To reference an environment at the account scope, prefix 'account' to the expression: account.{envid}).

    Identifier string

    identifier of the service overrides.

    OrgId string

    Unique identifier of the organization.

    ProjectId string

    Unique identifier of the project.

    ServiceId string

    The service Id associated with the overrides. To reference a service at the organization scope, prefix 'org' to the expression: org.{serviceid}. To reference a service at the account scope, prefix 'account' to the expression: account.{serviceid}).

    Yaml string

    Environment Service Overrides YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.

    envId String

    The env Id associated with the overrides. To reference an environment at the organization scope, prefix 'org' to the expression: org.{envid}. To reference an environment at the account scope, prefix 'account' to the expression: account.{envid}).

    identifier String

    identifier of the service overrides.

    orgId String

    Unique identifier of the organization.

    projectId String

    Unique identifier of the project.

    serviceId String

    The service Id associated with the overrides. To reference a service at the organization scope, prefix 'org' to the expression: org.{serviceid}. To reference a service at the account scope, prefix 'account' to the expression: account.{serviceid}).

    yaml String

    Environment Service Overrides YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.

    envId string

    The env Id associated with the overrides. To reference an environment at the organization scope, prefix 'org' to the expression: org.{envid}. To reference an environment at the account scope, prefix 'account' to the expression: account.{envid}).

    identifier string

    identifier of the service overrides.

    orgId string

    Unique identifier of the organization.

    projectId string

    Unique identifier of the project.

    serviceId string

    The service Id associated with the overrides. To reference a service at the organization scope, prefix 'org' to the expression: org.{serviceid}. To reference a service at the account scope, prefix 'account' to the expression: account.{serviceid}).

    yaml string

    Environment Service Overrides YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.

    env_id str

    The env Id associated with the overrides. To reference an environment at the organization scope, prefix 'org' to the expression: org.{envid}. To reference an environment at the account scope, prefix 'account' to the expression: account.{envid}).

    identifier str

    identifier of the service overrides.

    org_id str

    Unique identifier of the organization.

    project_id str

    Unique identifier of the project.

    service_id str

    The service Id associated with the overrides. To reference a service at the organization scope, prefix 'org' to the expression: org.{serviceid}. To reference a service at the account scope, prefix 'account' to the expression: account.{serviceid}).

    yaml str

    Environment Service Overrides YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.

    envId String

    The env Id associated with the overrides. To reference an environment at the organization scope, prefix 'org' to the expression: org.{envid}. To reference an environment at the account scope, prefix 'account' to the expression: account.{envid}).

    identifier String

    identifier of the service overrides.

    orgId String

    Unique identifier of the organization.

    projectId String

    Unique identifier of the project.

    serviceId String

    The service Id associated with the overrides. To reference a service at the organization scope, prefix 'org' to the expression: org.{serviceid}. To reference a service at the account scope, prefix 'account' to the expression: account.{serviceid}).

    yaml String

    Environment Service Overrides YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.

    Import

    Import using serviceoverride id

     $ pulumi import harness:platform/environmentServiceOverrides:EnvironmentServiceOverrides example <serviceoverride_id>
    

    Package Details

    Repository
    harness lbrlabs/pulumi-harness
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the harness Terraform Provider.

    harness logo
    Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs