1. Packages
  2. Gcore Provider
  3. API Docs
  4. getCloudInferenceSecret
Viewing docs for gcore 2.0.0-alpha.3
published on Monday, Mar 30, 2026 by g-core
Viewing docs for gcore 2.0.0-alpha.3
published on Monday, Mar 30, 2026 by g-core

    Inference secrets store sensitive values such as AWS credentials used for SQS-based autoscaling triggers in deployments.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gcore from "@pulumi/gcore";
    
    const exampleCloudInferenceSecret = gcore.getCloudInferenceSecret({
        projectId: 1,
        secretName: "aws-dev",
    });
    
    import pulumi
    import pulumi_gcore as gcore
    
    example_cloud_inference_secret = gcore.get_cloud_inference_secret(project_id=1,
        secret_name="aws-dev")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/v2/gcore"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := gcore.LookupCloudInferenceSecret(ctx, &gcore.LookupCloudInferenceSecretArgs{
    			ProjectId:  pulumi.Float64Ref(1),
    			SecretName: "aws-dev",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcore = Pulumi.Gcore;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleCloudInferenceSecret = Gcore.GetCloudInferenceSecret.Invoke(new()
        {
            ProjectId = 1,
            SecretName = "aws-dev",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcore.GcoreFunctions;
    import com.pulumi.gcore.inputs.GetCloudInferenceSecretArgs;
    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 exampleCloudInferenceSecret = GcoreFunctions.getCloudInferenceSecret(GetCloudInferenceSecretArgs.builder()
                .projectId(1)
                .secretName("aws-dev")
                .build());
    
        }
    }
    
    variables:
      exampleCloudInferenceSecret:
        fn::invoke:
          function: gcore:getCloudInferenceSecret
          arguments:
            projectId: 1
            secretName: aws-dev
    

    Using getCloudInferenceSecret

    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 getCloudInferenceSecret(args: GetCloudInferenceSecretArgs, opts?: InvokeOptions): Promise<GetCloudInferenceSecretResult>
    function getCloudInferenceSecretOutput(args: GetCloudInferenceSecretOutputArgs, opts?: InvokeOptions): Output<GetCloudInferenceSecretResult>
    def get_cloud_inference_secret(project_id: Optional[float] = None,
                                   secret_name: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetCloudInferenceSecretResult
    def get_cloud_inference_secret_output(project_id: Optional[pulumi.Input[float]] = None,
                                   secret_name: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetCloudInferenceSecretResult]
    func LookupCloudInferenceSecret(ctx *Context, args *LookupCloudInferenceSecretArgs, opts ...InvokeOption) (*LookupCloudInferenceSecretResult, error)
    func LookupCloudInferenceSecretOutput(ctx *Context, args *LookupCloudInferenceSecretOutputArgs, opts ...InvokeOption) LookupCloudInferenceSecretResultOutput

    > Note: This function is named LookupCloudInferenceSecret in the Go SDK.

    public static class GetCloudInferenceSecret 
    {
        public static Task<GetCloudInferenceSecretResult> InvokeAsync(GetCloudInferenceSecretArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudInferenceSecretResult> Invoke(GetCloudInferenceSecretInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudInferenceSecretResult> getCloudInferenceSecret(GetCloudInferenceSecretArgs args, InvokeOptions options)
    public static Output<GetCloudInferenceSecretResult> getCloudInferenceSecret(GetCloudInferenceSecretArgs args, InvokeOptions options)
    
    fn::invoke:
      function: gcore:index/getCloudInferenceSecret:getCloudInferenceSecret
      arguments:
        # arguments dictionary

    The following arguments are supported:

    SecretName string
    Inference secret name.
    ProjectId double
    Project ID
    SecretName string
    Inference secret name.
    ProjectId float64
    Project ID
    secretName String
    Inference secret name.
    projectId Double
    Project ID
    secretName string
    Inference secret name.
    projectId number
    Project ID
    secret_name str
    Inference secret name.
    project_id float
    Project ID
    secretName String
    Inference secret name.
    projectId Number
    Project ID

    getCloudInferenceSecret Result

    The following output properties are available:

    Data GetCloudInferenceSecretData
    Secret data.
    Id string
    Inference secret name.
    Name string
    Secret name.
    SecretName string
    Inference secret name.
    Type string
    Secret type.
    ProjectId double
    Project ID
    Data GetCloudInferenceSecretData
    Secret data.
    Id string
    Inference secret name.
    Name string
    Secret name.
    SecretName string
    Inference secret name.
    Type string
    Secret type.
    ProjectId float64
    Project ID
    data GetCloudInferenceSecretData
    Secret data.
    id String
    Inference secret name.
    name String
    Secret name.
    secretName String
    Inference secret name.
    type String
    Secret type.
    projectId Double
    Project ID
    data GetCloudInferenceSecretData
    Secret data.
    id string
    Inference secret name.
    name string
    Secret name.
    secretName string
    Inference secret name.
    type string
    Secret type.
    projectId number
    Project ID
    data GetCloudInferenceSecretData
    Secret data.
    id str
    Inference secret name.
    name str
    Secret name.
    secret_name str
    Inference secret name.
    type str
    Secret type.
    project_id float
    Project ID
    data Property Map
    Secret data.
    id String
    Inference secret name.
    name String
    Secret name.
    secretName String
    Inference secret name.
    type String
    Secret type.
    projectId Number
    Project ID

    Supporting Types

    GetCloudInferenceSecretData

    AwsAccessKeyId string
    AWS IAM key ID.
    AwsSecretAccessKey string
    AWS IAM secret key.
    AwsAccessKeyId string
    AWS IAM key ID.
    AwsSecretAccessKey string
    AWS IAM secret key.
    awsAccessKeyId String
    AWS IAM key ID.
    awsSecretAccessKey String
    AWS IAM secret key.
    awsAccessKeyId string
    AWS IAM key ID.
    awsSecretAccessKey string
    AWS IAM secret key.
    aws_access_key_id str
    AWS IAM key ID.
    aws_secret_access_key str
    AWS IAM secret key.
    awsAccessKeyId String
    AWS IAM key ID.
    awsSecretAccessKey String
    AWS IAM secret key.

    Package Details

    Repository
    gcore g-core/terraform-provider-gcore
    License
    Notes
    This Pulumi package is based on the gcore Terraform Provider.
    Viewing docs for gcore 2.0.0-alpha.3
    published on Monday, Mar 30, 2026 by g-core
      Try Pulumi Cloud free. Your team will thank you.