KOP Recipes - AWS Secrets Manager Create - Rafay Product Documentation

Create

In this part, you will


Step 1: Configure RCTL

This step is a one-time task. In this step, you will download the RCTL CLI so that you can interact with your Org programmatically and embed all operations in your existing automation platform.

./rctl config init <full path to config file>

Optionally, check if RCTL is properly configured and can interact with your Org. You should see an output similar to the example below.

./rctl get projects

NAME
defaultproject

Step 2: Provision EKS cluster

This step assumes the following:

In the example below, you will provision an Amazon EKS cluster in the "default project" with "one managed nodegroup" using the cluster specification provided below.

Type Description
Cluster Name aws-sm-demo
Project default
Blueprint default
k8s Version 1.20
AWS Region us-west-1
Worker Nodes 2
Node Group Type Managed
kind: Cluster
metadata:
  name: aws-sm-demo
  project: defaultproject
spec:
  type: eks
  cloudprovider: demo-aws-full-role
  blueprint: default
---
apiVersion: rafay.io/v1alpha5
kind: ClusterConfig
metadata:
  name: aws-sm-demo
  region: us-west-1
  version: "1.20"

managedNodeGroups:
  - name: managed-ng1
    instanceType: t3.large
    desiredCapacity: 2
./rctl apply -f "aws-sm-demo.yaml"

This will start the provisioning of an EKS cluster in the project. This step can take ~10-15 minutes to complete. Once provisioning is successful, you should be able to interact with your EKS cluster in your Project.


Step 3: Cluster Blueprint

In this step, you will:


Add Secrets Store CSI Driver Repo

Configure the repo endpoint so that the controller can automatically retrieve the required Helm chart directly from the Internet facing repository.


Create Namespace


Create Secrets Store CSI Driver Addon


Custom Values

The Secrets Store CSI Driver supports many functions such as support for secret rotation and K8s secret sync that can be enabled in an overrides file. To enable secret sync the following parameter should be set in the override file and uploaded to the addon. Save the following override in a "secrets-store-csi-driver-values.yaml" file.

syncSecret:
  enabled: true

New Secrets Store CSI Driver Addon Version


Create ASCP Addon

wget https://raw.githubusercontent.com/aws/secrets-store-csi-driver-provider-aws/main/deployment/aws-provider-installer.yaml

New ASCP Addon Version


New Blueprint


Step 4: Apply Blueprint

Now, we are ready to apply the newly created, custom blueprint to our EKS cluster.

In a few minutes, all the k8s resources matching the custom cluster blueprint will become operational on the cluster.

Notice that the cluster's blueprint name and version match what you created in the prior step.


Step 5: Verify Setup

Optionally, to verify if the Secrets Store CSI Driver and ASCP addon have been properly deployed you can do the following:


Next Steps

You are now ready to move on to the second part of the recipe.