Skip to main content

Configure cloud credentials

Your self-hosted Primary Site needs cloud credentials to import data from Edge Sites. Choose your cloud provider below for configuration steps.

Authenticate using IAM Roles associated with service accounts or access key and secret credentials.

Option 1: Service accounts

  1. Create your IAM Roles with access to your primary site buckets

  2. Set up the EKS OIDC provider for role assumption

  3. Edit the Helm chart values.yaml file to enable service accounts and include the the IAM role's Amazon Resource Name (ARN) annotation for each of the deployments in the site.

    For example:

    inboxListener:
    deployment:
    serviceAccount:
    enabled: true
    annotations:
    eks.amazonaws.com/role-arn: arn:aws:iam::xxxxxxxxxxxx:role/foxglove-inbox-listener-sa-role

    Repeat for any of the following sections that are relevant to your site: inboxListener, indexer, queryService, garbageCollector.

Option 2: Access key

Create a cloud-credentials Secret in the foxglove namespace:

apiVersion: v1
kind: Secret
metadata:
name: cloud-credentials
type: Opaque
stringData:
AWS_ACCESS_KEY_ID: AKIAIOSFODNN7EXAMPLE
AWS_SECRET_ACCESS_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
AWS_DEFAULT_REGION: us-west-2

Apply the secret:

kubectl apply -f ./cloud-credentials-secret.yaml -n foxglove
tip

To rotate keys, reapply this file with new values.