Configure a CloudWatch data source using a profile name with provisioning

I’m trying to configure a CloudWatch data source via the provisioning yml file and I want it to use a named profile from the credentials file.
Does anyone know how to specify the profile name? I can’t find any examples with a profile name included.

datasources:
  - name: Name   
    type: cloudwatch
    jsonData:
      authType: credentials
      defaultRegion: eu-west-1

Hi @rickb,

It’s undocumented, but you can set this by setting the database key on the data source, like so:

datasources:
  - name: Name   
    type: cloudwatch
    database: my_profile
    jsonData:
      authType: credentials
      defaultRegion: eu-west-1

If your data source has already been provisioned, it won’t be updated, you need to completely delete it from the database for this change to work.