mirror of
https://github.com/Sea-Haven-Industries/apm-wo-analysis.git
synced 2026-10-04 16:02:04 +00:00
30 lines
1.1 KiB
Terraform
30 lines
1.1 KiB
Terraform
|
|
resource "aws_ssm_parameter" "deploy_artifacts_bucket" {
|
||
|
|
name = "${local.ssm_prefix}/deploy/artifacts-bucket"
|
||
|
|
type = "String"
|
||
|
|
value = aws_s3_bucket.artifacts.id
|
||
|
|
description = "Lambda artifacts bucket; deploy.yaml uploads functions/<name>/<sha>.zip"
|
||
|
|
}
|
||
|
|
|
||
|
|
resource "aws_ssm_parameter" "deploy_exports_bucket" {
|
||
|
|
name = "${local.ssm_prefix}/deploy/exports-bucket"
|
||
|
|
type = "String"
|
||
|
|
value = aws_s3_bucket.exports.id
|
||
|
|
description = "Exports bucket; deploy.yaml syncs grafana/ to grafana-config/"
|
||
|
|
}
|
||
|
|
|
||
|
|
resource "aws_ssm_parameter" "deploy_function_name" {
|
||
|
|
for_each = local.functions
|
||
|
|
|
||
|
|
name = "${local.ssm_prefix}/deploy/${each.key}-function-name"
|
||
|
|
type = "String"
|
||
|
|
value = each.value.function_name
|
||
|
|
description = "Lambda function name for ${each.key}; deploy.yaml calls update-function-code"
|
||
|
|
}
|
||
|
|
|
||
|
|
resource "aws_ssm_parameter" "grafana_url" {
|
||
|
|
name = local.grafana_url_param
|
||
|
|
type = "String"
|
||
|
|
value = local.grafana_dashboard_url
|
||
|
|
description = "Grafana dashboard URL for the Slack Open dashboard button"
|
||
|
|
}
|