doc: Update Managed Grafana instructions (#51)

* Update README.md

* Update README.md

* Add Grafana workspace id as output

* Fix instructions
This commit is contained in:
Rodrigue Koffi
2022-10-10 16:26:28 +02:00
committed by GitHub
parent fcc5b90ac1
commit 4fdb719f32
5 changed files with 20 additions and 1 deletions
+1
View File
@@ -26,6 +26,7 @@ locals {
# if grafana_workspace_id is supplied, we infer the endpoint from
# computed region, else we create a new workspace
amg_ws_endpoint = var.managed_grafana_workspace_id == "" ? "https://${module.managed_grafana[0].workspace_endpoint}" : "https://${data.aws_grafana_workspace.this[0].endpoint}"
amg_ws_id = var.managed_grafana_workspace_id == "" ? split(".", module.managed_grafana[0].workspace_endpoint)[0] : var.managed_grafana_workspace_id
context = {
aws_caller_identity_account_id = data.aws_caller_identity.current.account_id