File tree Expand file tree Collapse file tree 3 files changed +1
-24
lines changed Expand file tree Collapse file tree 3 files changed +1
-24
lines changed Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff 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
4423output "grafana_endpoint" {
4524 value = aws_grafana_workspace. grafana . endpoint
4625}
Original file line number Diff line number Diff line change @@ -10,5 +10,4 @@ variable "api_endpoint" {
1010
1111variable "domain" {
1212 type = string
13- default = " cloud-arch-golang.com"
1413}
You can’t perform that action at this time.
0 commit comments