sparse-intern-71089
02/01/2021, 10:07 PMbrave-angle-33257
02/01/2021, 10:08 PMbrave-angle-33257
02/01/2021, 10:10 PMlittle-cartoon-10569
02/01/2021, 10:11 PMbrave-angle-33257
02/01/2021, 10:11 PMbrave-angle-33257
02/01/2021, 10:12 PMbrave-angle-33257
02/01/2021, 10:12 PMlittle-cartoon-10569
02/01/2021, 10:13 PMlittle-cartoon-10569
02/01/2021, 10:14 PMlittle-cartoon-10569
02/01/2021, 10:14 PMlittle-cartoon-10569
02/01/2021, 10:14 PMbrave-angle-33257
02/01/2021, 10:14 PMlittle-cartoon-10569
02/01/2021, 10:15 PMbrave-angle-33257
02/01/2021, 10:16 PMlittle-cartoon-10569
02/01/2021, 10:17 PMbrave-angle-33257
02/01/2021, 10:19 PMbrave-angle-33257
02/01/2021, 10:22 PMpulumi stack select A
, pulumi update -y
brave-angle-33257
02/01/2021, 10:23 PMlittle-cartoon-10569
02/01/2021, 10:29 PMbrave-angle-33257
02/01/2021, 10:30 PMlittle-cartoon-10569
02/01/2021, 10:30 PMlittle-cartoon-10569
02/01/2021, 10:31 PMbrave-angle-33257
02/01/2021, 10:32 PMlittle-cartoon-10569
02/01/2021, 10:32 PMbrave-angle-33257
02/01/2021, 10:33 PMbrave-angle-33257
02/01/2021, 10:33 PMlittle-cartoon-10569
02/01/2021, 10:33 PMbrave-angle-33257
02/01/2021, 10:34 PMlittle-cartoon-10569
02/01/2021, 10:34 PMlittle-cartoon-10569
02/01/2021, 10:34 PMbrave-angle-33257
02/01/2021, 10:35 PMbrave-angle-33257
02/03/2021, 3:49 PM[DEBUG] MYCOMPANY SERVICE DEPLOY PULUMI CMD LIST: [
'pulumi stack select mycompany-ecs-services.us-east-1.stage.userservice.blue',
'pulumi refresh --yes',
'pulumi config set aws:region us-east-1',
'mkdir tmp/HXKdIUPPXo',
'OUTDIR=HXKdIUPPXo jinja2 tsconfig.json.j2 > tsconfig.json',
'TASK_REVISION=169 pulumi update --yes'
]
+ pulumi:pulumi:Stack mycompany-ecs-services-mycompany-ecs-services.us-east-1.stage.apigateway.blue create error: an unhandled error occurred: Program exited with non-zero exit code: -1
+ pulumi:pulumi:Stack mycompany-ecs-services-mycompany-ecs-services.us-east-1.stage.apigateway.blue create 1 error
Diagnostics:
pulumi:pulumi:Stack (mycompany-ecs-services-mycompany-ecs-services.us-east-1.stage.apigateway.blue):
error: an unhandled error occurred: Program exited with non-zero exit code: -1
little-cartoon-10569
02/04/2021, 7:58 PMlemon-agent-27707
02/04/2021, 8:04 PMbrave-angle-33257
02/06/2021, 1:20 AMlemon-agent-27707
02/06/2021, 7:00 AMmain.py
file that can be executed without the CLI: https://github.com/pulumi/automation-api-examples/blob/main/python/inline_program/main.py
It includes both the pulumi program as a function (the inline program) and the automation api script that drives the deployment.
A local program is what we think of as a standard CLI driven pulumi program. The automation API is a python script in this example, and the program it runs is an independent pulumi project (that you could also theoretically use the CLI to run) https://github.com/pulumi/automation-api-examples/tree/main/python/local_programbrave-angle-33257
02/09/2021, 4:45 PMlemon-agent-27707
02/09/2021, 5:32 PMlemon-agent-27707
02/09/2021, 5:32 PMbrave-angle-33257
02/09/2021, 6:29 PMclick
and making a CLI out of it, then dealing with handling threads, it made me wish I had gone with Go
🙂 so, it's possible to write a CLI with Go and use the Automation API in Go to trigger/run stacks written in Typescript?brave-angle-33257
02/09/2021, 6:30 PMlemon-agent-27707
02/09/2021, 7:13 PMlemon-agent-27707
02/09/2021, 7:16 PMit's possible to write a CLI with Go and use the Automation API in Go to trigger/run stacks written in Typescript?Yes. See this example: https://github.com/pulumi/automation-api-examples/tree/main/go/local_program The local program is written in Go here (https://github.com/pulumi/automation-api-examples/tree/main/go/local_program/fargate), but it could be any other pulumi language.
brave-angle-33257
02/09/2021, 9:25 PMbrave-angle-33257
03/02/2021, 5:00 PMops -script services-refresh -env prod -region us-west-2
so the GO would (I assume) run an inline automation program, which will then run updates on several micro stacks, probably setting some config values to them as passed in by the CLI arguments. I'd like your advice on what language you think those should be, and if they are GO, I'm assuming the GO cli can basically sub-execute the automation scripts as an inline GO program. Does that sound reasonable? I think that seems more reasonable than using a GO cli to execute inline node automation programs (or maybe it doesn't really matter). But I'd like to avoid having to bake in the automation scripts to the GO cli. I'd like the CLI to be able to be ran from inside of different repos containing this type of configuration so it is portable to many projects. Any advice is appreciated 🙏lemon-agent-27707
03/02/2021, 5:13 PMbrave-angle-33257
03/02/2021, 5:41 PMlemon-agent-27707
03/02/2021, 6:56 PMbrave-angle-33257
03/02/2021, 11:22 PM