published on Friday, Nov 6, 2026 by Pulumi
published on Friday, Nov 6, 2026 by Pulumi
Caution: Preview Feature This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to
previewFeaturesEnabledfield in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
Attaches a Cortex agent to a Snowflake Intelligence object so the agent is available in Snowflake CoWork.
Example Usage
Note Instead of using fully_qualified_name, you can reference objects managed outside Terraform by constructing a correct ID, consult identifiers guide.
import * as pulumi from "@pulumi/pulumi";
import * as snowflake from "@pulumi/snowflake";
const agent = new snowflake.CortexAgent("agent", {
database: "my_database",
schema: "my_schema",
name: "my_agent",
specification: `orchestration:
budget:
seconds: 30
tokens: 16000
instructions:
response: \\"You are a helpful assistant.\\"
`,
});
const agentIntelligenceCortexAgentAttachment = new snowflake.IntelligenceCortexAgentAttachment("agent", {
snowflakeIntelligenceName: "SNOWFLAKE_INTELLIGENCE_OBJECT_DEFAULT",
cortexAgentName: agent.fullyQualifiedName,
});
import pulumi
import pulumi_snowflake as snowflake
agent = snowflake.CortexAgent("agent",
database="my_database",
schema="my_schema",
name="my_agent",
specification="""orchestration:
budget:
seconds: 30
tokens: 16000
instructions:
response: \"You are a helpful assistant.\"
""")
agent_intelligence_cortex_agent_attachment = snowflake.IntelligenceCortexAgentAttachment("agent",
snowflake_intelligence_name="SNOWFLAKE_INTELLIGENCE_OBJECT_DEFAULT",
cortex_agent_name=agent.fully_qualified_name)
package main
import (
"github.com/pulumi/pulumi-snowflake/sdk/v2/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
agent, err := snowflake.NewCortexAgent(ctx, "agent", &snowflake.CortexAgentArgs{
Database: pulumi.String("my_database"),
Schema: pulumi.String("my_schema"),
Name: pulumi.String("my_agent"),
Specification: pulumi.String(`orchestration:
budget:
seconds: 30
tokens: 16000
instructions:
response: \"You are a helpful assistant.\"
`),
})
if err != nil {
return err
}
_, err = snowflake.NewIntelligenceCortexAgentAttachment(ctx, "agent", &snowflake.IntelligenceCortexAgentAttachmentArgs{
SnowflakeIntelligenceName: pulumi.String("SNOWFLAKE_INTELLIGENCE_OBJECT_DEFAULT"),
CortexAgentName: agent.FullyQualifiedName,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Snowflake = Pulumi.Snowflake;
return await Deployment.RunAsync(() =>
{
var agent = new Snowflake.CortexAgent("agent", new()
{
Database = "my_database",
Schema = "my_schema",
Name = "my_agent",
Specification = @"orchestration:
budget:
seconds: 30
tokens: 16000
instructions:
response: \""You are a helpful assistant.\""
",
});
var agentIntelligenceCortexAgentAttachment = new Snowflake.IntelligenceCortexAgentAttachment("agent", new()
{
SnowflakeIntelligenceName = "SNOWFLAKE_INTELLIGENCE_OBJECT_DEFAULT",
CortexAgentName = agent.FullyQualifiedName,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.snowflake.CortexAgent;
import com.pulumi.snowflake.CortexAgentArgs;
import com.pulumi.snowflake.IntelligenceCortexAgentAttachment;
import com.pulumi.snowflake.IntelligenceCortexAgentAttachmentArgs;
import java.util.ArrayList;
import java.util.Arrays;
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) {
var agent = new CortexAgent("agent", CortexAgentArgs.builder()
.database("my_database")
.schema("my_schema")
.name("my_agent")
.specification("""
orchestration:
budget:
seconds: 30
tokens: 16000
instructions:
response: \"You are a helpful assistant.\"
""")
.build());
var agentIntelligenceCortexAgentAttachment = new IntelligenceCortexAgentAttachment("agentIntelligenceCortexAgentAttachment", IntelligenceCortexAgentAttachmentArgs.builder()
.snowflakeIntelligenceName("SNOWFLAKE_INTELLIGENCE_OBJECT_DEFAULT")
.cortexAgentName(agent.fullyQualifiedName())
.build());
}
}
resources:
agent:
type: snowflake:CortexAgent
properties:
database: my_database
schema: my_schema
name: my_agent
specification: |
orchestration:
budget:
seconds: 30
tokens: 16000
instructions:
response: \"You are a helpful assistant.\"
agentIntelligenceCortexAgentAttachment:
type: snowflake:IntelligenceCortexAgentAttachment
name: agent
properties:
snowflakeIntelligenceName: SNOWFLAKE_INTELLIGENCE_OBJECT_DEFAULT
cortexAgentName: ${agent.fullyQualifiedName}
terraform {
required_providers {
snowflake = {
source = "pulumi/snowflake"
}
}
}
resource "snowflake_cortex_agent" "agent" {
lifecycle {
create_before_destroy = true
}
database = "my_database"
schema = "my_schema"
name = "my_agent"
specification = <<-EOT
orchestration:
budget:
seconds: 30
tokens: 16000
instructions:
response: \"You are a helpful assistant.\"
EOT
}
resource "snowflake_intelligence_cortex_agent_attachment" "agent" {
lifecycle {
create_before_destroy = true
}
snowflake_intelligence_name = "SNOWFLAKE_INTELLIGENCE_OBJECT_DEFAULT"
cortex_agent_name = snowflake_cortex_agent.agent.fully_qualified_name
}
Note If a field has a default value, it is shown next to the type in the schema.
Create IntelligenceCortexAgentAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IntelligenceCortexAgentAttachment(name: string, args: IntelligenceCortexAgentAttachmentArgs, opts?: CustomResourceOptions);@overload
def IntelligenceCortexAgentAttachment(resource_name: str,
args: IntelligenceCortexAgentAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IntelligenceCortexAgentAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
cortex_agent_name: Optional[str] = None,
snowflake_intelligence_name: Optional[str] = None)func NewIntelligenceCortexAgentAttachment(ctx *Context, name string, args IntelligenceCortexAgentAttachmentArgs, opts ...ResourceOption) (*IntelligenceCortexAgentAttachment, error)public IntelligenceCortexAgentAttachment(string name, IntelligenceCortexAgentAttachmentArgs args, CustomResourceOptions? opts = null)
public IntelligenceCortexAgentAttachment(String name, IntelligenceCortexAgentAttachmentArgs args)
public IntelligenceCortexAgentAttachment(String name, IntelligenceCortexAgentAttachmentArgs args, CustomResourceOptions options)
type: snowflake:IntelligenceCortexAgentAttachment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "snowflake_intelligence_cortex_agent_attachment" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args IntelligenceCortexAgentAttachmentArgs
- 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 IntelligenceCortexAgentAttachmentArgs
- 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 IntelligenceCortexAgentAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IntelligenceCortexAgentAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IntelligenceCortexAgentAttachmentArgs
- 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 intelligenceCortexAgentAttachmentResource = new Snowflake.IntelligenceCortexAgentAttachment("intelligenceCortexAgentAttachmentResource", new()
{
CortexAgentName = "string",
SnowflakeIntelligenceName = "string",
});
example, err := snowflake.NewIntelligenceCortexAgentAttachment(ctx, "intelligenceCortexAgentAttachmentResource", &snowflake.IntelligenceCortexAgentAttachmentArgs{
CortexAgentName: pulumi.String("string"),
SnowflakeIntelligenceName: pulumi.String("string"),
})
resource "snowflake_intelligence_cortex_agent_attachment" "intelligenceCortexAgentAttachmentResource" {
lifecycle {
create_before_destroy = true
}
cortex_agent_name = "string"
snowflake_intelligence_name = "string"
}
var intelligenceCortexAgentAttachmentResource = new IntelligenceCortexAgentAttachment("intelligenceCortexAgentAttachmentResource", IntelligenceCortexAgentAttachmentArgs.builder()
.cortexAgentName("string")
.snowflakeIntelligenceName("string")
.build());
intelligence_cortex_agent_attachment_resource = snowflake.IntelligenceCortexAgentAttachment("intelligenceCortexAgentAttachmentResource",
cortex_agent_name="string",
snowflake_intelligence_name="string")
const intelligenceCortexAgentAttachmentResource = new snowflake.IntelligenceCortexAgentAttachment("intelligenceCortexAgentAttachmentResource", {
cortexAgentName: "string",
snowflakeIntelligenceName: "string",
});
type: snowflake:IntelligenceCortexAgentAttachment
properties:
cortexAgentName: string
snowflakeIntelligenceName: string
IntelligenceCortexAgentAttachment 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 IntelligenceCortexAgentAttachment resource accepts the following input properties:
- Cortex
Agent stringName - Fully qualified name of the Cortex agent to attach. Due to technical limitations (read more here), avoid using pipes (
|). - Snowflake
Intelligence stringName - Fully qualified name of the Snowflake Intelligence object to attach the agent to. The account default object is SNOWFLAKEINTELLIGENCEOBJECT*DEFAULT. Due to technical limitations (read more here), avoid using pipes (
|).
- Cortex
Agent stringName - Fully qualified name of the Cortex agent to attach. Due to technical limitations (read more here), avoid using pipes (
|). - Snowflake
Intelligence stringName - Fully qualified name of the Snowflake Intelligence object to attach the agent to. The account default object is SNOWFLAKEINTELLIGENCEOBJECT*DEFAULT. Due to technical limitations (read more here), avoid using pipes (
|).
- cortex_
agent_ stringname - Fully qualified name of the Cortex agent to attach. Due to technical limitations (read more here), avoid using pipes (
|). - snowflake_
intelligence_ stringname - Fully qualified name of the Snowflake Intelligence object to attach the agent to. The account default object is SNOWFLAKEINTELLIGENCEOBJECT*DEFAULT. Due to technical limitations (read more here), avoid using pipes (
|).
- cortex
Agent StringName - Fully qualified name of the Cortex agent to attach. Due to technical limitations (read more here), avoid using pipes (
|). - snowflake
Intelligence StringName - Fully qualified name of the Snowflake Intelligence object to attach the agent to. The account default object is SNOWFLAKEINTELLIGENCEOBJECT*DEFAULT. Due to technical limitations (read more here), avoid using pipes (
|).
- cortex
Agent stringName - Fully qualified name of the Cortex agent to attach. Due to technical limitations (read more here), avoid using pipes (
|). - snowflake
Intelligence stringName - Fully qualified name of the Snowflake Intelligence object to attach the agent to. The account default object is SNOWFLAKEINTELLIGENCEOBJECT*DEFAULT. Due to technical limitations (read more here), avoid using pipes (
|).
- cortex_
agent_ strname - Fully qualified name of the Cortex agent to attach. Due to technical limitations (read more here), avoid using pipes (
|). - snowflake_
intelligence_ strname - Fully qualified name of the Snowflake Intelligence object to attach the agent to. The account default object is SNOWFLAKEINTELLIGENCEOBJECT*DEFAULT. Due to technical limitations (read more here), avoid using pipes (
|).
- cortex
Agent StringName - Fully qualified name of the Cortex agent to attach. Due to technical limitations (read more here), avoid using pipes (
|). - snowflake
Intelligence StringName - Fully qualified name of the Snowflake Intelligence object to attach the agent to. The account default object is SNOWFLAKEINTELLIGENCEOBJECT*DEFAULT. Due to technical limitations (read more here), avoid using pipes (
|).
Outputs
All input properties are implicitly available as output properties. Additionally, the IntelligenceCortexAgentAttachment 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 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 IntelligenceCortexAgentAttachment Resource
Get an existing IntelligenceCortexAgentAttachment 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?: IntelligenceCortexAgentAttachmentState, opts?: CustomResourceOptions): IntelligenceCortexAgentAttachment@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cortex_agent_name: Optional[str] = None,
snowflake_intelligence_name: Optional[str] = None) -> IntelligenceCortexAgentAttachmentfunc GetIntelligenceCortexAgentAttachment(ctx *Context, name string, id IDInput, state *IntelligenceCortexAgentAttachmentState, opts ...ResourceOption) (*IntelligenceCortexAgentAttachment, error)public static IntelligenceCortexAgentAttachment Get(string name, Input<string> id, IntelligenceCortexAgentAttachmentState? state, CustomResourceOptions? opts = null)public static IntelligenceCortexAgentAttachment get(String name, Output<String> id, IntelligenceCortexAgentAttachmentState state, CustomResourceOptions options)resources: _: type: snowflake:IntelligenceCortexAgentAttachment get: id: ${id}import {
to = snowflake_intelligence_cortex_agent_attachment.example
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.
- Cortex
Agent stringName - Fully qualified name of the Cortex agent to attach. Due to technical limitations (read more here), avoid using pipes (
|). - Snowflake
Intelligence stringName - Fully qualified name of the Snowflake Intelligence object to attach the agent to. The account default object is SNOWFLAKEINTELLIGENCEOBJECT*DEFAULT. Due to technical limitations (read more here), avoid using pipes (
|).
- Cortex
Agent stringName - Fully qualified name of the Cortex agent to attach. Due to technical limitations (read more here), avoid using pipes (
|). - Snowflake
Intelligence stringName - Fully qualified name of the Snowflake Intelligence object to attach the agent to. The account default object is SNOWFLAKEINTELLIGENCEOBJECT*DEFAULT. Due to technical limitations (read more here), avoid using pipes (
|).
- cortex_
agent_ stringname - Fully qualified name of the Cortex agent to attach. Due to technical limitations (read more here), avoid using pipes (
|). - snowflake_
intelligence_ stringname - Fully qualified name of the Snowflake Intelligence object to attach the agent to. The account default object is SNOWFLAKEINTELLIGENCEOBJECT*DEFAULT. Due to technical limitations (read more here), avoid using pipes (
|).
- cortex
Agent StringName - Fully qualified name of the Cortex agent to attach. Due to technical limitations (read more here), avoid using pipes (
|). - snowflake
Intelligence StringName - Fully qualified name of the Snowflake Intelligence object to attach the agent to. The account default object is SNOWFLAKEINTELLIGENCEOBJECT*DEFAULT. Due to technical limitations (read more here), avoid using pipes (
|).
- cortex
Agent stringName - Fully qualified name of the Cortex agent to attach. Due to technical limitations (read more here), avoid using pipes (
|). - snowflake
Intelligence stringName - Fully qualified name of the Snowflake Intelligence object to attach the agent to. The account default object is SNOWFLAKEINTELLIGENCEOBJECT*DEFAULT. Due to technical limitations (read more here), avoid using pipes (
|).
- cortex_
agent_ strname - Fully qualified name of the Cortex agent to attach. Due to technical limitations (read more here), avoid using pipes (
|). - snowflake_
intelligence_ strname - Fully qualified name of the Snowflake Intelligence object to attach the agent to. The account default object is SNOWFLAKEINTELLIGENCEOBJECT*DEFAULT. Due to technical limitations (read more here), avoid using pipes (
|).
- cortex
Agent StringName - Fully qualified name of the Cortex agent to attach. Due to technical limitations (read more here), avoid using pipes (
|). - snowflake
Intelligence StringName - Fully qualified name of the Snowflake Intelligence object to attach the agent to. The account default object is SNOWFLAKEINTELLIGENCEOBJECT*DEFAULT. Due to technical limitations (read more here), avoid using pipes (
|).
Import
$ pulumi import snowflake:index/intelligenceCortexAgentAttachment:IntelligenceCortexAgentAttachment example '"<intelligence_name>"|"<database_name>"."<schema_name>"."<cortex_agent_name>"'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
snowflakeTerraform Provider.
published on Friday, Nov 6, 2026 by Pulumi