Skip to content
This repository was archived by the owner on Jul 24, 2025. It is now read-only.
This repository was archived by the owner on Jul 24, 2025. It is now read-only.

data source missing in tracks #39

@nalinture

Description

@nalinture

resource "spotify_playlist" "ariana_grande" {
name = "My Ariana Grande Playlist"

tracks = flatten([
spotify_search_track.ariana_grande.tracks[*].id,
])
}

data "spotify_search_track" "ariana_grande" {
artist = "Ariana Grande"
limit = 10
}

from the above given example, in the "tracks " nested schema, the tracks list should be prefixed with "data."

So the tracks nested schema be as follows,
tracks = flatten([
**data.**spotify_search_track.ariana_grande.tracks[*].id,
])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions