app#

App creating a static site for the rootski docs.

Note

Eric recommends never putting node.try_get_context() calls inside of a stack. Hiding those calls inside of a stack makes it very unintuitive to figure out what inputs you need to actually create a stack. Instead, write stacks and constructs assuming any required inputs will be passed as arguments to the constructor. Make the calls to try_get_context in the app.py.

In each stack/construct, use a dataclass, enum, or constants to define actual string constants used for ContextVars (inputs) and Cloudformation Outputs (outputs).




Module Attributes#

ROOTSKI_DOMAIN_NAME

parent domain for rootski

DOCS_SITE_SUBDOMAIN

subdomain for docs site

s3_static_site.app.ROOTSKI_DOMAIN_NAME = 'rootski.io'#

parent domain for rootski

s3_static_site.app.DOCS_SITE_SUBDOMAIN = 'docs'#

subdomain for docs site