Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/boltops-tools/terraspace_plugin_google
Terraspace Google Cloud Provider
https://github.com/boltops-tools/terraspace_plugin_google
boltops terraform terraspace
Last synced: about 1 month ago
JSON representation
Terraspace Google Cloud Provider
- Host: GitHub
- URL: https://github.com/boltops-tools/terraspace_plugin_google
- Owner: boltops-tools
- License: apache-2.0
- Created: 2020-05-28T16:24:11.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-23T16:43:24.000Z (7 months ago)
- Last Synced: 2024-10-13T15:45:38.410Z (2 months ago)
- Topics: boltops, terraform, terraspace
- Language: Ruby
- Homepage:
- Size: 76.2 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Terraspace Google Cloud Plugin
Google Cloud support for [terraspace](https://terraspace.cloud/).
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'terraspace_plugin_google'
```## Configure
Optionally configure the plugin. Here's an example `google.rb` for your terraspace project.
config/plugins/google.rb
```ruby
TerraspacePluginGoogle.configure do |config|
config.auto_create = true # set to false to completely disable auto creation
config.gcs.versioning = true
end
```By default:
* GCS Buckets have [versioning](https://cloud.google.com/storage/docs/object-versioning) enabled.
The settings generally only apply if the gcs bucket does not yet exist yet and is created for the first time.
## Versioning
To confirm that the GCS bucket has versioning enabled:
$ gsutil versioning get gs://my-bucket
gs://my-bucket: Enabled
$Here's also how you list multiple versions of an object.
$ gsutil ls gs://my-bucket
gs://my-bucket/us-central1/
$ echo hello1 > hello.txt
$ gsutil cp hello.txt gs://my-bucket/hello.txt
$ echo hello2 > hello.txt
$ gsutil cp hello.txt gs://my-bucket/hello.txt
$ gsutil ls gs://my-bucket/hello.txt
gs://my-bucket/hello.txt
$ gsutil ls -a gs://my-bucket/hello.txt
gs://my-bucket/hello.txt#1590950916098856
gs://my-bucket/hello.txt#1590950925738834
$ gsutil cp gs://my-bucket/hello.txt#1590950916098856 hello1.txt## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/boltops-tools/terraspace_plugin_google.