Team I Building a cloudformation stack in which we are creating AWS-EKS cluster and post creation of EKS cluster by using "Custom::Helm" resource type we are deploying Fluentbit in the cluster.
AWSTemplateFormatVersion: "2010-09-09"
Parameters:
pEKSClusterName:
Description: Name of the EKS Cluster
Type: String
Default: EKSCluster
VPCID:
Description: VPC ID
Type: AWS::EC2::VPC::Id
AllowedPattern: ".+"
Resources:
fluentbitagent:
Type: "AWSQS::Kubernetes::Helm"
Properties:
TimeOut: 10
ClusterID: !Ref pEKSClusterName
Name: fluent-bit
Namespace: aws-cloudwatch
Repository: https://aws.github.io/eks-charts
Chart: eks/aws-for-fluent-bit
Values:
image.repository: !FindInMap [RegionMap, !Ref "AWS::Region", cwrepo]
ValueYaml:
!Sub
- |
clusterName: ${ClusterName}
serviceAccount:
create: false
name: aws-logs
region: ${AWS::Region}
vpcId: ${VPCID}
- ClusterName: !Ref pEKSClusterName
VPCID: !Ref VPCID
Mappings:
RegionMap:
us-east-1:
cwrepo: public.ecr.aws/aws-observability/aws-for-fluent-bit
I wanted to pass custom value to helm values for Fluentbit, for example i wanted to pass FluentBitHttpPort='2020', TIA:-)