Washery 0.4.1 Release
The 0.4.1
release of Washery introduces the ability to configure the CPU and memory values for the washery ECS task. Also included in the release is the ability to provide a path to a SSM parameter which is used to expose the parameter as an environment variable within the ECS task.
Exposing SSM Parameters
The purpose of exposing the parameter to the washery task is to allow the user to utilise the parameter via the SQL script during the cleaning process to set any sensitive data within the DB (passwords etc) before the snapshot is finalised.
Pipeline Parameters
The ciinabox pipeline washery function implements these changes through the following new parameters in the washery call.
- taskCPU: ‘1024’
optional, provide if overidding default task cpuvalue
- taskMemory: ‘1024’
optional, provide if overidding default task memory value
- resetUserPasswordParameter: ‘/path/password’
optional, path to user password SSM parameter
Example
The following example illustrates a washery pipeline execution with the taskCPU and taskMemory values overriden, aswell as the resetUserPasswordParameter
used to expose the SSM parameter at /path/password
to the washery ECS task.
stage('execute washery') {
steps {
washery(
region: env.REGION,
accountId: env.DEV_ACCOUNT,
role: env.ROLE,
snapshotId: env.SNAPSHOT_ID,
taskCPU: '1024',
taskMemory: '2048',
resetUserPasswordParameter: '/path/password'
)
}
}