https://pulumi.com logo
#general
Title
# general
n

narrow-cpu-35517

12/31/2022, 11:06 AM
Hi can anyone help me here with using pulumi helm release for aws ack controllers? how can I specify region for that?
Copy code
new k8s.helm.v3.Release("rds-chart", {
      version: "v0.1.2",
      namespace: rdsServicesNamespace.metadata["name"],
      chart: "<oci://public.ecr.aws/aws-controllers-k8s/rds-chart>",      
      values: {
        region: "us-east-1", // use region from config
        serviceAccount: {
          name: serviceAccountName,
          create: false,
        },
        vpcId: vpcId,
        clusterName: clusterName,
        podLabels: {
          stack: stackName,
          app: "ack-rds-controller",
        },
      },
    },
    {
      provider,
      parent: provider,
    })
In my above release config, I have specified region but the pod fails to start with error saying, region not specified
m

many-telephone-49025

12/31/2022, 12:04 PM
Hey @narrow-cpu-35517, I think the value for the region is:
Copy code
aws:
 region: <REGION>
Means you need to add it like this in Pulumi:
Copy code
values: {
  aws: {
    region: "us-east-1"  
  }
}
n

narrow-cpu-35517

01/02/2023, 11:58 PM
Thanks a lot Engin, I will try it out
2 Views