Viewing docs for gcore 2.0.0-alpha.3
published on Monday, Mar 30, 2026 by g-core
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
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 dictionaryThe following arguments are supported:
- Secret
Name string - Inference secret name.
- Project
Id double - Project ID
- Secret
Name string - Inference secret name.
- Project
Id float64 - Project ID
- secret
Name String - Inference secret name.
- project
Id Double - Project ID
- secret
Name string - Inference secret name.
- project
Id number - Project ID
- secret_
name str - Inference secret name.
- project_
id float - Project ID
- secret
Name String - Inference secret name.
- project
Id Number - Project ID
getCloudInferenceSecret Result
The following output properties are available:
- Data
Get
Cloud Inference Secret Data - Secret data.
- Id string
- Inference secret name.
- Name string
- Secret name.
- Secret
Name string - Inference secret name.
- Type string
- Secret type.
- Project
Id double - Project ID
- Data
Get
Cloud Inference Secret Data - Secret data.
- Id string
- Inference secret name.
- Name string
- Secret name.
- Secret
Name string - Inference secret name.
- Type string
- Secret type.
- Project
Id float64 - Project ID
- data
Get
Cloud Inference Secret Data - Secret data.
- id String
- Inference secret name.
- name String
- Secret name.
- secret
Name String - Inference secret name.
- type String
- Secret type.
- project
Id Double - Project ID
- data
Get
Cloud Inference Secret Data - Secret data.
- id string
- Inference secret name.
- name string
- Secret name.
- secret
Name string - Inference secret name.
- type string
- Secret type.
- project
Id number - Project ID
- data
Get
Cloud Inference Secret Data - 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.
- secret
Name String - Inference secret name.
- type String
- Secret type.
- project
Id Number - Project ID
Supporting Types
GetCloudInferenceSecretData
- Aws
Access stringKey Id - AWS IAM key ID.
- Aws
Secret stringAccess Key - AWS IAM secret key.
- Aws
Access stringKey Id - AWS IAM key ID.
- Aws
Secret stringAccess Key - AWS IAM secret key.
- aws
Access StringKey Id - AWS IAM key ID.
- aws
Secret StringAccess Key - AWS IAM secret key.
- aws
Access stringKey Id - AWS IAM key ID.
- aws
Secret stringAccess Key - AWS IAM secret key.
- aws_
access_ strkey_ id - AWS IAM key ID.
- aws_
secret_ straccess_ key - AWS IAM secret key.
- aws
Access StringKey Id - AWS IAM key ID.
- aws
Secret StringAccess Key - AWS IAM secret key.
Package Details
- Repository
- gcore g-core/terraform-provider-gcore
- License
- Notes
- This Pulumi package is based on the
gcoreTerraform Provider.
Viewing docs for gcore 2.0.0-alpha.3
published on Monday, Mar 30, 2026 by g-core
published on Monday, Mar 30, 2026 by g-core
