We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0609159 commit ce7b9c2Copy full SHA for ce7b9c2
stack/__init__.py
@@ -1,3 +1,4 @@
1
+import datetime
2
import os
3
4
from . import sftp # noqa: F401
@@ -30,4 +31,13 @@
30
31
# Must be last to tag all resources
32
from . import tags # noqa: F401
33
34
+# Since we're outputting YAML, we can include comments
35
+print("# This Cloudformation stack template was generated by")
36
+print("# https://github.com/caktus/aws-web-stacks")
37
+print("# at %s" % datetime.datetime.now())
38
+print("# with parameters:")
39
+use_parms = sorted(parm for parm in os.environ.keys() if parm.startswith("USE_"))
40
+for parm in use_parms:
41
+ print("#\t%s = %s" % (parm, os.environ[parm]))
42
+print()
43
print(template.template.to_yaml())
0 commit comments