Show / Hide Table of Contents

Namespace Pulumi.Gcp.BigTable

Classes

GCPolicy

Creates a Google Cloud Bigtable GC Policy inside a family. For more information see the official documentation and API.

GCPolicyArgs

GCPolicyState

Instance

Creates a Google Bigtable instance. For more information see the official documentation and API.

Example Usage - Development Instance

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var development_instance = new Gcp.BigTable.Instance("development-instance", new Gcp.BigTable.InstanceArgs
    {
        Clusters = 
        {
            new Gcp.BigTable.Inputs.InstanceClusterArgs
            {
                ClusterId = "tf-instance-cluster",
                StorageType = "HDD",
                Zone = "us-central1-b",
            },
        },
        InstanceType = "DEVELOPMENT",
    });
}

}

InstanceArgs

InstanceIamBinding

Three different resources help you manage IAM policies on bigtable instances. Each of these resources serves a different use case:

  • gcp.bigtable.InstanceIamPolicy: Authoritative. Sets the IAM policy for the instance and replaces any existing policy already attached.
  • gcp.bigtable.InstanceIamBinding: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the instance are preserved.
  • gcp.bigtable.InstanceIamMember: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the instance are preserved.

Note: gcp.bigtable.InstanceIamPolicy cannot be used in conjunction with gcp.bigtable.InstanceIamBinding and gcp.bigtable.InstanceIamMember or they will fight over what your policy should be. In addition, be careful not to accidentally unset ownership of the instance as gcp.bigtable.InstanceIamPolicy replaces the entire policy.

Note: gcp.bigtable.InstanceIamBinding resources can be used in conjunction with gcp.bigtable.InstanceIamMember resources only if they do not grant privilege to the same role.

google_bigtable_instance_iam_policy

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var admin = Output.Create(Gcp.Organizations.GetIAMPolicy.InvokeAsync(new Gcp.Organizations.GetIAMPolicyArgs
    {
        Binding = 
        {

            {
                { "role", "roles/editor" },
                { "members", 
                {
                    "user:jane@example.com",
                } },
            },
        },
    }));
    var editor = new Gcp.BigTable.InstanceIamPolicy("editor", new Gcp.BigTable.InstanceIamPolicyArgs
    {
        Project = "your-project",
        Instance = "your-bigtable-instance",
        PolicyData = admin.Apply(admin => admin.PolicyData),
    });
}

}

google_bigtable_instance_iam_binding

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var editor = new Gcp.BigTable.InstanceIamBinding("editor", new Gcp.BigTable.InstanceIamBindingArgs
    {
        Instance = "your-bigtable-instance",
        Members = 
        {
            "user:jane@example.com",
        },
        Role = "roles/editor",
    });
}

}

google_bigtable_instance_iam_member

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var editor = new Gcp.BigTable.InstanceIamMember("editor", new Gcp.BigTable.InstanceIamMemberArgs
    {
        Instance = "your-bigtable-instance",
        Member = "user:jane@example.com",
        Role = "roles/editor",
    });
}

}

InstanceIamBindingArgs

InstanceIamBindingState

InstanceIamMember

Three different resources help you manage IAM policies on bigtable instances. Each of these resources serves a different use case:

  • gcp.bigtable.InstanceIamPolicy: Authoritative. Sets the IAM policy for the instance and replaces any existing policy already attached.
  • gcp.bigtable.InstanceIamBinding: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the instance are preserved.
  • gcp.bigtable.InstanceIamMember: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the instance are preserved.

Note: gcp.bigtable.InstanceIamPolicy cannot be used in conjunction with gcp.bigtable.InstanceIamBinding and gcp.bigtable.InstanceIamMember or they will fight over what your policy should be. In addition, be careful not to accidentally unset ownership of the instance as gcp.bigtable.InstanceIamPolicy replaces the entire policy.

Note: gcp.bigtable.InstanceIamBinding resources can be used in conjunction with gcp.bigtable.InstanceIamMember resources only if they do not grant privilege to the same role.

