I have a problem doing a volume attachment on Digi...
# general
c
I have a problem doing a volume attachment on DigitalOcean... the droplet output
id
is
str
type: https://www.pulumi.com/docs/reference/pkg/digitalocean/droplet/#id_python but the
droplet_id
input for the volume attachment is `int`: https://www.pulumi.com/docs/reference/pkg/digitalocean/volumeattachment/#droplet_id_python
pulumi up
fails with:
Copy code
VolumeAttachment resource 'pgb-dokku-db-vol-attachment' has a problem: Attribute must be a whole number, got 216866671
if I try to cast the output id as
int(droplet.id)
(in python) I get:
Copy code
TypeError: int() argument must be a string, a bytes-like object or a number, not 'Output'
is there a workaround?