1. Packages
  2. Gcore Provider
  3. API Docs
  4. getCloudInferenceSecrets
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 exampleCloudInferenceSecrets = gcore.getCloudInferenceSecrets({
        projectId: 1,
    });
    
    import pulumi
    import pulumi_gcore as gcore
    
    example_cloud_inference_secrets = gcore.get_cloud_inference_secrets(project_id=1)
    
    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.GetCloudInferenceSecrets(ctx, &gcore.GetCloudInferenceSecretsArgs{
    			ProjectId: pulumi.Float64Ref(1),
    		}, 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 exampleCloudInferenceSecrets = Gcore.GetCloudInferenceSecrets.Invoke(new()
        {
            ProjectId = 1,
        });
    
    });
    
    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.GetCloudInferenceSecretsArgs;
    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 exampleCloudInferenceSecrets = GcoreFunctions.getCloudInferenceSecrets(GetCloudInferenceSecretsArgs.builder()
                .projectId(1)
                .build());
    
        }
    }
    
    variables:
      exampleCloudInferenceSecrets:
        fn::invoke:
          function: gcore:getCloudInferenceSecrets
          arguments:
            projectId: 1
    

    Using getCloudInferenceSecrets

    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 getCloudInferenceSecrets(args: GetCloudInferenceSecretsArgs, opts?: InvokeOptions): Promise<GetCloudInferenceSecretsResult>
    function getCloudInferenceSecretsOutput(args: GetCloudInferenceSecretsOutputArgs, opts?: InvokeOptions): Output<GetCloudInferenceSecretsResult>
    def get_cloud_inference_secrets(max_items: Optional[float] = None,
                                    project_id: Optional[float] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetCloudInferenceSecretsResult
    def get_cloud_inference_secrets_output(max_items: Optional[pulumi.Input[float]] = None,
                                    project_id: Optional[pulumi.Input[float]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetCloudInferenceSecretsResult]
    func GetCloudInferenceSecrets(ctx *Context, args *GetCloudInferenceSecretsArgs, opts ...InvokeOption) (*GetCloudInferenceSecretsResult, error)
    func GetCloudInferenceSecretsOutput(ctx *Context, args *GetCloudInferenceSecretsOutputArgs, opts ...InvokeOption) GetCloudInferenceSecretsResultOutput

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

    public static class GetCloudInferenceSecrets 
    {
        public static Task<GetCloudInferenceSecretsResult> InvokeAsync(GetCloudInferenceSecretsArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudInferenceSecretsResult> Invoke(GetCloudInferenceSecretsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudInferenceSecretsResult> getCloudInferenceSecrets(GetCloudInferenceSecretsArgs args, InvokeOptions options)
    public static Output<GetCloudInferenceSecretsResult> getCloudInferenceSecrets(GetCloudInferenceSecretsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: gcore:index/getCloudInferenceSecrets:getCloudInferenceSecrets
      arguments:
        # arguments dictionary

    The following arguments are supported:

    MaxItems double
    Max items to fetch, default: 1000
    ProjectId double
    Project ID
    MaxItems float64
    Max items to fetch, default: 1000
    ProjectId float64
    Project ID
    maxItems Double
    Max items to fetch, default: 1000
    projectId Double
    Project ID
    maxItems number
    Max items to fetch, default: 1000
    projectId number
    Project ID
    max_items float
    Max items to fetch, default: 1000
    project_id float
    Project ID
    maxItems Number
    Max items to fetch, default: 1000
    projectId Number
    Project ID

    getCloudInferenceSecrets Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Items List<GetCloudInferenceSecretsItem>
    The items returned by the data source
    MaxItems double
    Max items to fetch, default: 1000
    ProjectId double
    Project ID
    Id string
    The provider-assigned unique ID for this managed resource.
    Items []GetCloudInferenceSecretsItem
    The items returned by the data source
    MaxItems float64
    Max items to fetch, default: 1000
    ProjectId float64
    Project ID
    id String
    The provider-assigned unique ID for this managed resource.
    items List<GetCloudInferenceSecretsItem>
    The items returned by the data source
    maxItems Double
    Max items to fetch, default: 1000
    projectId Double
    Project ID
    id string
    The provider-assigned unique ID for this managed resource.
    items GetCloudInferenceSecretsItem[]
    The items returned by the data source
    maxItems number
    Max items to fetch, default: 1000
    projectId number
    Project ID
    id str
    The provider-assigned unique ID for this managed resource.
    items Sequence[GetCloudInferenceSecretsItem]
    The items returned by the data source
    max_items float
    Max items to fetch, default: 1000
    project_id float
    Project ID
    id String
    The provider-assigned unique ID for this managed resource.
    items List<Property Map>
    The items returned by the data source
    maxItems Number
    Max items to fetch, default: 1000
    projectId Number
    Project ID

    Supporting Types

    GetCloudInferenceSecretsItem

    Data GetCloudInferenceSecretsItemData
    Secret data.
    Id string
    Secret name.
    Name string
    Secret name.
    Type string
    Secret type.
    Data GetCloudInferenceSecretsItemData
    Secret data.
    Id string
    Secret name.
    Name string
    Secret name.
    Type string
    Secret type.
    data GetCloudInferenceSecretsItemData
    Secret data.
    id String
    Secret name.
    name String
    Secret name.
    type String
    Secret type.
    data GetCloudInferenceSecretsItemData
    Secret data.
    id string
    Secret name.
    name string
    Secret name.
    type string
    Secret type.
    data GetCloudInferenceSecretsItemData
    Secret data.
    id str
    Secret name.
    name str
    Secret name.
    type str
    Secret type.
    data Property Map
    Secret data.
    id String
    Secret name.
    name String
    Secret name.
    type String
    Secret type.

    GetCloudInferenceSecretsItemData

    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.