1. Packages
  2. Gcore Provider
  3. API Docs
  4. CloudInferenceSecret
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

    AWS IAM secret for SQS triggers

    Create an AWS IAM secret for use with inference deployment SQS triggers.

    import * as pulumi from "@pulumi/pulumi";
    import * as gcore from "@pulumi/gcore";
    
    // Create an AWS IAM secret for use with inference SQS triggers
    const example = new gcore.CloudInferenceSecret("example", {
        projectId: 1,
        name: "my-aws-iam-secret",
        type: "aws-iam",
        dataWoVersion: 1,
        data: {
            awsAccessKeyIdWo: "my-aws-access-key-id",
            awsSecretAccessKeyWo: "my-aws-secret-key",
        },
    });
    
    import pulumi
    import pulumi_gcore as gcore
    
    # Create an AWS IAM secret for use with inference SQS triggers
    example = gcore.CloudInferenceSecret("example",
        project_id=1,
        name="my-aws-iam-secret",
        type="aws-iam",
        data_wo_version=1,
        data={
            "aws_access_key_id_wo": "my-aws-access-key-id",
            "aws_secret_access_key_wo": "my-aws-secret-key",
        })
    
    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 {
    		// Create an AWS IAM secret for use with inference SQS triggers
    		_, err := gcore.NewCloudInferenceSecret(ctx, "example", &gcore.CloudInferenceSecretArgs{
    			ProjectId:     pulumi.Float64(1),
    			Name:          pulumi.String("my-aws-iam-secret"),
    			Type:          pulumi.String("aws-iam"),
    			DataWoVersion: pulumi.Float64(1),
    			Data: &gcore.CloudInferenceSecretDataArgs{
    				AwsAccessKeyIdWo:     pulumi.String("my-aws-access-key-id"),
    				AwsSecretAccessKeyWo: pulumi.String("my-aws-secret-key"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcore = Pulumi.Gcore;
    
    return await Deployment.RunAsync(() => 
    {
        // Create an AWS IAM secret for use with inference SQS triggers
        var example = new Gcore.CloudInferenceSecret("example", new()
        {
            ProjectId = 1,
            Name = "my-aws-iam-secret",
            Type = "aws-iam",
            DataWoVersion = 1,
            Data = new Gcore.Inputs.CloudInferenceSecretDataArgs
            {
                AwsAccessKeyIdWo = "my-aws-access-key-id",
                AwsSecretAccessKeyWo = "my-aws-secret-key",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcore.CloudInferenceSecret;
    import com.pulumi.gcore.CloudInferenceSecretArgs;
    import com.pulumi.gcore.inputs.CloudInferenceSecretDataArgs;
    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) {
            // Create an AWS IAM secret for use with inference SQS triggers
            var example = new CloudInferenceSecret("example", CloudInferenceSecretArgs.builder()
                .projectId(1.0)
                .name("my-aws-iam-secret")
                .type("aws-iam")
                .dataWoVersion(1.0)
                .data(CloudInferenceSecretDataArgs.builder()
                    .awsAccessKeyIdWo("my-aws-access-key-id")
                    .awsSecretAccessKeyWo("my-aws-secret-key")
                    .build())
                .build());
    
        }
    }
    
    resources:
      # Create an AWS IAM secret for use with inference SQS triggers
      example:
        type: gcore:CloudInferenceSecret
        properties:
          projectId: 1
          name: my-aws-iam-secret
          type: aws-iam
          dataWoVersion: 1
          data:
            awsAccessKeyIdWo: my-aws-access-key-id
            awsSecretAccessKeyWo: my-aws-secret-key
    

    Create CloudInferenceSecret Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CloudInferenceSecret(name: string, args: CloudInferenceSecretArgs, opts?: CustomResourceOptions);
    @overload
    def CloudInferenceSecret(resource_name: str,
                             args: CloudInferenceSecretArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def CloudInferenceSecret(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             data: Optional[CloudInferenceSecretDataArgs] = None,
                             data_wo_version: Optional[float] = None,
                             type: Optional[str] = None,
                             name: Optional[str] = None,
                             project_id: Optional[float] = None)
    func NewCloudInferenceSecret(ctx *Context, name string, args CloudInferenceSecretArgs, opts ...ResourceOption) (*CloudInferenceSecret, error)
    public CloudInferenceSecret(string name, CloudInferenceSecretArgs args, CustomResourceOptions? opts = null)
    public CloudInferenceSecret(String name, CloudInferenceSecretArgs args)
    public CloudInferenceSecret(String name, CloudInferenceSecretArgs args, CustomResourceOptions options)
    
    type: gcore:CloudInferenceSecret
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args CloudInferenceSecretArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args CloudInferenceSecretArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args CloudInferenceSecretArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CloudInferenceSecretArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CloudInferenceSecretArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var cloudInferenceSecretResource = new Gcore.Index.CloudInferenceSecret("cloudInferenceSecretResource", new()
    {
        Data = new Gcore.Inputs.CloudInferenceSecretDataArgs
        {
            AwsAccessKeyIdWo = "string",
            AwsSecretAccessKeyWo = "string",
        },
        DataWoVersion = 0,
        Type = "string",
        Name = "string",
        ProjectId = 0,
    });
    
    example, err := gcore.NewCloudInferenceSecret(ctx, "cloudInferenceSecretResource", &gcore.CloudInferenceSecretArgs{
    	Data: &gcore.CloudInferenceSecretDataArgs{
    		AwsAccessKeyIdWo:     pulumi.String("string"),
    		AwsSecretAccessKeyWo: pulumi.String("string"),
    	},
    	DataWoVersion: pulumi.Float64(0),
    	Type:          pulumi.String("string"),
    	Name:          pulumi.String("string"),
    	ProjectId:     pulumi.Float64(0),
    })
    
    var cloudInferenceSecretResource = new CloudInferenceSecret("cloudInferenceSecretResource", CloudInferenceSecretArgs.builder()
        .data(CloudInferenceSecretDataArgs.builder()
            .awsAccessKeyIdWo("string")
            .awsSecretAccessKeyWo("string")
            .build())
        .dataWoVersion(0.0)
        .type("string")
        .name("string")
        .projectId(0.0)
        .build());
    
    cloud_inference_secret_resource = gcore.CloudInferenceSecret("cloudInferenceSecretResource",
        data={
            "aws_access_key_id_wo": "string",
            "aws_secret_access_key_wo": "string",
        },
        data_wo_version=0,
        type="string",
        name="string",
        project_id=0)
    
    const cloudInferenceSecretResource = new gcore.CloudInferenceSecret("cloudInferenceSecretResource", {
        data: {
            awsAccessKeyIdWo: "string",
            awsSecretAccessKeyWo: "string",
        },
        dataWoVersion: 0,
        type: "string",
        name: "string",
        projectId: 0,
    });
    
    type: gcore:CloudInferenceSecret
    properties:
        data:
            awsAccessKeyIdWo: string
            awsSecretAccessKeyWo: string
        dataWoVersion: 0
        name: string
        projectId: 0
        type: string
    

    CloudInferenceSecret Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The CloudInferenceSecret resource accepts the following input properties:

    Data CloudInferenceSecretData
    Secret data.
    DataWoVersion double
    The version of the data sensitive params - used to trigger updates of write-only params.
    Type string
    Secret type. Currently only aws-iam is supported.
    Name string
    Secret name.
    ProjectId double
    Project ID
    Data CloudInferenceSecretDataArgs
    Secret data.
    DataWoVersion float64
    The version of the data sensitive params - used to trigger updates of write-only params.
    Type string
    Secret type. Currently only aws-iam is supported.
    Name string
    Secret name.
    ProjectId float64
    Project ID
    data CloudInferenceSecretData
    Secret data.
    dataWoVersion Double
    The version of the data sensitive params - used to trigger updates of write-only params.
    type String
    Secret type. Currently only aws-iam is supported.
    name String
    Secret name.
    projectId Double
    Project ID
    data CloudInferenceSecretData
    Secret data.
    dataWoVersion number
    The version of the data sensitive params - used to trigger updates of write-only params.
    type string
    Secret type. Currently only aws-iam is supported.
    name string
    Secret name.
    projectId number
    Project ID
    data CloudInferenceSecretDataArgs
    Secret data.
    data_wo_version float
    The version of the data sensitive params - used to trigger updates of write-only params.
    type str
    Secret type. Currently only aws-iam is supported.
    name str
    Secret name.
    project_id float
    Project ID
    data Property Map
    Secret data.
    dataWoVersion Number
    The version of the data sensitive params - used to trigger updates of write-only params.
    type String
    Secret type. Currently only aws-iam is supported.
    name String
    Secret name.
    projectId Number
    Project ID

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CloudInferenceSecret resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing CloudInferenceSecret Resource

    Get an existing CloudInferenceSecret resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: CloudInferenceSecretState, opts?: CustomResourceOptions): CloudInferenceSecret
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            data: Optional[CloudInferenceSecretDataArgs] = None,
            data_wo_version: Optional[float] = None,
            name: Optional[str] = None,
            project_id: Optional[float] = None,
            type: Optional[str] = None) -> CloudInferenceSecret
    func GetCloudInferenceSecret(ctx *Context, name string, id IDInput, state *CloudInferenceSecretState, opts ...ResourceOption) (*CloudInferenceSecret, error)
    public static CloudInferenceSecret Get(string name, Input<string> id, CloudInferenceSecretState? state, CustomResourceOptions? opts = null)
    public static CloudInferenceSecret get(String name, Output<String> id, CloudInferenceSecretState state, CustomResourceOptions options)
    resources:  _:    type: gcore:CloudInferenceSecret    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Data CloudInferenceSecretData
    Secret data.
    DataWoVersion double
    The version of the data sensitive params - used to trigger updates of write-only params.
    Name string
    Secret name.
    ProjectId double
    Project ID
    Type string
    Secret type. Currently only aws-iam is supported.
    Data CloudInferenceSecretDataArgs
    Secret data.
    DataWoVersion float64
    The version of the data sensitive params - used to trigger updates of write-only params.
    Name string
    Secret name.
    ProjectId float64
    Project ID
    Type string
    Secret type. Currently only aws-iam is supported.
    data CloudInferenceSecretData
    Secret data.
    dataWoVersion Double
    The version of the data sensitive params - used to trigger updates of write-only params.
    name String
    Secret name.
    projectId Double
    Project ID
    type String
    Secret type. Currently only aws-iam is supported.
    data CloudInferenceSecretData
    Secret data.
    dataWoVersion number
    The version of the data sensitive params - used to trigger updates of write-only params.
    name string
    Secret name.
    projectId number
    Project ID
    type string
    Secret type. Currently only aws-iam is supported.
    data CloudInferenceSecretDataArgs
    Secret data.
    data_wo_version float
    The version of the data sensitive params - used to trigger updates of write-only params.
    name str
    Secret name.
    project_id float
    Project ID
    type str
    Secret type. Currently only aws-iam is supported.
    data Property Map
    Secret data.
    dataWoVersion Number
    The version of the data sensitive params - used to trigger updates of write-only params.
    name String
    Secret name.
    projectId Number
    Project ID
    type String
    Secret type. Currently only aws-iam is supported.

    Supporting Types

    CloudInferenceSecretData, CloudInferenceSecretDataArgs

    AwsAccessKeyIdWo string
    AWS IAM key ID.
    AwsSecretAccessKeyWo string
    AWS IAM secret key.
    AwsAccessKeyIdWo string
    AWS IAM key ID.
    AwsSecretAccessKeyWo string
    AWS IAM secret key.
    awsAccessKeyIdWo String
    AWS IAM key ID.
    awsSecretAccessKeyWo String
    AWS IAM secret key.
    awsAccessKeyIdWo string
    AWS IAM key ID.
    awsSecretAccessKeyWo string
    AWS IAM secret key.
    aws_access_key_id_wo str
    AWS IAM key ID.
    aws_secret_access_key_wo str
    AWS IAM secret key.
    awsAccessKeyIdWo String
    AWS IAM key ID.
    awsSecretAccessKeyWo String
    AWS IAM secret key.

    Import

    $ pulumi import gcore:index/cloudInferenceSecret:CloudInferenceSecret example '<project_id>/<secret_name>'
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.