Skip to content

Commit

Permalink
[MM-61911] yace: use deployer config region (#878)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmartingr authored Jan 14, 2025
1 parent 49fb24a commit d28ef1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions deployment/terraform/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ func (t *Terraform) setupMetrics(extAgent *ssh.ExtAgent) error {
"Period": yaceDurationSeconds,
"Length": yaceDurationSeconds,
"Delay": yaceDurationSeconds,
"AWSRegion": t.Config().AWSRegion,
})
if err != nil {
return fmt.Errorf("error rendering YACE configuration template: %w", err)
Expand Down
6 changes: 3 additions & 3 deletions deployment/terraform/strings.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ discovery:
jobs:
- type: AWS/RDS
regions:
- us-east-1
- {{.AWSRegion}}
period: {{.Period}}
length: {{.Length}}
delay: {{.Delay}}
Expand Down Expand Up @@ -391,7 +391,7 @@ discovery:
statistics: [Average]
- type: AWS/ES
regions:
- us-east-1
- {{.AWSRegion}}
period: {{.Period}}
length: {{.Length}}
delay: {{.Delay}}
Expand Down Expand Up @@ -432,7 +432,7 @@ discovery:
statistics: [Maximum]
- type: AWS/EC2
regions:
- us-east-1
- {{.AWSRegion}}
period: {{.Period}}
length: {{.Length}}
delay: {{.Delay}}
Expand Down

0 comments on commit d28ef1e

Please sign in to comment.