Unable to create intentions through manifest

Below is the example snippet that I used. I am using consul version 1.8.16. Will be because of the version issue. I some articles i am reading below changes will be possible only from 1.9. Support `service-intentions` Configuration Entry Kind · Issue #235 · hashicorp/terraform-provider-consul · GitHub

apiVersion: consul.hashicorp.com/v1alpha1
kind: ServiceIntentions
metadata:
  name: example-https
spec:
  destination:
    name: example-https
  sources:
    - name: static-client
      action: allow

Getting the below exception

Status:
  Conditions:
    Last Transition Time:  2021-11-23T15:26:40Z
    Message:               Unexpected response code: 500 (rpc error making call: invalid config entry kind: service-intentions)
    Reason:                ConsulAgentError
    Status:                False
    Type:                  Synced

That looks to be the case from what I’m seeing, support for this was added in version 1.9. It is also mentioned here for reference.