terraform-provider-pokemon

command module
v0.0.0-...-f1015e7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

README

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
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL