1. Deploy the airbyte-workload-api-server helm chart on AWS EKS


    To deploy the airbyte-workload-api-server Helm chart on AWS EKS using Pulumi, you'll need to follow these steps:

    1. Set up an EKS Cluster: An Amazon Elastic Kubernetes Service (EKS) cluster will serve as the foundation where all your Kubernetes services and workloads will run. You'll define the cluster and its properties with Pulumi using the eks.Cluster resource.

    2. Define an EKS Role: You'll set up an IAM role that grants the EKS service the permissions necessary to create and manage the resources it needs to operate with the aws-iam.EKSRole resource.

    3. Deploy the Helm chart: Finally, you'll deploy the airbyte-workload-api-server Helm chart onto the EKS cluster using the Pulumi kubernetes.helm.sh/v3.Chart resource, specifying the chart details and any configuration options as needed.

    Below is a program written in TypeScript that you can use with Pulumi to set up the EKS cluster and deploy the airbyte-workload-api-server Helm chart to it:

    import * as pulumi from "@pulumi/pulumi"; import * as aws from "@pulumi/aws"; import * as eks from "@pulumi/eks"; import * as k8s from "@pulumi/kubernetes"; import * as awsIam from "@pulumi/aws-iam"; // Create an EKS cluster. const cluster = new eks.Cluster("airbyte-workload-cluster", { // Specify the desired settings for the cluster here. // For a full list of available options, check the eks.Cluster documentation: // https://www.pulumi.com/registry/packages/eks/api-docs/cluster/ }); // Create an EKS Role using the aws-iam package. const eksRole = new awsIam.EKSRole("airbyte-workload-eksRole", { // Define the IAM role configuration and permissions here. // Review the documentation for aws-iam.EKSRole to understand the available options: // https://www.pulumi.com/registry/packages/aws-iam/api-docs/eksrole/ }); // Deploy the airbyte-workload-api-server Helm chart onto the EKS cluster. const airbyteChart = new k8s.helm.sh.v3.Chart("airbyte-workload-helm", { chart: "airbyte", // The name of the Helm chart. Ensure this is the correct name. version: "0.29.17-alpha", // The version of the Helm chart, replace with the version you intend to deploy. // Specify the `values` or `set` if the chart requires any custom configuration. // For example: // values: { // service: { // type: "ClusterIP" // }, // }, fetchOpts: { repo: "https://charts.airbyte.io", // Replace with the repository where the Helm chart is hosted. }, }, { provider: cluster.provider }); // Export the cluster's kubeconfig. export const kubeconfig = cluster.kubeconfig; // After deploying this Pulumi program with `pulumi up`, the EKS cluster // will be created along with the specified Helm chart deployment. You can use the // exported `kubeconfig` to interact with your cluster using `kubectl`.

    Make sure you fill in any blanks and customize the settings to match your specific requirements. Review the linked Pulumi documentation for each resource type to understand all the configuration options available.

    To deploy this Pulumi program:

    1. Ensure you have Pulumi and the AWS CLI installed and configured.
    2. Make sure your AWS CLI credentials have permissions to create EKS clusters and manage IAM roles.
    3. Create a new directory for your Pulumi project and initialize it with pulumi new typescript.
    4. Replace the content of index.ts with the TypeScript code provided above.
    5. Install the required Pulumi packages by running npm install @pulumi/pulumi @pulumi/aws @pulumi/eks @pulumi/kubernetes @pulumi/aws-iam.
    6. Run pulumi up to begin the deployment. Pulumi will compute the required steps and present you with a preview.

    After reviewing the preview, confirm the deployment, and Pulumi will proceed to create the resources and deploy the Helm chart to your EKS cluster.