1. Packages
  2. Harness
  3. API Docs
  4. platform
  5. EnvironmentServiceOverrides
Harness v0.3.2 published on Monday, Sep 16, 2024 by Pulumi

harness.platform.EnvironmentServiceOverrides

Explore with Pulumi AI

harness logo
Harness v0.3.2 published on Monday, Sep 16, 2024 by Pulumi

    Resource for creating a Harness environment service overrides.

    Example to create Environment Service Override at different levels (Org, Project, Account)

    Account Level

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const example = new harness.platform.EnvironmentServiceOverrides("example", {
        envId: "environmentIdentifier",
        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: []
    `,
    });
    
    import pulumi
    import pulumi_harness as harness
    
    example = harness.platform.EnvironmentServiceOverrides("example",
        env_id="environmentIdentifier",
        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: []
    """)
    
    package main
    
    import (
    	"github.com/pulumi/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"),
    			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
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Harness.Platform.EnvironmentServiceOverrides("example", new()
        {
            EnvId = "environmentIdentifier",
            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 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")
                .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());
    
        }
    }
    
    resources:
      example:
        type: harness:platform:EnvironmentServiceOverrides
        properties:
          envId: environmentIdentifier
          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: []        
    

    Org Level

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const example = new harness.platform.EnvironmentServiceOverrides("example", {
        orgId: "orgIdentifier",
        envId: "environmentIdentifier",
        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: []
    `,
    });
    
    import pulumi
    import pulumi_harness as harness
    
    example = harness.platform.EnvironmentServiceOverrides("example",
        org_id="orgIdentifier",
        env_id="environmentIdentifier",
        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: []
    """)
    
    package main
    
    import (
    	"github.com/pulumi/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{
    			OrgId:     pulumi.String("orgIdentifier"),
    			EnvId:     pulumi.String("environmentIdentifier"),
    			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
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Harness.Platform.EnvironmentServiceOverrides("example", new()
        {
            OrgId = "orgIdentifier",
            EnvId = "environmentIdentifier",
            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 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()
                .orgId("orgIdentifier")
                .envId("environmentIdentifier")
                .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());
    
        }
    }
    
    resources:
      example:
        type: harness:platform:EnvironmentServiceOverrides
        properties:
          orgId: orgIdentifier
          envId: environmentIdentifier
          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: []        
    

    Project Level

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const example = new harness.platform.EnvironmentServiceOverrides("example", {
        orgId: "orgIdentifier",
        projectId: "projectIdentifier",
        envId: "environmentIdentifier",
        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: []
    `,
    });
    
    import pulumi
    import pulumi_harness as harness
    
    example = harness.platform.EnvironmentServiceOverrides("example",
        org_id="orgIdentifier",
        project_id="projectIdentifier",
        env_id="environmentIdentifier",
        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: []
    """)
    
    package main
    
    import (
    	"github.com/pulumi/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{
    			OrgId:     pulumi.String("orgIdentifier"),
    			ProjectId: pulumi.String("projectIdentifier"),
    			EnvId:     pulumi.String("environmentIdentifier"),
    			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
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Harness.Platform.EnvironmentServiceOverrides("example", new()
        {
            OrgId = "orgIdentifier",
            ProjectId = "projectIdentifier",
            EnvId = "environmentIdentifier",
            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 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()
                .orgId("orgIdentifier")
                .projectId("projectIdentifier")
                .envId("environmentIdentifier")
                .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());
    
        }
    }
    
    resources:
      example:
        type: harness:platform:EnvironmentServiceOverrides
        properties:
          orgId: orgIdentifier
          projectId: projectIdentifier
          envId: environmentIdentifier
          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: []        
    

    Create EnvironmentServiceOverrides Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new EnvironmentServiceOverrides(name: string, args: EnvironmentServiceOverridesArgs, opts?: CustomResourceOptions);
    @overload
    def EnvironmentServiceOverrides(resource_name: str,
                                    args: EnvironmentServiceOverridesArgs,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def EnvironmentServiceOverrides(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    env_id: Optional[str] = None,
                                    service_id: Optional[str] = None,
                                    yaml: Optional[str] = None,
                                    identifier: Optional[str] = None,
                                    org_id: Optional[str] = None,
                                    project_id: Optional[str] = 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.
    
    

    Parameters

    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.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var environmentServiceOverridesResource = new Harness.Platform.EnvironmentServiceOverrides("environmentServiceOverridesResource", new()
    {
        EnvId = "string",
        ServiceId = "string",
        Yaml = "string",
        Identifier = "string",
        OrgId = "string",
        ProjectId = "string",
    });
    
    example, err := platform.NewEnvironmentServiceOverrides(ctx, "environmentServiceOverridesResource", &platform.EnvironmentServiceOverridesArgs{
    	EnvId:      pulumi.String("string"),
    	ServiceId:  pulumi.String("string"),
    	Yaml:       pulumi.String("string"),
    	Identifier: pulumi.String("string"),
    	OrgId:      pulumi.String("string"),
    	ProjectId:  pulumi.String("string"),
    })
    
    var environmentServiceOverridesResource = new EnvironmentServiceOverrides("environmentServiceOverridesResource", EnvironmentServiceOverridesArgs.builder()
        .envId("string")
        .serviceId("string")
        .yaml("string")
        .identifier("string")
        .orgId("string")
        .projectId("string")
        .build());
    
    environment_service_overrides_resource = harness.platform.EnvironmentServiceOverrides("environmentServiceOverridesResource",
        env_id="string",
        service_id="string",
        yaml="string",
        identifier="string",
        org_id="string",
        project_id="string")
    
    const environmentServiceOverridesResource = new harness.platform.EnvironmentServiceOverrides("environmentServiceOverridesResource", {
        envId: "string",
        serviceId: "string",
        yaml: "string",
        identifier: "string",
        orgId: "string",
        projectId: "string",
    });
    
    type: harness:platform:EnvironmentServiceOverrides
    properties:
        envId: string
        identifier: string
        orgId: string
        projectId: string
        serviceId: string
        yaml: string
    

    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 list of account level service overrides using the env id associated with them

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

    Import list of org level service overrides using the env id associated with them

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

    Import list of project level service overrides using the env id associated with them

    $ pulumi import harness:platform/environmentServiceOverrides:EnvironmentServiceOverrides example <org_id>/<project_id>/<env_id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    harness pulumi/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Harness v0.3.2 published on Monday, Sep 16, 2024 by Pulumi