google_bigtable_instance_iam_policy

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var admin = Output.Create(Gcp.Organizations.GetIAMPolicy.InvokeAsync(new Gcp.Organizations.GetIAMPolicyArgs
    {
        Binding = 
        {

            {
                { "role", "roles/editor" },
                { "members", 
                {
                    "user:jane@example.com",
                } },
            },
        },
    }));
    var editor = new Gcp.BigTable.InstanceIamPolicy("editor", new Gcp.BigTable.InstanceIamPolicyArgs
    {
        Project = "your-project",
        Instance = "your-bigtable-instance",
        PolicyData = admin.Apply(admin => admin.PolicyData),
    });
}

}

google_bigtable_instance_iam_binding

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var editor = new Gcp.BigTable.InstanceIamBinding("editor", new Gcp.BigTable.InstanceIamBindingArgs
    {
        Instance = "your-bigtable-instance",
        Members = 
        {
            "user:jane@example.com",
        },
        Role = "roles/editor",
    });
}

}

google_bigtable_instance_iam_member

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var editor = new Gcp.BigTable.InstanceIamMember("editor", new Gcp.BigTable.InstanceIamMemberArgs
    {
        Instance = "your-bigtable-instance",
        Member = "user:jane@example.com",
        Role = "roles/editor",
    });
}

}

InstanceIamMemberArgs

InstanceIamMemberState

InstanceIamPolicy

Three different resources help you manage IAM policies on bigtable instances. Each of these resources serves a different use case:

  • gcp.bigtable.InstanceIamPolicy: Authoritative. Sets the IAM policy for the instance and replaces any existing policy already attached.
  • gcp.bigtable.InstanceIamBinding: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the instance are preserved.
  • gcp.bigtable.InstanceIamMember: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the instance are preserved.

Note: gcp.bigtable.InstanceIamPolicy cannot be used in conjunction with gcp.bigtable.InstanceIamBinding and gcp.bigtable.InstanceIamMember or they will fight over what your policy should be. In addition, be careful not to accidentally unset ownership of the instance as gcp.bigtable.InstanceIamPolicy replaces the entire policy.

Note: gcp.bigtable.InstanceIamBinding resources can be used in conjunction with gcp.bigtable.InstanceIamMember resources only if they do not grant privilege to the same role.

google_bigtable_instance_iam_policy

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var admin = Output.Create(Gcp.Organizations.GetIAMPolicy.InvokeAsync(new Gcp.Organizations.GetIAMPolicyArgs
    {
        Binding = 
        {

            {
                { "role", "roles/editor" },
                { "members", 
                {
                    "user:jane@example.com",
                } },
            },
        },
    }));
    var editor = new Gcp.BigTable.InstanceIamPolicy("editor", new Gcp.BigTable.InstanceIamPolicyArgs
    {
        Project = "your-project",
        Instance = "your-bigtable-instance",
        PolicyData = admin.Apply(admin => admin.PolicyData),
    });
}

}

google_bigtable_instance_iam_binding

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var editor = new Gcp.BigTable.InstanceIamBinding("editor", new Gcp.BigTable.InstanceIamBindingArgs
    {
        Instance = "your-bigtable-instance",
        Members = 
        {
            "user:jane@example.com",
        },
        Role = "roles/editor",
    });
}

}

google_bigtable_instance_iam_member

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var editor = new Gcp.BigTable.InstanceIamMember("editor", new Gcp.BigTable.InstanceIamMemberArgs
    {
        Instance = "your-bigtable-instance",
        Member = "user:jane@example.com",
        Role = "roles/editor",
    });
}

}

InstanceIamPolicyArgs

InstanceIamPolicyState

InstanceState

Table

Creates a Google Cloud Bigtable table inside an instance. For more information see the official documentation and API.

TableArgs

TableState

Back to top Copyright 2016-2020, Pulumi Corporation.