Skip to content

Instantly share code, notes, and snippets.

@ohlol
Created May 24, 2020 21:51
Embed
What would you like to do?
def base_user_data(self):
template = Template(BASE_USERDATA_TPL)
return Output.all([self.vpc.id]).apply(
lambda x: template.render(
dns_domain=self.vpc.dns_domain,
vpc_cidr=self.vpc.cidr_block,
vpc_id=x[0][0],
vpc_name=self.vpc.name,
datadog_apikey=self.datadog_apikey,
tags=self.tags,
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment