castai.EksCluster
Explore with Pulumi AI
EKS cluster resource allows connecting an existing EKS cluster to CAST AI.
Create EksCluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EksCluster(name: string, args: EksClusterArgs, opts?: CustomResourceOptions);@overload
def EksCluster(resource_name: str,
               args: EksClusterArgs,
               opts: Optional[ResourceOptions] = None)
@overload
def EksCluster(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               account_id: Optional[str] = None,
               region: Optional[str] = None,
               assume_role_arn: Optional[str] = None,
               delete_nodes_on_disconnect: Optional[bool] = None,
               eks_cluster_id: Optional[str] = None,
               name: Optional[str] = None,
               timeouts: Optional[EksClusterTimeoutsArgs] = None)func NewEksCluster(ctx *Context, name string, args EksClusterArgs, opts ...ResourceOption) (*EksCluster, error)public EksCluster(string name, EksClusterArgs args, CustomResourceOptions? opts = null)
public EksCluster(String name, EksClusterArgs args)
public EksCluster(String name, EksClusterArgs args, CustomResourceOptions options)
type: castai:EksCluster
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 EksClusterArgs
- 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 EksClusterArgs
- 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 EksClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EksClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EksClusterArgs
- 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 eksClusterResource = new Castai.EksCluster("eksClusterResource", new()
{
    AccountId = "string",
    Region = "string",
    AssumeRoleArn = "string",
    DeleteNodesOnDisconnect = false,
    EksClusterId = "string",
    Name = "string",
    Timeouts = new Castai.Inputs.EksClusterTimeoutsArgs
    {
        Create = "string",
        Delete = "string",
        Update = "string",
    },
});
example, err := castai.NewEksCluster(ctx, "eksClusterResource", &castai.EksClusterArgs{
AccountId: pulumi.String("string"),
Region: pulumi.String("string"),
AssumeRoleArn: pulumi.String("string"),
DeleteNodesOnDisconnect: pulumi.Bool(false),
EksClusterId: pulumi.String("string"),
Name: pulumi.String("string"),
Timeouts: &.EksClusterTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var eksClusterResource = new EksCluster("eksClusterResource", EksClusterArgs.builder()
    .accountId("string")
    .region("string")
    .assumeRoleArn("string")
    .deleteNodesOnDisconnect(false)
    .eksClusterId("string")
    .name("string")
    .timeouts(EksClusterTimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .update("string")
        .build())
    .build());
eks_cluster_resource = castai.EksCluster("eksClusterResource",
    account_id="string",
    region="string",
    assume_role_arn="string",
    delete_nodes_on_disconnect=False,
    eks_cluster_id="string",
    name="string",
    timeouts={
        "create": "string",
        "delete": "string",
        "update": "string",
    })
const eksClusterResource = new castai.EksCluster("eksClusterResource", {
    accountId: "string",
    region: "string",
    assumeRoleArn: "string",
    deleteNodesOnDisconnect: false,
    eksClusterId: "string",
    name: "string",
    timeouts: {
        create: "string",
        "delete": "string",
        update: "string",
    },
});
type: castai:EksCluster
properties:
    accountId: string
    assumeRoleArn: string
    deleteNodesOnDisconnect: false
    eksClusterId: string
    name: string
    region: string
    timeouts:
        create: string
        delete: string
        update: string
EksCluster 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 EksCluster resource accepts the following input properties:
- AccountId string
- ID of AWS account
- Region string
- AWS region where the cluster is placed
- AssumeRole stringArn 
- AWS IAM role ARN that will be assumed by CAST AI user. This role should allow sts:AssumeRoleaction for CAST AI user that can be retrieved usingcastai.EksUserArndata source
- DeleteNodes boolOn Disconnect 
- Should CAST AI remove nodes managed by CAST AI on disconnect
- EksCluster stringId 
- The ID of this resource.
- Name string
- name of your EKS cluster
- Timeouts
EksCluster Timeouts 
- AccountId string
- ID of AWS account
- Region string
- AWS region where the cluster is placed
- AssumeRole stringArn 
- AWS IAM role ARN that will be assumed by CAST AI user. This role should allow sts:AssumeRoleaction for CAST AI user that can be retrieved usingcastai.EksUserArndata source
- DeleteNodes boolOn Disconnect 
- Should CAST AI remove nodes managed by CAST AI on disconnect
- EksCluster stringId 
- The ID of this resource.
- Name string
- name of your EKS cluster
- Timeouts
EksCluster Timeouts Args 
- accountId String
- ID of AWS account
- region String
- AWS region where the cluster is placed
- assumeRole StringArn 
- AWS IAM role ARN that will be assumed by CAST AI user. This role should allow sts:AssumeRoleaction for CAST AI user that can be retrieved usingcastai.EksUserArndata source
- deleteNodes BooleanOn Disconnect 
- Should CAST AI remove nodes managed by CAST AI on disconnect
- eksCluster StringId 
- The ID of this resource.
- name String
- name of your EKS cluster
- timeouts
EksCluster Timeouts 
- accountId string
- ID of AWS account
- region string
- AWS region where the cluster is placed
- assumeRole stringArn 
- AWS IAM role ARN that will be assumed by CAST AI user. This role should allow sts:AssumeRoleaction for CAST AI user that can be retrieved usingcastai.EksUserArndata source
- deleteNodes booleanOn Disconnect 
- Should CAST AI remove nodes managed by CAST AI on disconnect
- eksCluster stringId 
- The ID of this resource.
- name string
- name of your EKS cluster
- timeouts
EksCluster Timeouts 
- account_id str
- ID of AWS account
- region str
- AWS region where the cluster is placed
- assume_role_ strarn 
- AWS IAM role ARN that will be assumed by CAST AI user. This role should allow sts:AssumeRoleaction for CAST AI user that can be retrieved usingcastai.EksUserArndata source
- delete_nodes_ boolon_ disconnect 
- Should CAST AI remove nodes managed by CAST AI on disconnect
- eks_cluster_ strid 
- The ID of this resource.
- name str
- name of your EKS cluster
- timeouts
EksCluster Timeouts Args 
- accountId String
- ID of AWS account
- region String
- AWS region where the cluster is placed
- assumeRole StringArn 
- AWS IAM role ARN that will be assumed by CAST AI user. This role should allow sts:AssumeRoleaction for CAST AI user that can be retrieved usingcastai.EksUserArndata source
- deleteNodes BooleanOn Disconnect 
- Should CAST AI remove nodes managed by CAST AI on disconnect
- eksCluster StringId 
- The ID of this resource.
- name String
- name of your EKS cluster
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the EksCluster resource produces the following output properties:
- ClusterToken string
- computed value to store cluster token
- CredentialsId string
- CAST AI internal credentials ID
- Id string
- The provider-assigned unique ID for this managed resource.
- ClusterToken string
- computed value to store cluster token
- CredentialsId string
- CAST AI internal credentials ID
- Id string
- The provider-assigned unique ID for this managed resource.
- clusterToken String
- computed value to store cluster token
- credentialsId String
- CAST AI internal credentials ID
- id String
- The provider-assigned unique ID for this managed resource.
- clusterToken string
- computed value to store cluster token
- credentialsId string
- CAST AI internal credentials ID
- id string
- The provider-assigned unique ID for this managed resource.
- cluster_token str
- computed value to store cluster token
- credentials_id str
- CAST AI internal credentials ID
- id str
- The provider-assigned unique ID for this managed resource.
- clusterToken String
- computed value to store cluster token
- credentialsId String
- CAST AI internal credentials ID
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing EksCluster Resource
Get an existing EksCluster 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?: EksClusterState, opts?: CustomResourceOptions): EksCluster@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[str] = None,
        assume_role_arn: Optional[str] = None,
        cluster_token: Optional[str] = None,
        credentials_id: Optional[str] = None,
        delete_nodes_on_disconnect: Optional[bool] = None,
        eks_cluster_id: Optional[str] = None,
        name: Optional[str] = None,
        region: Optional[str] = None,
        timeouts: Optional[EksClusterTimeoutsArgs] = None) -> EksClusterfunc GetEksCluster(ctx *Context, name string, id IDInput, state *EksClusterState, opts ...ResourceOption) (*EksCluster, error)public static EksCluster Get(string name, Input<string> id, EksClusterState? state, CustomResourceOptions? opts = null)public static EksCluster get(String name, Output<String> id, EksClusterState state, CustomResourceOptions options)resources:  _:    type: castai:EksCluster    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.
