Hi, I have a question I want to provide a K8s prov...
# general
t
Hi, I have a question I want to provide a K8s provider that contains a roleArn. the secret & access key that are in the env vars only can assume roles. When I set them however I see this error
Copy code
error: could not validate provider configuration: 1 error occurred:
    	* : invalid or unknown key: role_arn
This is my configuration
Copy code
new k8s.Provider("myk8s", {
        kubeconfig: new terraform.state.RemoteStateReference("eks", {
            backendType: "s3",
            bucket: "XXXX-tfstate-backend-bucket",
            key: "XXXXXXX",
            workspace: "XXXXXXX",
            region: "us-east-1",
            roleArn: "arn:aws:iam::XXXXXXXXXXX:role/XXXX-XXXX-gitlab-terraform"
        }).getOutput("kubectl_config")});
Has anyone encountered this before?
b
try console.log() result of
.getOutput
, it seems that you pass
role_arn
to a k8s provider and it can't recognize it
(just guessing, never used TF reference)
t
It seems this object
Copy code
S3RemoteStateReferenceArgs
does not contain
Copy code
acl
as in the actual terraform documentation.
Copy code
terraform {
  backend "s3" {
    region         = "us-east-1"
    bucket         = "XXXXXXXXXXXXXXXX"
    key            = "XXXXXXXXXXXXXXX"
    dynamodb_table = "XXXXXXXXXXXXXXX"
    acl            = "bucket-owner-read"
    role_arn       = "XXXXXXXXXXXXX"
  }
}