Questions tagged [go-cdk]

Go Cloud Development Kit (Go CDK)

The Go Cloud Development Kit (Go CDK) project is an initiative that will allow application developers to seamlessly deploy cloud applications on any combination of cloud providers. It does this by providing stable, idiomatic interfaces for common uses like storage and databases. Think database/sql for cloud products.

A key part of the project is to also provide a code generator called Wire. It creates human-readable code that only imports the cloud SDKs for providers you use. This allows Go CDK to grow to support any number of cloud providers, without increasing compile times or binary sizes, and avoiding any side effects from init() functions.

5 questions
5
votes
2 answers

Attempting to convert some code to Go CDK when using KMS

I have some code to upload and download files from Google Cloud Storage. Below is an abbreviated example: import ( "context" "io" "cloud.google.com/go/storage" ) func upload(bucket, keyName, path string, reader io.Reader) error { …
Mylan Connolly
  • 494
  • 1
  • 5
  • 15
3
votes
1 answer

GoLang go-cloud/wire problem with array as a parameter of Provider

I am having little trouble with correct configuration of wire I have following setup Router func NewRouter(routes []RouterPath) AppRouter { r := &appRouter{ routes: routes, } return r } Router interface type RouterPath…
2
votes
3 answers

How to set public read using go-cloud s3blob?

I've followed the go-cloud tutorial and I've managed to write a file to my S3 bucket. But how do I set ACL: s3.ObjectCannedACLPublicRead aka public-read aka work readable permissions on that object?! My workaround is sadly to set a public bucket…
hendry
  • 9,725
  • 18
  • 81
  • 139
0
votes
0 answers

Errno 32 broken pipe on Alpine Linux Docker image when passing exec stdout to s3 bucket using the go cloud development kit

I wrote a small utility to pipe the output of the mysqldump command to an s3 bucket in golang, which I intend to use to snapshot and restore our database in an end-to-end test environment. When I run this locally, everything works as expected: the…
Blokje5
  • 4,763
  • 1
  • 20
  • 37
-2
votes
2 answers

How is state handled in the go cloud?

In terraform we get a state file, and CloudFormation also has a notion of a working state. How does go cloud handle the state, do we have to create it ourselves? For more info on Go Cloud…
Claudiordgz
  • 3,023
  • 1
  • 21
  • 48