polite-motherboard-78438
05/17/2020, 11:33 AMconst sshKey = config.requireSecret("admin_pub_key");
const userData = `
#cloud-config
users:
- name: ${adminUser}
ssh-authorized-keys:
- ${sshKey}
sudo: ['ALL=(ALL) NOPASSWD:ALL']
groups: sudo
shell: /bin/bash
`;
It complains that it cant call toString on an Output<T> object on the "sshKey" variable. I just want get the string value from the secret. As simple as that!
Note that in this example I am already inside a string literal. I have tried to create a new variable, following the instructions of using pulumi interpolate, but get the same message. If someone can enlighten me on this, I would be greatfull.