You can update your Data Images to enable or disable sharing with others by using the
Team sharing currently only works with GitHub authentication. Microsoft authentication is not supported.
$ spawnctl update data-image <ImageName_Or_ImageID> --team <GitHub_Team1> --team <GitHub_Team2>
spawnctl update data-image <ImageName_Or_ImageID> --team <GitHub_Team1> --remove
In this tutorial we will create a Data Image, then share the Data Image with a GitHub team.
As a prerequisite you should've followed the instructions to install spawnctl
Create a file
development.yamlwith your Data Image specifications.
sourceType: empty name: dev engine: postgresql
In this case we want to create a PostgreSQL Data Image that is completely empty and is named
Run the following command to create a Data Image.
$ spawnctl create data-image -f ./development.yaml Data image 'dev' created!
You can verify your Data Image was properly created by running the following command.
$ spawnctl get data-images ID Name Engine SourceType Status CreatedAt Teams Owner 10986 dev PostgreSQL Empty Completed 2019-03-26T11:50:35Z true
Notice that the teams column has no values.
Run the following command to share the image with a specified team.
$ spawnctl update data-image dev --team red-gate:spawn-developers Image : 'dev' updated
You can now verify that the image is shared with the specified team
$ spawnctl get data-images ID Name Engine SourceType Status CreatedAt Teams Owner 10986 dev PostgreSQL Empty Completed 2019-03-26T11:50:35Z red-gate:spawn-developers true
--removeflag will remove the specified teams from the data image.