File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -101,10 +101,21 @@ for Service Accounts and (`CreateWorkspaceApiKey, DeleteWorkspaceApiKey`) for Gr
101
101
102
102
```console
103
103
# skip this command if you already have a service token
104
- GRAFANA_SA_ID=$(aws grafana create-workspace-service-account --workspace-id $TF_VAR_managed_grafana_workspace_id --grafana-role ADMIN --name terraform-accelerator-eks --query 'id' --output text)
104
+ GRAFANA_SA_ID=$(aws grafana create-workspace-service-account \
105
+ --workspace-id $TF_VAR_managed_grafana_workspace_id \
106
+ --grafana-role ADMIN \
107
+ --name terraform-accelerator-eks \
108
+ --query 'id' \
109
+ --output text)
105
110
106
111
# creates a new token for running Terraform
107
- export TF_VAR_grafana_api_key=`aws grafana create-workspace-service-account-token --workspace-id $TF_VAR_managed_grafana_workspace_id --name --key-name "observability-accelerator-$(date +%s)" --seconds-to-live 7200 --service-account-id $GRAFANA_SA_ID --query 'serviceAccountToken.key' --output text`
112
+ export TF_VAR_grafana_api_key=$(aws grafana create-workspace-service-account-token \
113
+ --workspace-id $TF_VAR_managed_grafana_workspace_id \
114
+ --name "observability-accelerator-$(date +%s)" \
115
+ --seconds-to-live 7200 \
116
+ --service-account-id $GRAFANA_SA_ID \
117
+ --query 'serviceAccountToken.key' \
118
+ --output text)
108
119
```
109
120
110
121
=== "v8.4 workspaces"
You can’t perform that action at this time.
0 commit comments