abcxyz / abcxyz/guardian

Allow setting -parallelism= flag

Ouverte
#471 4 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
enhancement
Langage dominant
Go
Étoiles
26
Forks
7
Merge moyen
1 j 1 h
PR mergées (30 j)
1

Description

### TL;DR

Setting `terraform plan -parallelism=100` can give a ~3x speedup for large projects. I'd like to be able to set this with `guardian plan`, but I don't see an option for it: https://github.com/abcxyz/guardian/blob/main/cli.md#plan

### Detailed design

```markdown
This could either be an additional flag for guardian plan, or some generic way of adding additional terraform flags, such as `guardian plan -terraform-flags="-parallelism=100"`.
```

### Alternatives considered

```markdown
Just being slightly more patient :)
```

### Additional information

Evidence for the speedup when using `guardian run -- ...`:

![Image](https://github.com/user-attachments/assets/177defd9-cc3b-4ab1-a572-8ae4e92e50fa)

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

The issue is about adding a `-parallelism` flag or a generic `-terraform-flags` option to the `guardian plan` command. Start by examining the CLI command structure in the codebase, likely in a `cmd/` directory. Look for the `plan` command implementation to see how terraform is invoked. Adding a flag involves parsing it and passing it to the terraform command. Check if there are existing patterns for forwarding flags. Running the existing tests for the plan command will verify the change.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
terraform
Domaine
cli, devops
Type d'issue
Fonctionnalité
Difficulté
2/5
Temps estimé
1-3 heures
Activité
À l'abandon
Clarté
Clairement spécifiée
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.