some-notebook-86727
02/12/2024, 6:47 PMThis resource is deprecated Please use the cloudinit.Config data source instead.I've no idea what is meant by 'data source' here. Maybe someone can point me to the right resource. It would be great if the documentation contained an actual reference/link to it.
some-notebook-86727
02/12/2024, 7:23 PMimport pulumi_cloudinit as cloudinit
# Generate a cloud-init config
config = cloudinit.Config("example",
gzip=False,
base64_encode=False,
parts=[cloudinit.ConfigPartArgs(
content_type="text/x-shellscript",
content="""
#cloud-config
users:
- name: pulumi
ssh_authorized_keys:
- your_public_ssh_key_here
""",
)])
But this is just something I've found on the internet, it's not something I've inferred in anyway. Eh...quiet-answer-18749
02/12/2024, 8:39 PMquiet-answer-18749
02/12/2024, 8:39 PMquiet-answer-18749
02/12/2024, 8:40 PMsome-notebook-86727
02/12/2024, 8:48 PMgetConfig
is just misleading or I don't understand it. It leads me to believe that there's an existing config that I'm retrieving somehow and I'm not creating it there.some-notebook-86727
02/12/2024, 8:48 PMsome-notebook-86727
02/12/2024, 8:50 PMsome-notebook-86727
02/12/2024, 8:52 PMquiet-answer-18749
02/12/2024, 9:37 PMsome-notebook-86727
02/12/2024, 9:41 PMConfig
(deprecated) and there getConfig
, what you've suggested. So the overview uses config
, which is deprecated then, as you've mentioned, they just haven't updated the documentation, right? I'm mislead by that because in the overview Config
is used differently than in the "Config" section.
So getConfig
is the only non-deprecated version, if I understand correctly.quiet-answer-18749
02/12/2024, 9:53 PMsome-notebook-86727
02/13/2024, 8:31 AMquiet-answer-18749
02/13/2024, 3:12 PMsome-notebook-86727
02/13/2024, 3:14 PMpulumi up
did work, and yes, .rendered
seems to be outputting what I want. I just need to create a file out of that.quiet-answer-18749
02/13/2024, 3:15 PM