Skip to content

salaxander/terraform-provider-pokemon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform Provider for Pokemon!

This is a read-only Terraform provider for interfacing with the public Pokemon API. Docs for the API can be found at https://pokeapi.co/.

Usage Example

# You can get a Pokemon by name, this will output all the other data about the given Pokemon. 
data "pokemon" "ditto" {
    name = "ditto"
}

# You can also get a Pokemon by number from 1 - 807
data "pokemon" "bulbasaur" {
    id = 1
}

# Want to get a random Pokemon? Use the random provider!
resource "random_integer" "pokemon_number" {
    min = 1
    max = 807
}

data "pokemon" "random" {
    number = random_integer.pokemon_number.result
}

About

Terraform provider for interfacing with the public Pokemon API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors