cloudposse / cloudposse/terraform-github-repository-webhooks

Use for_each in resource github_repository_webhook

Open
#58 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HCL
Stars
29
Forks
28
PR merge metrics
No merged PRs in 30d

Description

### Describe the Feature

Use the for_each instead of count to make the `github_repository_webhook` list more stable

### Expected Behavior

When deleting a git repo from the list, only one element is affected.

### Use Case

Currently, when I delete one item in the middle of my `var.github_repositories`, the items after it will be desstoyed and recreated to shift one position up.

### Describe Ideal Solution

Using for_each with maps will make it more stable.

### Alternatives Considered

_No response_

### Additional Context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.