<code><span><br>When deploying on EKS, I get the following error (see bold line below)<br><br>Here is the related pipeline script<br><br></span>script:
- pipe: atlassian/aws-eks-kubectl-run:2.2.0
variables:
AWS_ACCESS_KEY_ID: ${REHEARSAL_AWS_KEY}
AWS_SECRET_ACCESS_KEY: ${REHEARSAL_AWS_SECRET}
AWS_DEFAULT_REGION: "eu-west-3"
CLUSTER_NAME: "XXXXXXXXXXX"
KUBECTL_COMMAND: "apply --force=true -f"
RESOURCE_PATH: "k8s/${BITBUCKET_REPO_SLUG}-staging.yaml"
DEBUG: "true"
<span><br>Status: Downloaded newer image for bitbucketpipelines/aws-eks-kubectl-run:2.2.0</span><span>DEBUG: Starting new HTTPS connection (1): <a href="http://bitbucket.org:443/" rel="noopener noreferrer" target="_blank">bitbucket.org:443</a></span>
<span>DEBUG: <a href="https://bitbucket.org/" rel="noopener noreferrer" target="_blank">https://bitbucket.org:443</a> "GET /bitbucketpipelines/official-pipes/raw/master/pipes.prod.json HTTP/1.1" 200 None</span>
<span>INFO: Configuring kubeconfig...</span>
<span>Added new context arn:aws:eks:eu-west-3:xxxxxxxxxxxx to /root/.kube/config</span>
<span>Entries:</span>
<span>context:</span>
<span>cluster: arn:aws:eks:eu-west-3:xxxxxxxxxxxxxx</span>
<span>user: arn:aws:eks:eu-west-3:xxxxxxxxxxxxxxx</span>
<span>name: arn:aws:eks:eu-west-3:xxxxxxxxxxxxxx</span>
<span>name: arn:aws:eks:eu-west-3:xxxxxxxxxxxxxxx</span>
<span>user:</span>
<span>exec:</span>
<span>apiVersion: <a href="http://client.authentication.k8s.io/v1alpha1" rel="noopener nofollow noreferrer" target="_blank">client.authentication.k8s.io/v1alpha1</a></span>
<span>args:</span>
<span>- --region</span>
<span>- eu-west-3</span>
<span>- eks</span>
<span>- get-token</span>
<span>- --cluster-name</span>
<span>- xxxxxxxxxxxxxx</span>
<span>command: aws</span>
<span>cluster:</span>
<span>certificate-authority-data: xxxxxxxxxxxxxxx==</span>
<span>server: <a href="https://66ecfcbf3c95c505ca7123c87ab480df.gr7.eu-west-3.eks.amazonaws.com/" rel="noopener nofollow noreferrer" target="_blank">https://xxxxxxxxxxxxxxxxxxx.eu-west-3.eks.amazonaws.com</a></span>
<span>name: arn:aws:eks:eu-west-3:xxxxxxxxxxxxxxxxx</span>
<span>INFO: Successfully updated the kube config.</span>
error: the path "--v=2" does not exist
<span>✖ kubectl apply --force=true -f failed.</span>