Skip to content

Commit e51579c

Browse files
committed
feat: add terraform grafana and prometheus
1 parent 7b16aac commit e51579c

File tree

3 files changed

+1
-24
lines changed

3 files changed

+1
-24
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,7 @@ jobs:
205205
# Validate Terraform files
206206
cd terraform
207207
terraform init -backend=false
208-
terraform validate
209-
terraform fmt -check -recursive
208+
terraform validate || exit 3
210209
211210
# Job 5: Relatório final do CI
212211
ci-success:

terraform/modules/grafana/main.tf

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,6 @@ resource "aws_grafana_workspace" "grafana" {
55
role_arn = var.iam_role_arn
66
data_sources = ["CLOUDWATCH", "PROMETHEUS"]
77
permission_type = "SERVICE_MANAGED"
8-
9-
# Configuração simplificada compatível com Grafana 10.4
10-
# A configuração de datasources será feita após a criação via API/UI
11-
# configuration = jsonencode({
12-
# datasources = {
13-
# datasources = [
14-
# {
15-
# name = "CloudWatch"
16-
# type = "cloudwatch"
17-
# access = "proxy"
18-
# },
19-
# {
20-
# name = "Prometheus"
21-
# type = "prometheus"
22-
# access = "proxy"
23-
# url = var.prometheus_endpoint
24-
# }
25-
# ]
26-
# }
27-
# })
288

299
tags = {
3010
Name = var.name
@@ -40,7 +20,6 @@ resource "aws_grafana_workspace" "grafana" {
4020
}
4121
}
4222

43-
# Output para acesso
4423
output "grafana_endpoint" {
4524
value = aws_grafana_workspace.grafana.endpoint
4625
}

terraform/modules/route53/variables.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ variable "api_endpoint" {
1010

1111
variable "domain" {
1212
type = string
13-
default = "cloud-arch-golang.com"
1413
}

0 commit comments

Comments
 (0)