|
@@ -2,16 +2,9 @@
|
|
|
|
|
|
from cookiecutter.main import cookiecutter
|
|
|
|
|
|
-import datetime
|
|
|
-import os
|
|
|
-
|
|
|
-now = datetime.datetime.now()
|
|
|
-
|
|
|
-
|
|
|
-rstring = ''.join([c for c in os.urandom(1024)
|
|
|
- if c.isalnum()])[:64]
|
|
|
+from datetime import datetime
|
|
|
|
|
|
cookiecutter(
|
|
|
- 'cookiecutter-terraform-module', # path/url to cookiecutter template
|
|
|
- extra_context={'secret': rstring},
|
|
|
+ 'cookiecutter-terraform-module',
|
|
|
+ extra_context={'timestamp': datetime.utcnow().isoformat()}
|
|
|
)
|