github.com/upcmd/up@v0.8.1-0.20230108151705-ad8b797bf04f/examples/0002/03/notes.md (about) 1 ### Notes 2 3 ### Incremental Improvement 4 5 Add virtualEnv support to preload/source environment variables, this will apply to the entire shell execution context. Checkout the virtualEnv for more details 6 7 ``` 8 Ξ 0002/03 git:(master) ▶ . ./envrc 9 Ξ 0002/03 git:(master) ▶ up ngo CreateMyAppStack -i dev 10 loading [Config]: ./upconfig.yml 11 Main config: 12 Version -> 1.0.0 13 RefDir -> ./ups 14 WorkDir -> cwd 15 AbsWorkDir -> /up-project/up/examples/0002/03 16 TaskFile -> up.yml 17 Verbose -> v 18 ModuleName -> self 19 ShellType -> /bin/sh 20 MaxCallLayers -> 8 21 Timeout -> 3600000 22 MaxModuelCallLayers -> 256 23 EntryTask -> CreateMyAppStack 24 work dir: /up-project/up/examples/0002/03 25 -exec task: CreateMyAppStack 26 loading [Task]: ./up.yml 27 module: [self], instance id: [dev], exec profile: [] 28 loading [./main.yml]: ./ups/./main.yml 29 loading [./utils/encrypt.yml]: ./ups/./utils/encrypt.yml 30 loading [./utils/venv.yml]: ./ups/./utils/venv.yml 31 loading [./myapp/create.yml]: ./ups/./myapp/create.yml 32 Task6: [CreateMyAppStack ==> CreateMyAppStack: ] 33 -Step1: 34 =Task5: [CreateMyAppStack ==> set_aws_credential: ] 35 --Step1: 36 ~~SubStep1: [virtualEnv: source all needed aws credential and apply accross the full execution session ] 37 -sourcing execution result: 38 start sourcing ..... 39 end sourcing ..... 40 41 -Step2: [create_my_application: fake mock up only ] 42 cmd( 1): 43 - 44 AWS_SESSION_TOKEN is - my_aws_session_token 45 46 - 47 .. ok 48 cmd( 2): 49 - 50 { 51 "args": {}, 52 "data": "", 53 "files": {}, 54 "form": { 55 "\n{\n name: tom,\n class: year12-k,\n school: SG\n username: api_username\n password: the_api_password\n token: my_aws_session_token\n}": "" 56 }, 57 "headers": { 58 "Accept": "application/json", 59 "Content-Length": "133", 60 "Content-Type": "application/x-www-form-urlencoded", 61 "Host": "httpbin.org", 62 "User-Agent": "curl/7.54.0", 63 "X-Amzn-Trace-Id": "Root=1-5f5791c8-7de7fc0b046fb0854a53121f" 64 }, 65 "json": null, 66 "origin": "118.211.180.66", 67 "url": "http://httpbin.org/post" 68 } 69 70 - 71 .. ok 72 . ok 73 ```