-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
64 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# yaml-language-server: $schema=../schema.json | ||
service: safebox | ||
provider: ssm | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# yaml-language-server: $schema=../schema.json | ||
service: safebox | ||
provider: secrets-manager | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"additionalProperties": false, | ||
"description": "Configuration for safebox to deploy parameters to various parameter stores", | ||
"properties": { | ||
"service": { | ||
"type": "string", | ||
"description": "Name of the service. parameters will be prefixed by the value provided" | ||
}, | ||
"provider": { | ||
"type": "string", | ||
"enum": ["ssm", "secrets-manager"], | ||
"description": "Deploy parameters to the given provider. Eg. ssm, secrets-manager" | ||
}, | ||
"prefix": { | ||
"type": "string", | ||
"description": "Prefix to apply to all parameters. Does not apply for shared", | ||
"default": "/<stage>/<service>/" | ||
}, | ||
"cloudformation-stacks": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"description": "Cloudformation stack names. Any output values from the stacks can be interpolated. Eg. DB_NAME: \"{{.myDbName}}\"\nmyDbName is the output of one of the cloudformation stacks" | ||
}, | ||
"config": { | ||
"type": "object", | ||
"description": "Parameters to deploy as non secret. You can also specify stage specific key value pairs. Same key in the defaults will be ignored and stage specific value will be used.", | ||
"properties": { | ||
"defaults": { | ||
"type": "object", | ||
"description": "parameter name and value. Output is /<stage>/<service>/<param name>" | ||
}, | ||
"shared": { | ||
"type": "object", | ||
"description": "Params that are to be shared between multiple services. The parameter name wont be prefixed by service name. Output is /<stage>/shared/<param name>" | ||
} | ||
} | ||
}, | ||
"secret": { | ||
"type": "object", | ||
"description": "Parameters to deploy as secret. You cannot specify stage specific key value pairs. Value is the description. You will need to run safebox deploy in prompt mode to provide the actual value.", | ||
"properties": { | ||
"defaults": { | ||
"type": "object", | ||
"description": "parameter name and value. Output is /<stage>/<service>/<param name>" | ||
}, | ||
"shared": { | ||
"type": "object", | ||
"description": "Params that are to be shared between multiple services. The parameter name wont be prefixed by service name. Output is /<stage>/shared/<param name>" | ||
} | ||
} | ||
} | ||
}, | ||
"required": ["service", "provider"], | ||
"type": "object" | ||
} |