Skip to content

Instantly share code, notes, and snippets.

@ohlol
Created May 24, 2020 21:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ohlol/330bc4fd062700dde7d8fd15cf3e18ab to your computer and use it in GitHub Desktop.
Save ohlol/330bc4fd062700dde7d8fd15cf3e18ab to your computer and use it in GitHub Desktop.
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