Skip to content
Snippets Groups Projects
Commit edf66705 authored by Edouard DE BRYE's avatar Edouard DE BRYE
Browse files

refactor dashboard / adding links to resources

parent d8375a6b
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,9 @@ resource "aws_cloudwatch_dashboard" "main" { ...@@ -6,7 +6,9 @@ resource "aws_cloudwatch_dashboard" "main" {
dynamodb_table_name = aws_dynamodb_table.main.name dynamodb_table_name = aws_dynamodb_table.main.name
apigw_stage_name = aws_api_gateway_stage.main.stage_name apigw_stage_name = aws_api_gateway_stage.main.stage_name
apigw_name = aws_api_gateway_rest_api.main.name apigw_name = aws_api_gateway_rest_api.main.name
api_id = aws_api_gateway_rest_api.main.id
aws_region = var.aws_region aws_region = var.aws_region
}) })
} }
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"x": 0, "x": 0,
"type": "text", "type": "text",
"properties": { "properties": {
"markdown": "\n# API Gateway\n" "markdown": "\n# API Gateway\n - [${apigw_name}/${apigw_stage_name}](https://${aws_region}.console.aws.amazon.com/apigateway/home?region=${aws_region}#/apis/${api_id}/stages/${apigw_stage_name})\n"
} }
}, },
{ {
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"x": 0, "x": 0,
"type": "text", "type": "text",
"properties": { "properties": {
"markdown": "\n# Lambdas\n" "markdown": "\n# Lambdas \n%{for l in lambda_names} - [${l}](https://${aws_region}.console.aws.amazon.com/lambda/home?region=${aws_region}#/functions/${l}?tab=monitoring)\n%{endfor}\n"
} }
}, },
{ {
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
"x": 0, "x": 0,
"type": "text", "type": "text",
"properties": { "properties": {
"markdown": "\n# DynamoDB\n" "markdown": "\n# DynamoDB\n - [${dynamodb_table_name}](https://${aws_region}.console.aws.amazon.com/dynamodb/home?region=${aws_region}#tables:selected=${dynamodb_table_name};tab=overview)\n"
} }
}, },
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment