I am trying to bundle up the AWS CloudHSM client into a snap and getting this error:
Downloading 'cloudhsm-client_latest_amd64.deb'[===...=====] 100%
Building cloudhsm
Failed to copy '/root/parts/cloudhsm/build/etc/cloudhsm': it's a symlink pointing outside the snap.
Fix it to be valid when snapped and try again.
Here is my YAML
name: cloudhsm-azemon
base: core
version: '0.1.0'
summary: AWS CloudHSM Client
description: |
This is the AWS CloudHSM client.
See https://docs.aws.amazon.com/cloudhsm/latest/userguide/install-and-configure-client-linux.html
grade: devel
confinement: devmode
parts:
cloudhsm:
plugin: dump
source: https://s3.amazonaws.com/cloudhsmv2-software/CloudHsmClient/Xenial/cloudhsm-client_latest_amd64.deb
source-type: deb
stage-packages:
- libjson-c2
To me, this looks like AWS created a broken .deb file. Is there any way to work around it?