early-musician-41645
01/15/2020, 12:54 AMus-west-2
, the same region as the helm repo. However, when I try to run the stack when AWS_REGION=ap-northeast-1 I get an error while fetching the helm chart:
fetch from s3: fetch object from s3: BucketRegionError: incorrect region, the bucket is not in 'ap-northeast-1' region at endpoint ''
On the commandline I can prefix my helm fetch command like this:
AWS_REGION=us-west-2 helm fetch...
The pulumi code looks like this:
export const splunkForwarder = new k8s.helm.v2.Chart("splunk-forwarder", {
repo: "my-repo",
version: "0.2.343",
chart: "splunk-forwarder",
namespace: namespaceName,
values: forwarderValues,
}, { dependsOn: [loggingNamespace, cluster], providers: { kubernetes: cluster.provider } });
How can I tell it to use the us-west-2
region for the helm fetch and to use the configured ap-northeast-1
for all other resources?white-balloon-205
Chart
API. Could you open an issue? Should be possible to add an env arg to Chart.
Does the chart have no way to configure the region other than this environment variable (that is kind of unfortunate if so).early-musician-41645
01/15/2020, 5:01 PMpulumi
.white-balloon-205
gorgeous-egg-16927
01/15/2020, 5:25 PMwhite-balloon-205
helm template
?gorgeous-egg-16927
01/15/2020, 5:57 PMhelm fetch
stepearly-musician-41645
01/15/2020, 6:01 PM