Unable to bootstrap on a remote machine in cloud

We have cc installation on one ec2 instance. We are trying to bootstrap (SPM) on another ec2 instance using composite template. We are getting below error.

There are no endpoints remotely accessible on IP:22.

Template that we have is as attached. Need some help on this.

yaml.txt (1.63 KB)