docs/sources/administration/enterprise-licensing/activate-aws-marketplace-license/activate-license-on-eks/index.md
If you have purchased a Grafana Enterprise subscription through AWS Marketplace, you must activate it to use Grafana Enterprise data source plugins and features in Grafana.
To activate your license, complete the following tasks:
Deploy Grafana Enterprise on Amazon EKS.
For more information about deploying an application on Amazon EKS, refer to Getting started with Amazon EKS – AWS Management Console and AWS CLI.
For more information about installing Grafana on Kubernetes using the Helm Chart, refer to the Grafana Helm Chart.
Use kubectl set image deployment/my-release grafana=grafana/grafana-enterprise:<version> to update the container image.
For example, enter grafana/grafana-enterprise:11.3.0.
Only Grafana Enterprise versions 8.3.0 and later support licenses granted through AWS Marketplace.
Grafana requires that you configure a database to hold dashboards, users, and other persistent data.
To configure Grafana for high availability, choose one of the following options:
Option 1: Use kubectl edit configmap grafana to edit grafana.ini add the following section to the configuration:
[database]
type = [database type]
host = [database address and port]
name = [database name]
user = [database username]
password = [database password]
Option 2: use kubectl edit deployment my-release to edit the pod env variables and add the following database variables:
- name: GF_DATABASE_TYPE
value: [database type]
- name: GF_DATABASE_HOST
value: [database address and port]
- name: GF_DATABASE_NAME
value: [database name]
- name: GF_DATABASE_USER
value: [database username]
- name: GF_DATABASE_PASSWORD
value: [database password]
For more information on Grafana High Availability setup, refer to Set up Grafana for high availability.
In this task, you configure Grafana Enterprise to validate the license with AWS instead of Grafana Labs.
In AWS IAM, assign the following permissions to the Node IAM role (if you are using a Node Group), or the Pod Execution role (if you are using a Fargate profile):
"license-manager:CheckoutLicense""license-manager:ListReceivedLicenses""license-manager:GetLicenseUsage""license-manager:CheckInLicense"For more information about creating an access policy, refer to Creating IAM policies (console).
For more information about AWS license permissions, refer to Actions, resources, and condition keys for AWS License Manager.
Choose one of the following options to update the license_validation_type configuration to aws:
Option 1: Use kubectl edit configmap grafana to edit grafana.ini add the following section to the configuration:
[enterprise]
license_validation_type=aws
Option 2: Use kubectl edit deployment my-release to edit the pod env variables and add the following variable:
name: GF_ENTERPRISE_LICENSE_VALIDATION_TYPE
value: aws
To activate Grafana Enterprise features, you must start (or restart) Grafana.
To restart Grafana on a Kubernetes cluster,
Run the command kubectl rollout restart deployment my-release.
After you update the service, navigate to your Grafana instance, sign in with Grafana Admin credentials, and navigate to Administration > General > Stats and license to validate that your license is active.
For more information about restarting Grafana, refer to Restart Grafana.
If you experience issues when you update the EKS cluster, refer to Amazon EKS troubleshooting.