ucg/docsite/ucglib/macros.ucg
Jeremy Wall c20190e8e2 Add our documentation site using gutenberg and ucg.
* gutenberg generates the documentation site
* ucg configures the Google cloud storage bucket.
2018-11-17 17:51:18 -06:00

40 lines
1.0 KiB
Plaintext

let bucketbase = macro(name, project, location) => {
name = name,
type = "storage.v1.bucket",
properties = {
bucket = name,
project = project,
location = location,
acl = [
{
entity = "project-owners-ucg-configuration-project",
role = "OWNER",
},
{
entity = "project-editors-ucg-configuration-project",
role = "WRITER",
},
{
entity = "project-viewers-ucg-configuration-project",
role = "READER",
},
],
defaultObjectAcl = [
{
entity = "allUsers",
role = "READER",
},
],
},
};
let bucketSelfLink = macro(bucket) => {
name = "@selfLink" % (bucket),
value = "https://console.cloud.google.com/storage/browser/@" % (bucket),
};
let bucketGsLink = macro(bucket) => {
name = "@gsLink" % (bucket),
value = "gs://@" % (bucket),
};