AWS CloudWatch integration with Elastic using Elastic Agent

Hey @JypraGroup, the response looks truncated: can you double-check you copied and pasted the whole response?

As a reference, here's what I get on my test cluster:

{
  "elastic/fleet-server" : {
    "role_descriptor" : {
      "cluster" : [
        "monitor",
        "manage_own_api_key"
      ],
      "indices" : [
        {
          "names" : [
            "logs-*",
            "metrics-*",
            "traces-*",
            "synthetics-*",
            ".logs-endpoint.diagnostic.collection-*",
            ".logs-endpoint.action.responses-*"
          ],
          "privileges" : [
            "write",
            "create_index",
            "auto_configure"
          ],
          "allow_restricted_indices" : false
        },
        {
          "names" : [
            "traces-apm.sampled-*"
          ],
          "privileges" : [
            "read",
            "monitor",
            "maintenance"
          ],
          "allow_restricted_indices" : false
        },
        {
          "names" : [
            ".fleet-*"
          ],
          "privileges" : [
            "read",
            "write",
            "monitor",
            "create_index",
            "auto_configure",
            "maintenance"
          ],
          "allow_restricted_indices" : true
        }
      ],
      "applications" : [
        {
          "application" : "kibana-*",
          "privileges" : [
            "reserved_fleet-setup"
          ],
          "resources" : [
            "*"
          ]
        }
      ],
      "run_as" : [ ],
      "metadata" : { },
      "transient_metadata" : {
        "enabled" : true
      }
    }
  }
}

The most interesting section is the elastic/fleet-server.role_descriptor.indices list:

{
    "names": [
        "logs-*",
        "metrics-*",
        "traces-*",
        "synthetics-*",
        ".logs-endpoint.diagnostic.collection-*",
        ".logs-endpoint.action.responses-*"
    ],
    "privileges": [
        "write",
        "create_index",
        "auto_configure"
    ],
    "allow_restricted_indices": false
}