- AccountId string
- ID of AWS account
- AssumeRole stringArn 
- AWS IAM role ARN that will be assumed by CAST AI user. This role should allow sts:AssumeRoleaction for CAST AI user that can be retrieved usingcastai.EksUserArndata source
- ClusterToken string
- computed value to store cluster token
- CredentialsId string
- CAST AI internal credentials ID
- DeleteNodes boolOn Disconnect 
- Should CAST AI remove nodes managed by CAST AI on disconnect
- EksCluster stringId 
- The ID of this resource.
- Name string
- name of your EKS cluster
- Region string
- AWS region where the cluster is placed
- Timeouts
EksCluster Timeouts 
- AccountId string
- ID of AWS account
- AssumeRole stringArn 
- AWS IAM role ARN that will be assumed by CAST AI user. This role should allow sts:AssumeRoleaction for CAST AI user that can be retrieved usingcastai.EksUserArndata source
- ClusterToken string
- computed value to store cluster token
- CredentialsId string
- CAST AI internal credentials ID
- DeleteNodes boolOn Disconnect 
- Should CAST AI remove nodes managed by CAST AI on disconnect
- EksCluster stringId 
- The ID of this resource.
- Name string
- name of your EKS cluster
- Region string
- AWS region where the cluster is placed
- Timeouts
EksCluster Timeouts Args 
- accountId String
- ID of AWS account
- assumeRole StringArn 
- AWS IAM role ARN that will be assumed by CAST AI user. This role should allow sts:AssumeRoleaction for CAST AI user that can be retrieved usingcastai.EksUserArndata source
- clusterToken String
- computed value to store cluster token
- credentialsId String
- CAST AI internal credentials ID
- deleteNodes BooleanOn Disconnect 
- Should CAST AI remove nodes managed by CAST AI on disconnect
- eksCluster StringId 
- The ID of this resource.
- name String
- name of your EKS cluster
- region String
- AWS region where the cluster is placed
- timeouts
EksCluster Timeouts 
- accountId string
- ID of AWS account
- assumeRole stringArn 
- AWS IAM role ARN that will be assumed by CAST AI user. This role should allow sts:AssumeRoleaction for CAST AI user that can be retrieved usingcastai.EksUserArndata source
- clusterToken string
- computed value to store cluster token
- credentialsId string
- CAST AI internal credentials ID
- deleteNodes booleanOn Disconnect 
- Should CAST AI remove nodes managed by CAST AI on disconnect
- eksCluster stringId 
- The ID of this resource.
- name string
- name of your EKS cluster
- region string
- AWS region where the cluster is placed
- timeouts
EksCluster Timeouts 
- account_id str
- ID of AWS account
- assume_role_ strarn 
- AWS IAM role ARN that will be assumed by CAST AI user. This role should allow sts:AssumeRoleaction for CAST AI user that can be retrieved usingcastai.EksUserArndata source
- cluster_token str
- computed value to store cluster token
- credentials_id str
- CAST AI internal credentials ID
- delete_nodes_ boolon_ disconnect 
- Should CAST AI remove nodes managed by CAST AI on disconnect
- eks_cluster_ strid 
- The ID of this resource.
- name str
- name of your EKS cluster
- region str
- AWS region where the cluster is placed
- timeouts
EksCluster Timeouts Args 
- accountId String
- ID of AWS account
- assumeRole StringArn 
- AWS IAM role ARN that will be assumed by CAST AI user. This role should allow sts:AssumeRoleaction for CAST AI user that can be retrieved usingcastai.EksUserArndata source
- clusterToken String
- computed value to store cluster token
- credentialsId String
- CAST AI internal credentials ID
- deleteNodes BooleanOn Disconnect 
- Should CAST AI remove nodes managed by CAST AI on disconnect
- eksCluster StringId 
- The ID of this resource.
- name String
- name of your EKS cluster
- region String
- AWS region where the cluster is placed
- timeouts Property Map
Supporting Types
EksClusterTimeouts, EksClusterTimeoutsArgs      
Package Details
- Repository
- castai castai/terraform-provider-castai
- License
- Notes
- This Pulumi package is based on the castaiTerraform Provider.