Imports an arbitrary set of SSM parameters into AWS Parameter Store, both String and SecureString parameters. Does not overwrite existing SSM parameters.
Prerequisites
the awscli must be installed locally on the host
user must have AWS credentials sufficient to write to the AWS SSM parameter store
Required Inputs
--file = path and name of CSV file
--keyid = the key-id for encrypting SecureString SSM parameters
--region = the AWS region in which the parameters will be stored
CSV file requirements
File must contain a header row with four columns (in any order):
NamespacePrefix (e.g. /staging/2019-sandbox)
Parameter (e.g. POSTGRES_HOST)
Type (either String or SecureString)
Value (e.g. rdshostname1.randomsubdomain.us-west-2.rds.amazonaws.com)
Script expects comma delimiter by default, but can be trivially changed by modifying the delimiter_character variable.
Imports an arbitrary set of SSM parameters into AWS Parameter Store, both String and SecureString parameters. Does not overwrite existing SSM parameters.
Prerequisites
awscli
must be installed locally on the hostRequired Inputs
--file
= path and name of CSV file--keyid
= the key-id for encrypting SecureString SSM parameters--region
= the AWS region in which the parameters will be storedCSV file requirements
File must contain a header row with four columns (in any order):
/staging/2019-sandbox
)POSTGRES_HOST
)String
orSecureString
)rdshostname1.randomsubdomain.us-west-2.rds.amazonaws.com
)Script expects comma delimiter by default, but can be trivially changed by modifying the
delimiter_character
variable.