<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Tue, Oct 31, 2017 at 1:40 PM Akshat Jiwan Sharma <<a href="mailto:akshatjiwan@gmail.com">akshatjiwan@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks Andrew. I'm using google cloud platform. But also planning to use aws in the future. </div></blockquote><div><br></div><div>For AWS, we tag the root disk EBS volume with:</div><div><br></div><div>   key=Name<br></div><div>   value=${INST_ID}-root</div><div> </div><div>So if you add a machine in Juju and it gets assigned the instance ID "inst-foo", then the root disk EBS volume will have a Name tag with the value "inst-foo-root".</div><div><br></div><div>I don't know if we can guarantee that this will remain true forever, but it hasn't changed in a long time.<br></div><div><br></div><div>HTH,</div><div>Andrew</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_extra"><div class="gmail_quote">On Tue, Oct 31, 2017 at 8:23 AM, Andrew Wilkins <span dir="ltr"><<a href="mailto:andrew.wilkins@canonical.com" target="_blank">andrew.wilkins@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><span><div dir="ltr">On Tue, Oct 31, 2017 at 10:37 AM Akshat Jiwan Sharma <<a href="mailto:akshatjiwan@gmail.com" target="_blank">akshatjiwan@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I'd like to automate backups for my server provisioned via juju. For that I'm planning to use terraform. To take a snapshot of the disk, terraform needs a disk id. </div><div><br></div><div>Is there a way I can get disk ID using juju commands? Juju show machine only gives the capacity of the disk not its id. </div></div></blockquote><div><br></div></span><div>Not at the moment. We'll need to extend the data model and update the providers to support this. We do record information about volumes that Juju provisions, but that excludes the root/OS disk.</div><span><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>On a machine that I deployed on google cloud platform the disk id is same as the instance id. Can I assume that the disk id is same as the instance id everywhere? </div></div></blockquote><div><br></div></span><div>No, that's not a safe assumption in general. Which cloud providers are you using?</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Thanks,<br></div><div>Akshat</div></div><span class="m_1200478297021327725HOEnZb"><font color="#888888">
--<br>
Juju mailing list<br>
<a href="mailto:Juju@lists.ubuntu.com" target="_blank">Juju@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju</a><br>
</font></span></blockquote></div></div>
</blockquote></div><br></div>
</blockquote></div></div>