For_each on data source like http
Open
core
hcl2
stage/needs-discussion
wontfix
- Dominant language
- Go
- Stars
- 15.8k
- Forks
- 3.3k
- PR merge metrics
- PR metrics pending
Description
#### Description
for_each attribute support on configuration resource
#### Use Case(s)
At times we may iterate on multiple data sources.
#### Potential configuration
```
data "http" "this" {
for_each = local.fileset
URL = "https://git.myserver/api/v4/projects/1000/repository/files/${replace(each.value, "/", "%2F")}?ref=master"
request_headers = {
PRIVATE-TOKEN = var.TOKEN
}
}
```
#### Potential References
Contributor guide
Assessment
This issue has not been assessed yet.