Giter Club home page Giter Club logo

terraform-provider-tumblr's Introduction

terraform-provider-tumblr

Build Status codecov Scrutinizer code quality Go Report Card

GitHub release (latest SemVer) GitHub

A Terraform Custom Provider for tumblr.

Description

This is a custom terraform provider for managing common resources within the tumblr site platform, such as texts, photos, quotes etc.

Supported Resources

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

Requirements

Usage

Install

go build -o ~/.terraform.d/plugins/terraform-provider-tumblr

Provider Configuration

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

tumblr

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"

Resource Configuration

For documentation on each supported resource, refer to the blog.

Contributing

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.

Running Acceptance Tests

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

terraform-provider-tumblr's People

Contributors

rfiestas avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

dambustamante

terraform-provider-tumblr's Issues

Public variable on test

file:tumblr/resource_tumblr_post_text_test.go

var error404NotFound = regexp.MustCompile("404 Not Found")

Used on all resource tests

Use file

Rename data64_file to data64, then use file function

Example

resource "aws_s3_bucket_object" "upload" {
 bucket  = "bucket"
 key     = "date"
 source  = "${path.module}/timestamp"
 etag    = "${file("${path.module}/timestamp")}"
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.