Skip to content

[Feature]: Provider - Switch To Child Account #2332

Description

@thomasjcf21

Description

Whilst it is possible to query data in a child account, it is not possible to setup the provider to use a child account. So it is not possible to deploy infrastructure in a chil daccount.

The request here is that when initiating the provider it will be able to assume into the child account, and handle he 15-minute token lifespan during long running operations automatically.

New or Affected Terraform Resources

Terraform Provider Setup

Potential Terraform Configuration

terraform {
required_providers {
linode = {
source = "linode/linode"
# version = "..."
}
}
}

Configure the Linode Provider

provider "linode" {
token = ""
child_account = "<CHILD_ACCOUNT_EUUID>"
}

Create a Linode in the child account

resource "linode_instance" "foobar" {

...

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementissues that request a enhancement

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions