Skip to content

Manage custom resources in multiple deployments #488

Answered by ier
rublag asked this question in Q&A
Discussion options

You must be logged in to vote

We recommend to use Aidbox Project for this.

Example:

Create custom resources with zen

aidbox-project/resources/custom1.edn:

{ns resources.custom1
 import #{zenbox}

 Custom1
 {:zen/tags #{zen/schema zenbox/persistent}
  :resourceType "Custom1"
  :confirms #{zenbox/Resource}
  :type zen/map
  :keys {:field1 {:type zen/string}}}}

aidbox-project/resources/custom2.edn:

{ns resources.custom2
 import #{zenbox}

 Custom2
 {:zen/tags #{zen/schema zenbox/persistent}
  :resourceType "Custom2"
  :confirms #{zenbox/Resource}
  :type zen/map
  :keys {:field1 {:type zen/string}}}}

Create entrypoint for staging environment:

aidbox-project/staging.edn:

{ns staging
 import #{resources.custom1
          r…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rublag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants