Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kawakamimoeki/barruun
Barruun is a simple tool for Infrastructure as Code of Google Cloud Platform using `gcloud` command
https://github.com/kawakamimoeki/barruun
gcp gem infrastructure-as-code ruby
Last synced: 3 months ago
JSON representation
Barruun is a simple tool for Infrastructure as Code of Google Cloud Platform using `gcloud` command
- Host: GitHub
- URL: https://github.com/kawakamimoeki/barruun
- Owner: kawakamimoeki
- Created: 2022-01-18T05:48:56.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-02T01:11:30.000Z (about 3 years ago)
- Last Synced: 2024-10-19T09:07:32.403Z (4 months ago)
- Topics: gcp, gem, infrastructure-as-code, ruby
- Language: Ruby
- Homepage:
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Barruun
Barruun is a simple tool for Infrastructure as Code of Google Cloud Platform using `gcloud` command.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'barruun'
```And then execute:
$ bundle install
Or install it yourself as:
$ gem install barruun
## Usage
```
Commands:
barruun help [COMMAND] # Describe available commands or one specific command
barruun logging # Manage Cloud Logging.
barruun storage # Manage Cloud Storage.
```### Logging
```
Commands:
barruun logging help [COMMAND] # Describe subcommands or one specific subcommand
barruun logging sink [FILEPATH] # Create or update sink.
```#### Sink
Please set project id to `PROJECT_ID`.
```yaml
name: foobar
destination: bigquery.googleapis.com/projects/:PROJECT_ID/datasets/test
log-filter: 'jsonPayload."event-data":*'
```### Storage
```
Commands:
barruun storage bucket [FILEPATH] # Create or update bucket.
barruun storage help [COMMAND] # Describe subcommands or one specific subcommand
```#### Bucket
```yaml
name: foobarbox
class: regional
bucket-level: 'on'
location: us-central1
```### BigQuery
```
Commands:
barruun bigquery dataset [FILEPATH] # Create dataset
barruun bigquery help [COMMAND] # Describe subcommands or one specific subcommand
```#### Dataset
```yaml
name: foobar
location: asia-northeast1
```## Development
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).