A Terraform Custom Provider for tumblr.
This is a custom terraform provider for managing common resources within the tumblr site platform, such as texts, photos, quotes etc.
Currently, the following tumblr resources are supported (or partially supported) for configuration via terraform
:
tumblr_post_text
tumblr_post_photo
tumblr_post_quote
tumblr_post_link
tumblr_post_chat
tumblr_post_audio
tumblr_post_video
go build -o ~/.terraform.d/plugins/terraform-provider-tumblr
The provider only requires some configuration settings. Get your secrets from your tumblr account. Use tumblr/settings to get the OAuth Consumer Key and OAuth Consumer Secret and then validate on oauth page
provider "tumblr" {
consumer_key = "XXXXXXXXXXXXXXXXXXXXXX"
consumer_secret = "XXXXXXXXXXXXXXXXXXXXXX"
user_token = "XXXXXXXXXXXXXXXXXXXXXX"
user_token_secret = "XXXXXXXXXXXXXXXXXXXXXX"
}
Alternatively you can use environment variables
export CONSUMER_KEY="XXXXXXXXXXXXXXXXXXXXXX"
export CONSUMER_SECRET="XXXXXXXXXXXXXXXXXXXXXX"
export USER_TOKEN="XXXXXXXXXXXXXXXXXXXXXX"
export USER_TOKEN_SECRET="XXXXXXXXXXXXXXXXXXXXXX"
For documentation on each supported resource, refer to the blog.
Bug reports, suggestions, code additions/changes etc. are very welcome! When making code changes, please branch off of master
and then raise a pull request so it can be reviewed and merged.
In order to test the provider, you can run make test
.
$ make test
In order to run the full suite of Acceptance tests, run make testacc
.
Note Make sure CONSUMER_KEY
, CONSUMER_SECRET
, USER_TOKEN
and USER_TOKEN_SECRET
variables are set.
Acceptance tests create real resources, set your testing blog setting the variable TestBlog
on tumblr/schema_tumblr_post_test.go
file.
$ make testacc