aws-observability / amazon-managed-grafana-migrator

CLI migration utility to migrate Grafana content to Amazon Managed Grafana
Apache License 2.0
26 stars 7 forks source link

Tool is unable to identify service account that i created on Grafana server as well as AWS managed grafana. #30

Open parth741 opened 5 months ago

parth741 commented 5 months ago

As per the usage document of amazon-managed-grafana-migrator I am able to identify the AWS managed garafana via

amazon-managed-grafana-migrator discover --region us-west-2

I have also created service account with below command-

aws grafana create-workspace-service-account --workspace-id g-abcdef5678 \

--grafana-role ADMIN \
--name grafana_migration

As soon as i execute migrate command i get below error-

Skipping API key creation for https://*****.com/

Creating service account token for service account grafana_migration

error: ValidationException: Invalid Service Account id: grafanamigration { RespMetadata: { StatusCode: 400, RequestID: "df3d54ae-d0e8-4509-b137-42c2668e3583" }, Message: "Invalid Service Account id: grafana_migration" }

Migration command that am using is-

amazon-managed-grafana-migrator migrate --src-url https://********.com/ --src-api-key glsa_T**** --dst g-*****.grafana-workspace.us-west-2.amazonaws.com --dst-service-account-id grafana_migration

I have a question too, does this tool migrates the datasources configured passwords from source?

parth741 commented 5 months ago

@bonclay7 does migration tool migrates the configured password of data sources from grafana server to AWS managed grafana?

serkanh commented 4 months ago

@parth741 Which version are you migrating from, and to which version? If you're using version 8, you should first upgrade or migrate to Grafana version 9 instance. After successfully migrating to version 9, proceed with the upgrade to version 10. Please note that the commands differ slightly at each step.

parth741 commented 4 months ago

Hi Team,

I am migrating from onprem grafana v10 to aws managed grafana v10.

Regards Parth Tripathi

On Thu, 11 Jul, 2024, 10:34 pm serkan haytac, @.***> wrote:

@parth741 https://github.com/parth741 Which version are you migrating from, and to which version? If you're using version 8, you should first upgrade or migrate to Grafana version 9 instance. After successfully migrating to version 9, proceed with the upgrade to version 10. Please note that the commands differ slightly at each step.

— Reply to this email directly, view it on GitHub https://github.com/aws-observability/amazon-managed-grafana-migrator/issues/30#issuecomment-2223445031, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG37ZVZJPHBU4MK3JSCAXCDZL23IZAVCNFSM6AAAAABJPWNWESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRTGQ2DKMBTGE . You are receiving this because you were mentioned.Message ID: <aws-observability/amazon-managed-grafana-migrator/issues/30/2223445031@ github.com>