Skip to content

EKS

CloudMock emulates Amazon EKS, supporting cluster management, node groups, Fargate profiles, add-ons, and tagging.

OperationStatusNotes
CreateClusterSupportedCreates an EKS cluster
DescribeClusterSupportedReturns cluster details
ListClustersSupportedLists all clusters
DeleteClusterSupportedDeletes a cluster
UpdateClusterConfigSupportedUpdates cluster configuration
CreateNodegroupSupportedCreates a managed node group
DescribeNodegroupSupportedReturns node group details
ListNodegroupsSupportedLists node groups for a cluster
DeleteNodegroupSupportedDeletes a node group
UpdateNodegroupConfigSupportedUpdates node group configuration
CreateFargateProfileSupportedCreates a Fargate profile
DescribeFargateProfileSupportedReturns Fargate profile details
ListFargateProfilesSupportedLists Fargate profiles
DeleteFargateProfileSupportedDeletes a Fargate profile
CreateAddonSupportedCreates an add-on
DescribeAddonSupportedReturns add-on details
ListAddonsSupportedLists add-ons for a cluster
DeleteAddonSupportedDeletes an add-on
TagResourceSupportedAdds tags to a resource
UntagResourceSupportedRemoves tags from a resource
ListTagsForResourceSupportedLists tags for a resource
import { EKSClient, CreateClusterCommand } from '@aws-sdk/client-eks';
const client = new EKSClient({
endpoint: 'http://localhost:4566',
region: 'us-east-1',
credentials: { accessKeyId: 'test', secretAccessKey: 'test' },
});
await client.send(new CreateClusterCommand({
name: 'my-cluster',
roleArn: 'arn:aws:iam::000000000000:role/eks-role',
resourcesVpcConfig: { subnetIds: ['subnet-12345'], securityGroupIds: ['sg-12345'] },
}));
import boto3
client = boto3.client('eks',
endpoint_url='http://localhost:4566',
region_name='us-east-1',
aws_access_key_id='test',
aws_secret_access_key='test')
client.create_cluster(
name='my-cluster',
roleArn='arn:aws:iam::000000000000:role/eks-role',
resourcesVpcConfig={'subnetIds': ['subnet-12345'], 'securityGroupIds': ['sg-12345']})
cloudmock.yml
services:
eks:
enabled: true
  • No actual Kubernetes control plane is provisioned
  • Node groups do not launch real EC2 instances
  • Cluster endpoint and certificate authority data are stubs
  • Add-ons are stored but not installed