Guide to Creating Resources on EKS Using AWS CDK Manifest
Introduction In the previous article, I guided you through using AWS EKS including 2 steps: using AWS CDK to create the cluster and permissions, then using yml files to apply and create k8s resources. This method is useful in case you are familiar with K8s and have many K8s resources that need to be managed in a separate project. If you want to only use AWS CDK, it still supports creating K8s Manifests directly within the project, so that after creating the cluster, K8s resources can be created immediately, helping the deployment process take place seamlessly and limiting mutual dependencies. Detail Create file lib/eks-manifest-stack.ts: import { KubectlV34Layer } from "@aws-cdk/lambda-layer-kubectl-v34" import * as cdk from "aws-cdk-lib" import * as ec2 from "aws-cdk-lib/aws-ec2" import * as eks from "aws-cdk-lib/aws-eks" import * as iam from "aws-cdk-lib/aws-iam" import { Construct } from "constructs...