Coder Social home page Coder Social logo

terraform-google-privatebin's Introduction

Serverless deployment of PrivateBin on GCS

This module deploys privatebin as a serverless application on Google Cloud Platform.

The backend is deployed as using Google Cloud Run and the pastes are stored on Google Cloud Storage. Google Cloud Storage support is already on the master branch of PrivateBin, but it is not yet released. Currently the image eu.gcr.io/binx-io-public/privatebin/gcs:f9ccd67 is used.

This module will create the following resources:

  • storage bucket named privatebin-<google project name>
  • service account named privatebin
  • a cloud run service named privatebin
  • a secret named privatebin-configuration

deploying

To deploy privatebin in your Google project, add the following module to your terraform template:

module "privatebin" {
  source  = "git::https:/github.com/binxio/terraform-google-privatebin.git?ref=0.2.0"

  providers = {
    google      = google
    google-beta = google-beta
  }
}

The application will be deployed in the project and region specified by the passed in providers. After terraform apply, the output will print the URL of your privatebin installation. Alternatively you can open in Cloud Shell.

building your own image

to build your own image of the privatebin application, type:

git clone [email protected]:PrivateBin/docker-nginx-fpm-alpine.git
cd docker-nginx-fpm-alpine
docker build --build-arg RELEASE=master --tag $YOUR_IMAGE --output type=registry,push=true .

Now you set the variable image to $YOUR_IMAGE.

configure the privatebin configuration

You can configure your own privatebin configuration file. Make sure that you set the storage class to GoogleCloudStorage

[model]
class = GoogleCloudStorage

and the bucket name to ${private_bucket_name}:

[model_options]
bucket = "${privatebin_bucket_name}"

terraform-google-privatebin's People

Contributors

mvanholsteijn avatar

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.