https://pulumi.com logo
#python
Title
# python
s

sparse-state-34229

05/20/2020, 5:45 PM
Copy code
def user_data(self):
        user_data_tpl = Template(BASE_USERDATA_TPL)

        return Output.all([self.vpc.id]).apply(
            lambda x: user_data_tpl.render(
                dns_domain=self.vpc.dns_domain,
                vpc_cidr=self.vpc.cidr_block,
                vpc_id=x[0][0],
                vpc_name=self.vpc.name,
            ).encode("utf-8")
        )
2 Views