in blogs/ecs-canary-deployments-pipeline/setup/scripts/delete_blog_contents.py [0:0]
def _delete_ssm_params(apps):
""" Delete the app specific SSM Param store. """
for app in apps:
try:
SSM_CLIENT.delete_parameter(
Name=ENVIRONMENT_NAME+'-canary-'+app+'-version'
)
except ClientError as ex:
if ex.response['Error']['Code'] == 'ParameterNotFound':
print("SSM Parameter for the app: {} is not found, no action needed".format(app))
continue
else:
raise ex
print("Deleted the App Specific Parameter store successfully.")