In this tutorial, you will use a Terraform data source to search Spotify for an artist, album, or song, and use that data to build a playlist. Before

Create a Spotify Playlist with Terraform

submited by
Style Pass
2021-07-15 21:30:05

In this tutorial, you will use a Terraform data source to search Spotify for an artist, album, or song, and use that data to build a playlist.

Before you can use Terraform with Spotify, you need to create a Spotify developer app and run Spotify's authorization proxy server.

Fill out the name and description according to the table below, check the box to agree to the terms of services, then click "Create".

Copy the URI below into the "Redirect URI" field and click "ADD" so that Spotify can find its authorization application locally on port 27228 at the correct path. Scroll to the bottom of the form and click "Save."

Now that you created the Spotify app, you are ready to configure and start the authorization proxy server, which allows Terraform to interact with Spotify.

Return to your terminal and set the redirect URI as an environment variable, instructing the authorization proxy server to serve your Spotify access tokens on port 27228.

Leave a Comment