forked from exitflynn/OSDPlaylist
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.tf
58 lines (49 loc) · 1.42 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
terraform {
required_providers {
spotify = {
version = "~> 0.2.6"
source = "conradludgate/spotify"
}
}
}
provider "spotify" {
api_key = var.SPOTIFY_API_KEY
}
data "spotify_search_track" "RAM" {
album = "Random Access Memories (10th Anniversary Edition)"
limit = 7
}
data "spotify_search_track" "LImperatrice" {
artist = "L'Impératrice"
limit = 7
}
data "spotify_search_track" "Odyssee" {
album = "Odyssee EP"
}
data "spotify_search_track" "Parcels" {
artist = "Parcels"
limit = 7
}
data "spotify_track" "Zenith" {
url = "https://open.spotify.com/track/0qKX14YZHptDWiEN0CgxGz?si=174ddb3f25414e2c"
}
data "spotify_track" "A_View_To_Kill" {
url = "https://open.spotify.com/track/7fN3QQtmCMkiczQ41IuhwK?si=d0e32a11da1f4c72"
}
data "spotify_track" "Veridis_Quo" {
url = "https://open.spotify.com/track/2LD2gT7gwAurzdQDQtILds?si=392db9f1e95849e6"
}
resource "spotify_playlist" "playlist" {
name = "The CodeJam Playlist"
description = "Wishing you make the nicest, most Randomly Accessible Memories this CodeR̶A̶M̶Jam :)"
public = true
tracks = flatten([
data.spotify_search_track.RAM.tracks[*].id,
data.spotify_search_track.LImperatrice.tracks[*].id,
data.spotify_search_track.Odyssee.tracks[*].id,
data.spotify_search_track.Parcels.tracks[*].id,
data.spotify_track.Zenith.id,
data.spotify_track.A_View_To_Kill.id,
data.spotify_track.Veridis_Quo.id
])
}