StrongDM v1.32.0 published on Monday, Oct 13, 2025 by Piers Karsenbarg
sdm.getRemoteIdentity
StrongDM v1.32.0 published on Monday, Oct 13, 2025 by Piers Karsenbarg
RemoteIdentities define the username to be used for a specific account when connecting to a remote resource using that group.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sdm from "@pierskarsenbarg/sdm";
const user = sdm.getRemoteIdentity({
id: "i-0900909",
username: "user",
});
import pulumi
import pulumi_sdm as sdm
user = sdm.get_remote_identity(id="i-0900909",
username="user")
package main
import (
"github.com/pierskarsenbarg/pulumi-sdm/sdk/go/sdm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sdm.LookupRemoteIdentity(ctx, &sdm.LookupRemoteIdentityArgs{
Id: pulumi.StringRef("i-0900909"),
Username: pulumi.StringRef("user"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Sdm = Pulumi.Sdm;
return await Deployment.RunAsync(() =>
{
var user = Sdm.GetRemoteIdentity.Invoke(new()
{
Id = "i-0900909",
Username = "user",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sdm.SdmFunctions;
import com.pulumi.sdm.inputs.GetRemoteIdentityArgs;
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) {
final var user = SdmFunctions.getRemoteIdentity(GetRemoteIdentityArgs.builder()
.id("i-0900909")
.username("user")
.build());
}
}
variables:
user:
fn::invoke:
function: sdm:getRemoteIdentity
arguments:
id: i-0900909
username: user
Using getRemoteIdentity
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getRemoteIdentity(args: GetRemoteIdentityArgs, opts?: InvokeOptions): Promise<GetRemoteIdentityResult>
function getRemoteIdentityOutput(args: GetRemoteIdentityOutputArgs, opts?: InvokeOptions): Output<GetRemoteIdentityResult>def get_remote_identity(account_id: Optional[str] = None,
id: Optional[str] = None,
remote_identity_group_id: Optional[str] = None,
username: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRemoteIdentityResult
def get_remote_identity_output(account_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
remote_identity_group_id: Optional[pulumi.Input[str]] = None,
username: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRemoteIdentityResult]func LookupRemoteIdentity(ctx *Context, args *LookupRemoteIdentityArgs, opts ...InvokeOption) (*LookupRemoteIdentityResult, error)
func LookupRemoteIdentityOutput(ctx *Context, args *LookupRemoteIdentityOutputArgs, opts ...InvokeOption) LookupRemoteIdentityResultOutput> Note: This function is named LookupRemoteIdentity in the Go SDK.
public static class GetRemoteIdentity
{
public static Task<GetRemoteIdentityResult> InvokeAsync(GetRemoteIdentityArgs args, InvokeOptions? opts = null)
public static Output<GetRemoteIdentityResult> Invoke(GetRemoteIdentityInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRemoteIdentityResult> getRemoteIdentity(GetRemoteIdentityArgs args, InvokeOptions options)
public static Output<GetRemoteIdentityResult> getRemoteIdentity(GetRemoteIdentityArgs args, InvokeOptions options)
fn::invoke:
function: sdm:index/getRemoteIdentity:getRemoteIdentity
arguments:
# arguments dictionaryThe following arguments are supported:
- Account
Id string - The account for this remote identity.
- Id string
- Unique identifier of the RemoteIdentity.
- Remote
Identity stringGroup Id - The remote identity group.
- Username string
- The username to be used as the remote identity for this account.
- Account
Id string - The account for this remote identity.
- Id string
- Unique identifier of the RemoteIdentity.
- Remote
Identity stringGroup Id - The remote identity group.
- Username string
- The username to be used as the remote identity for this account.
- account
Id String - The account for this remote identity.
- id String
- Unique identifier of the RemoteIdentity.
- remote
Identity StringGroup Id - The remote identity group.
- username String
- The username to be used as the remote identity for this account.
- account
Id string - The account for this remote identity.
- id string
- Unique identifier of the RemoteIdentity.
- remote
Identity stringGroup Id - The remote identity group.
- username string
- The username to be used as the remote identity for this account.
- account_
id str - The account for this remote identity.
- id str
- Unique identifier of the RemoteIdentity.
- remote_
identity_ strgroup_ id - The remote identity group.
- username str
- The username to be used as the remote identity for this account.
- account
Id String - The account for this remote identity.
- id String
- Unique identifier of the RemoteIdentity.
- remote
Identity StringGroup Id - The remote identity group.
- username String
- The username to be used as the remote identity for this account.
getRemoteIdentity Result
The following output properties are available:
- Ids List<string>
- a list of strings of ids of data sources that match the given arguments.
- Remote
Identities List<PiersKarsenbarg. Sdm. Outputs. Get Remote Identity Remote Identity> - A list where each element has the following attributes:
- Account
Id string - The account for this remote identity.
- Id string
- Unique identifier of the RemoteIdentity.
- Remote
Identity stringGroup Id - The remote identity group.
- Username string
- The username to be used as the remote identity for this account.
- Ids []string
- a list of strings of ids of data sources that match the given arguments.
- Remote
Identities []GetRemote Identity Remote Identity - A list where each element has the following attributes:
- Account
Id string - The account for this remote identity.
- Id string
- Unique identifier of the RemoteIdentity.
- Remote
Identity stringGroup Id - The remote identity group.
- Username string
- The username to be used as the remote identity for this account.
- ids List<String>
- a list of strings of ids of data sources that match the given arguments.
- remote
Identities List<GetRemote Identity Remote Identity> - A list where each element has the following attributes:
- account
Id String - The account for this remote identity.
- id String
- Unique identifier of the RemoteIdentity.
- remote
Identity StringGroup Id - The remote identity group.
- username String
- The username to be used as the remote identity for this account.
- ids string[]
- a list of strings of ids of data sources that match the given arguments.
- remote
Identities GetRemote Identity Remote Identity[] - A list where each element has the following attributes:
- account
Id string - The account for this remote identity.
- id string
- Unique identifier of the RemoteIdentity.
- remote
Identity stringGroup Id - The remote identity group.
- username string
- The username to be used as the remote identity for this account.
- ids Sequence[str]
- a list of strings of ids of data sources that match the given arguments.
- remote_
identities Sequence[GetRemote Identity Remote Identity] - A list where each element has the following attributes:
- account_
id str - The account for this remote identity.
- id str
- Unique identifier of the RemoteIdentity.
- remote_
identity_ strgroup_ id - The remote identity group.
- username str
- The username to be used as the remote identity for this account.
- ids List<String>
- a list of strings of ids of data sources that match the given arguments.
- remote
Identities List<Property Map> - A list where each element has the following attributes:
- account
Id String - The account for this remote identity.
- id String
- Unique identifier of the RemoteIdentity.
- remote
Identity StringGroup Id - The remote identity group.
- username String
- The username to be used as the remote identity for this account.
Supporting Types
GetRemoteIdentityRemoteIdentity
- Account
Id string - The account for this remote identity.
- Id string
- Unique identifier of the RemoteIdentity.
- Remote
Identity stringGroup Id - The remote identity group.
- Username string
- The username to be used as the remote identity for this account.
- Account
Id string - The account for this remote identity.
- Id string
- Unique identifier of the RemoteIdentity.
- Remote
Identity stringGroup Id - The remote identity group.
- Username string
- The username to be used as the remote identity for this account.
- account
Id String - The account for this remote identity.
- id String
- Unique identifier of the RemoteIdentity.
- remote
Identity StringGroup Id - The remote identity group.
- username String
- The username to be used as the remote identity for this account.
- account
Id string - The account for this remote identity.
- id string
- Unique identifier of the RemoteIdentity.
- remote
Identity stringGroup Id - The remote identity group.
- username string
- The username to be used as the remote identity for this account.
- account_
id str - The account for this remote identity.
- id str
- Unique identifier of the RemoteIdentity.
- remote_
identity_ strgroup_ id - The remote identity group.
- username str
- The username to be used as the remote identity for this account.
- account
Id String - The account for this remote identity.
- id String
- Unique identifier of the RemoteIdentity.
- remote
Identity StringGroup Id - The remote identity group.
- username String
- The username to be used as the remote identity for this account.
Package Details
- Repository
- sdm pierskarsenbarg/pulumi-sdm
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
sdmTerraform Provider.
StrongDM v1.32.0 published on Monday, Oct 13, 2025 by Piers Karsenbarg
