stocky-petabyte-29883
04/12/2022, 2:52 PMexport AWS_PROFILE=XXXX
to set our profile.
When we run pulumi up we are getting an error.
Error: It looks like you're using AWS profiles. Please specify this profile in providerCredentialOpts
I think this issue only happens when using crossrails EKS and not aws-classic(could be wrong here). I know there is a profile key in providerCredentialOpts I can add, but we can't ensure everyone who uses pulumi uses the same naming for their aws profiles.
Am I missing something here?billowy-army-68599
{
"apiVersion": "v1",
"clusters": [
{
"cluster": {
"certificate-authority-data": "<redacted>",
"server": "<redacted>"
},
"name": "kubernetes"
}
],
"contexts": [
{
"context": {
"cluster": "kubernetes",
"user": "aws"
},
"name": "aws"
}
],
"current-context": "aws",
"kind": "Config",
"users": [
{
"name": "aws",
"user": {
"exec": {
"apiVersion": "<http://client.authentication.k8s.io/v1alpha1|client.authentication.k8s.io/v1alpha1>",
"args": [
"eks",
"get-token",
"--cluster-name",
"lbriggs-eks-example-eksCluster-a60dd34"
],
"command": "aws",
"env": [
{
"name": "AWS_PROFILE",
"value": "pulumi-dev-sandbox"
}
]
}
}
}
]
}
AWS_PROFILE