Skip to content

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotify Terraform

Introduction

Managing Spotify with Terraform and testing with Terratest
Reference: Create a Spotify playlist with Terraform


image

Usage

Spotify Authorization

  • Create an .env file in the root directory
echo "SPOTIFY_CLIENT_ID=<your client ID>" > .env && echo "SPOTIFY_CLIENT_SECRET=<your client secret>" >> .env
  • Start authorization
chmod 755 start.sh && ./start.sh
  • Stop authorization
chmod 755 stop.sh && ./stop.sh

Terraform Provisioning

  • Change the current working directory to the terraform directory
cd terraform
  • Initialize the Terraform configuration
terraform init
  • Generate and review an execution plan
terraform plan -out spotify
  • Apply the changes required to reach the desired state
terraform apply spotify
  • Destroy the managed infrastructure
terraform destroy

About

Ngày ADN không trùng khớp là ngày hoàng đế trở về.

Topics

Resources

Stars

10 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages