Using the Parameter Store
Below is a high-level workflow for using AWS Systems Manager Parameter Store with your Flogo app.
To use the Parameter Store to override app properties set in Flogo, perform the following steps:
- Procedure
- Build an app that has the app properties already configured in Flogo.
- Configure the app properties that you want to override in the Parameter Store. At runtime, the app fetches these values from the Parameter Store and uses them to replace the default values that were set in the app.
- Set the
FLOGO_APP_PROPS_AWS
environment variable to set the Parameter Store connection parameters from the Environmental Controls tab on the Data Plane.
For example:
FLOGO_APP_PROPS_AWS="{"access_key_id":"SECRET:XXXXXXXXXXXXX","secret_access_key":"SECRET:XXXXXXXXXXX",
"session_token":"SECRET:XXXXXXXXX","region":"us-west-2",
"param_prefix":"/MyFlogoApp/Dev/"}"
When you hit the reconfigure API, it connects to the Parameter Store, and fetches the overridden values for the app properties from the Parameter Store. Only the values for properties that were configured in the Parameter Store are overridden. The remaining app properties get their values from the Environmental Controls dialog.
See the Setting the Parameter Store Connection Parameters and Parameter Store Connection Parameters sections for details.