# @codiac.io/codiac-aws-eks

> codiac package to create and build EKS cluster

Latest version **1.1.6** (published 2026-03-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install @codiac.io/codiac-aws-eks
pnpm add @codiac.io/codiac-aws-eks
yarn add @codiac.io/codiac-aws-eks
bun add @codiac.io/codiac-aws-eks
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.1.6 |
| Published | 2026-03-18 |
| First published | 2022-09-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 19 |
| Unpacked size | 496.3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | MR |
| Maintainers | codiac.buildmeister |
| Keywords | aws, echo |

## Links

- npm: https://www.npmjs.com/package/@codiac.io/codiac-aws-eks
- npm.io page: https://npm.io/package/@codiac.io/codiac-aws-eks

## Dependencies (19)

- [ip](https://npm.io/package/ip.md) ^1.1.8
- [yaml](https://npm.io/package/yaml.md) ^2.1.1
- [tslog](https://npm.io/package/tslog.md) ^3.3.3
- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [moment](https://npm.io/package/moment.md) ^2.29.4
- [env-var](https://npm.io/package/env-var.md) ^7.5.0
- [@aws-sdk/client-s3](https://npm.io/package/@aws-sdk/client-s3.md) 3.782.0
- [@aws-sdk/client-ec2](https://npm.io/package/@aws-sdk/client-ec2.md) 3.782.0
- [@aws-sdk/client-eks](https://npm.io/package/@aws-sdk/client-eks.md) 3.782.0
- [@aws-sdk/client-iam](https://npm.io/package/@aws-sdk/client-iam.md) 3.782.0
- [@aws-sdk/client-sns](https://npm.io/package/@aws-sdk/client-sns.md) 3.782.0
- [@aws-sdk/client-ssm](https://npm.io/package/@aws-sdk/client-ssm.md) ^3.782.0
- [@aws-sdk/client-sts](https://npm.io/package/@aws-sdk/client-sts.md) 3.782.0
- [@aws-sdk/signature-v4](https://npm.io/package/@aws-sdk/signature-v4.md) ^3.370.0
- [@aws-sdk/client-account](https://npm.io/package/@aws-sdk/client-account.md) ^3.782.0
- [@kubernetes/client-node](https://npm.io/package/@kubernetes/client-node.md) ^1.4.0
- [@aws-sdk/client-lightsail](https://npm.io/package/@aws-sdk/client-lightsail.md) ^3.782.0
- [@aws-sdk/client-auto-scaling](https://npm.io/package/@aws-sdk/client-auto-scaling.md) 3.782.0
- [@aws-sdk/client-elastic-load-balancing-v2](https://npm.io/package/@aws-sdk/client-elastic-load-balancing-v2.md) ^3.782.0

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.1.6 (latest) — 2026-03-18
- 1.0.1-mlr-journaling.41 (next) — 2022-09-17
- 1.1.0 — 2025-05-22
- 1.0.31 — 2025-04-21
- 1.0.30 — 2025-04-17
- 1.0.29 — 2025-04-10
- 1.0.28 — 2025-03-18
- 1.0.27 — 2024-12-09
- 1.0.26 — 2024-09-27
- 1.0.25 — 2024-09-27
- 1.0.24 — 2024-08-29
- 1.0.23 — 2024-08-07
- 1.0.22 — 2024-08-02
- 1.0.21 — 2024-07-31
- 1.0.20 — 2024-04-18
- … 18 more at https://npm.io/package/@codiac.io/codiac-aws-eks/versions

## README

aws eks


# Test to create cluster locally 

### remember to uncomment out line 173 and 174 in authconfigindex.ts

#### rename env.test.sample to .env.test and fill in the blanks

```
npm run test:single -- ./src/index.spec.ts -g 'create cluster test'  --timeout 1000

npm run test:single -- ./src/index.spec.ts -g 'delete cluster test'  --timeout 1000


```

### setup kubeconfig to point to aws cluster

```
aws eks update-kubeconfig --region us-east-1 --alias cluster-eks-sdk --name cluster-eks-sdk
kubectl create namespace testns
kubectl config set-context --current --namespace=testns
kubectl config view
kubectl config get-contexts
kubectl get pods -o wide 
```


### commands

```
kubectl get nodes -o jsonpath='{.items[*].status.addresses[?(@.type=="ExternalIP")].address}'


kubectl exec -ti multitool-5c66dfbfd8-6msx9 -- bash -c "cat /etc/resolv.conf" 
kubectl get svc -n kube-system

```

### create test pod in cluster

```

kubectl create deployment multitool --image=praqma/network-multitool -n testns
kubectl create service clusterip multitool --tcp=80:80 -n testns

```

### install kubect shell

[kubectl-node-shell](https://github.com/kvaps/kubectl-node-shell)
```
curl -LO https://github.com/kvaps/kubectl-node-shell/raw/master/kubectl-node_shell
chmod +x ./kubectl-node_shell
sudo mv ./kubectl-node_shell /usr/local/bin/kubectl-node_shell



kubectl get node
kubectl node-shell  ip-10-50-61-76.ec2.internal
kubectl node-shell ip-10-50-61-76.ec2.internal -- ls -al /etc/codiac
kubectl node-shell ip-10-50-61-76.ec2.internal -- cat /etc/codiac/kubelet-extra.json
kubectl node-shell ip-10-50-61-76.ec2.internal -- cat  /etc/codiac/kubelet.env


# Get standard bash shell
kubectl node-shell <node>

# Use X-mode (mount /host, and do not enter host namespace)
kubectl node-shell -x <node>

# Execute custom command
kubectl node-shell <node> -- echo 123

# Use stdin
cat /etc/passwd | kubectl node-shell <node> -- sh -c 'cat > /tmp/passwd'

# Run oneliner script
kubectl node-shell <node> -- sh -c 'cat /tmp/passwd; rm -f /tmp/passwd'

```


```
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=dfd2b9ec748a07c254358a3a53bb2529429d0d3049e22dbafa0d2922b8e5

--dfd2b9ec748a07c254358a3a53bb2529429d0d3049e22dbafa0d2922b8e5
Content-Type: application/node.eks.aws

apiVersion: node.eks.aws/v1alpha1
kind: NodeConfig
metadata: {}
spec:
  cluster:
    apiServerEndpoint: https://A53FCFC80C56F4606BB412833196A19E.gr7.us-east-1.eks.amazonaws.com
    certificateAuthority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UXhuZTk0OFliUlI5cHZSM0x5WUdLTE42L3N4TXkwam1RClByRVU0SXNsTkhSaC96bUFCbHNBWGdzSHpla2UwQys2cGRWbDVSMHBIeVdLazZPN3hKaUU1THdYSmhLZU5sTVAKTG1wOUhKU1RnLzhFMWF1Nlk0ZDBMUjZIaGlOSVQ3MlFubkNBS2xvWlVMTWYzekNDZzY1SlNUYWJjT21vRXVPagplbldKRWFiMjdXRzdjRmZxdGVnYVJRaFVCalRjZlVtMGVnOWVhZU1QVFhwcXF0dHhod1h0VUJDTDk1d3o4eXlyCjlKc3RKaW1lL0FSbUJwV1NReHc2MWptcFlENXgzZGkySnVPTkdEcVVHc01PSFhEa2N2MWdUN25UNzNyWkorYUwKMGw3cC9NOEVxWGE4Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
    cidr: 10.100.0.0/16
    name: cluster-test-eksctl-1
  containerd: {}
  instance:
    localStorage: {}
    network: {}
  kubelet:
    config:
      clusterDNS:
      - 10.100.0.10
    flags:
    - --node-labels=alpha.eksctl.io/nodegroup-name=ng-1,alpha.eksctl.io/cluster-name=cluster-test-eksctl-1

--dfd2b9ec748a07c254358a3a53bb2529429d0d3049e22dbafa0d2922b8e5--

```
token hop limit


codiac-us-east-2-prod-freemium-east-2-ng-1-NIR-9cc47b012e62


aws iam remove-role-from-instance-profile --role-name codiac-us-east-2-prod-freemium-aws-est1-ng-1-NIR-e344e9b51330  --instance-profile-name codiac-prod-freemium-aws-est1-nodegroup-ng-1-NodeInstanceProfile-7513ddb0274a

---
_Source: https://npm.io/package/@codiac.io/codiac-aws-eks · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
