1. Packages
  2. Databricks Provider
  3. API Docs
  4. GroupInstanceProfile
Databricks v1.67.0 published on Thursday, Apr 17, 2025 by Pulumi

databricks.GroupInstanceProfile

Explore with Pulumi AI

Deprecated Please migrate to databricks_group_role.

This resource allows you to attach databricks.InstanceProfile (AWS) to databricks_group.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";

const instanceProfile = new databricks.InstanceProfile("instance_profile", {instanceProfileArn: "my_instance_profile_arn"});
const myGroup = new databricks.Group("my_group", {displayName: "my_group_name"});
const myGroupInstanceProfile = new databricks.GroupInstanceProfile("my_group_instance_profile", {
    groupId: myGroup.id,
    instanceProfileId: instanceProfile.id,
});
Copy
import pulumi
import pulumi_databricks as databricks

instance_profile = databricks.InstanceProfile("instance_profile", instance_profile_arn="my_instance_profile_arn")
my_group = databricks.Group("my_group", display_name="my_group_name")
my_group_instance_profile = databricks.GroupInstanceProfile("my_group_instance_profile",
    group_id=my_group.id,
    instance_profile_id=instance_profile.id)
Copy
package main

import (
	"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		instanceProfile, err := databricks.NewInstanceProfile(ctx, "instance_profile", &databricks.InstanceProfileArgs{
			InstanceProfileArn: pulumi.String("my_instance_profile_arn"),
		})
		if err != nil {
			return err
		}
		myGroup, err := databricks.NewGroup(ctx, "my_group", &databricks.GroupArgs{
			DisplayName: pulumi.String("my_group_name"),
		})
		if err != nil {
			return err
		}
		_, err = databricks.NewGroupInstanceProfile(ctx, "my_group_instance_profile", &databricks.GroupInstanceProfileArgs{
			GroupId:           myGroup.ID(),
			InstanceProfileId: instanceProfile.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Databricks = Pulumi.Databricks;

return await Deployment.RunAsync(() => 
{
    var instanceProfile = new Databricks.InstanceProfile("instance_profile", new()
    {
        InstanceProfileArn = "my_instance_profile_arn",
    });

    var myGroup = new Databricks.Group("my_group", new()
    {
        DisplayName = "my_group_name",
    });

    var myGroupInstanceProfile = new Databricks.GroupInstanceProfile("my_group_instance_profile", new()
    {
        GroupId = myGroup.Id,
        InstanceProfileId = instanceProfile.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.databricks.InstanceProfile;
import com.pulumi.databricks.InstanceProfileArgs;
import com.pulumi.databricks.Group;
import com.pulumi.databricks.GroupArgs;
import com.pulumi.databricks.GroupInstanceProfile;
import com.pulumi.databricks.GroupInstanceProfileArgs;
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 instanceProfile = new InstanceProfile("instanceProfile", InstanceProfileArgs.builder()
            .instanceProfileArn("my_instance_profile_arn")
            .build());

        var myGroup = new Group("myGroup", GroupArgs.builder()
            .displayName("my_group_name")
            .build());

        var myGroupInstanceProfile = new GroupInstanceProfile("myGroupInstanceProfile", GroupInstanceProfileArgs.builder()
            .groupId(myGroup.id())
            .instanceProfileId(instanceProfile.id())
            .build());

    }
}
Copy
resources:
  instanceProfile:
    type: databricks:InstanceProfile
    name: instance_profile
    properties:
      instanceProfileArn: my_instance_profile_arn
  myGroup:
    type: databricks:Group
    name: my_group
    properties:
      displayName: my_group_name
  myGroupInstanceProfile:
    type: databricks:GroupInstanceProfile
    name: my_group_instance_profile
    properties:
      groupId: ${myGroup.id}
      instanceProfileId: ${instanceProfile.id}
Copy

The following resources are often used in the same context:

  • End to end workspace management guide.
  • databricks.getAwsBucketPolicy data to configure a simple access policy for AWS S3 buckets, so that Databricks can access data in it.
  • databricks.ClusterPolicy to create a databricks.Cluster policy, which limits the ability to create clusters based on a set of rules.
  • databricks.Group to manage groups in Databricks Workspace or Account Console (for AWS deployments).
  • databricks.Group data to retrieve information about databricks.Group members, entitlements and instance profiles.
  • databricks.GroupMember to attach users and groups as group members.
  • databricks.InstancePool to manage instance pools to reduce cluster start and auto-scaling times by maintaining a set of idle, ready-to-use instances.
  • databricks.InstanceProfile to manage AWS EC2 instance profiles that users can launch databricks.Cluster and access data, like databricks_mount.
  • databricks.UserInstanceProfile to attach databricks.InstanceProfile (AWS) to databricks_user.

Create GroupInstanceProfile Resource

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

Constructor syntax

new GroupInstanceProfile(name: string, args: GroupInstanceProfileArgs, opts?: CustomResourceOptions);
@overload
def GroupInstanceProfile(resource_name: str,
                         args: GroupInstanceProfileArgs,
                         opts: Optional[ResourceOptions] = None)

@overload
def GroupInstanceProfile(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         group_id: Optional[str] = None,
                         instance_profile_id: Optional[str] = None)
func NewGroupInstanceProfile(ctx *Context, name string, args GroupInstanceProfileArgs, opts ...ResourceOption) (*GroupInstanceProfile, error)
public GroupInstanceProfile(string name, GroupInstanceProfileArgs args, CustomResourceOptions? opts = null)
public GroupInstanceProfile(String name, GroupInstanceProfileArgs args)
public GroupInstanceProfile(String name, GroupInstanceProfileArgs args, CustomResourceOptions options)
type: databricks:GroupInstanceProfile
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. GroupInstanceProfileArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. GroupInstanceProfileArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. GroupInstanceProfileArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. GroupInstanceProfileArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. GroupInstanceProfileArgs
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 groupInstanceProfileResource = new Databricks.GroupInstanceProfile("groupInstanceProfileResource", new()
{
    GroupId = "string",
    InstanceProfileId = "string",
});
Copy
example, err := databricks.NewGroupInstanceProfile(ctx, "groupInstanceProfileResource", &databricks.GroupInstanceProfileArgs{
	GroupId:           pulumi.String("string"),
	InstanceProfileId: pulumi.String("string"),
})
Copy
var groupInstanceProfileResource = new GroupInstanceProfile("groupInstanceProfileResource", GroupInstanceProfileArgs.builder()
    .groupId("string")
    .instanceProfileId("string")
    .build());
Copy
group_instance_profile_resource = databricks.GroupInstanceProfile("groupInstanceProfileResource",
    group_id="string",
    instance_profile_id="string")
Copy
const groupInstanceProfileResource = new databricks.GroupInstanceProfile("groupInstanceProfileResource", {
    groupId: "string",
    instanceProfileId: "string",
});
Copy
type: databricks:GroupInstanceProfile
properties:
    groupId: string
    instanceProfileId: string
Copy

GroupInstanceProfile Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The GroupInstanceProfile resource accepts the following input properties:

GroupId
This property is required.
Changes to this property will trigger replacement.
string
This is the id of the group resource.
InstanceProfileId
This property is required.
Changes to this property will trigger replacement.
string
This is the id of the instance profile resource.
GroupId
This property is required.
Changes to this property will trigger replacement.
string
This is the id of the group resource.
InstanceProfileId
This property is required.
Changes to this property will trigger replacement.
string
This is the id of the instance profile resource.
groupId
This property is required.
Changes to this property will trigger replacement.
String
This is the id of the group resource.
instanceProfileId
This property is required.
Changes to this property will trigger replacement.
String
This is the id of the instance profile resource.
groupId
This property is required.
Changes to this property will trigger replacement.
string
This is the id of the group resource.
instanceProfileId
This property is required.
Changes to this property will trigger replacement.
string
This is the id of the instance profile resource.
group_id
This property is required.
Changes to this property will trigger replacement.
str
This is the id of the group resource.
instance_profile_id
This property is required.
Changes to this property will trigger replacement.
str
This is the id of the instance profile resource.
groupId
This property is required.
Changes to this property will trigger replacement.
String
This is the id of the group resource.
instanceProfileId
This property is required.
Changes to this property will trigger replacement.
String
This is the id of the instance profile resource.

Outputs

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

Get an existing GroupInstanceProfile 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?: GroupInstanceProfileState, opts?: CustomResourceOptions): GroupInstanceProfile
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        group_id: Optional[str] = None,
        instance_profile_id: Optional[str] = None) -> GroupInstanceProfile
func GetGroupInstanceProfile(ctx *Context, name string, id IDInput, state *GroupInstanceProfileState, opts ...ResourceOption) (*GroupInstanceProfile, error)
public static GroupInstanceProfile Get(string name, Input<string> id, GroupInstanceProfileState? state, CustomResourceOptions? opts = null)
public static GroupInstanceProfile get(String name, Output<String> id, GroupInstanceProfileState state, CustomResourceOptions options)
resources:  _:    type: databricks:GroupInstanceProfile    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
GroupId Changes to this property will trigger replacement. string
This is the id of the group resource.
InstanceProfileId Changes to this property will trigger replacement. string
This is the id of the instance profile resource.
GroupId Changes to this property will trigger replacement. string
This is the id of the group resource.
InstanceProfileId Changes to this property will trigger replacement. string
This is the id of the instance profile resource.
groupId Changes to this property will trigger replacement. String
This is the id of the group resource.
instanceProfileId Changes to this property will trigger replacement. String
This is the id of the instance profile resource.
groupId Changes to this property will trigger replacement. string
This is the id of the group resource.
instanceProfileId Changes to this property will trigger replacement. string
This is the id of the instance profile resource.
group_id Changes to this property will trigger replacement. str
This is the id of the group resource.
instance_profile_id Changes to this property will trigger replacement. str
This is the id of the instance profile resource.
groupId Changes to this property will trigger replacement. String
This is the id of the group resource.
instanceProfileId Changes to this property will trigger replacement. String
This is the id of the instance profile resource.

Import

!> Importing this resource is not currently supported.

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

Package Details

Repository
databricks pulumi/pulumi-databricks
License
Apache-2.0
Notes
This Pulumi package is based on the databricks Terraform Provider.