full-continent-98866
04/27/2022, 11:36 AMbillowy-army-68599
04/27/2022, 2:21 PMfull-continent-98866
04/27/2022, 2:40 PMprint("successfully initialized stack")
# for inline programs, we must manage plugins ourselves
print("installing plugins...")
stack.workspace.install_plugin("aws", "v5.2.0")
print("plugins installed")
# set stack configuration specifying the AWS region to deploy
print("setting up config")
stack.set_config("aws:region", auto.ConfigValue(value=AWS_REGION))
# stack.set_config("aws:profile", auto.ConfigValue(value=AWS_PROFILE))
print("config set")
print("refreshing stack...")
stack.refresh(on_output=print)
print("refresh complete")
if destroy:
print("destroying stack...")
stack.destroy(on_output=print)
print("stack destroy complete")
sys.exit()
print("updating stack...")
up_res = stack.up(parallel=100, on_output=print)
print(f"update summary: \n{json.dumps(up_res.summary.resource_changes, indent=4)}")
I tried it with the Pulumi.up command adding the paraparallel flag, but it doesn't work.
I've set that parameter to 1, for example, and this causes Pulumi create one resource at a time, which is fine.
When I increase this value, to for example 100, Pulumi doesn't create a number greater than 6 resources at the same time.billowy-army-68599
04/27/2022, 3:00 PMlemon-agent-27707
04/27/2022, 3:17 PMpulumi up
full-continent-98866
04/27/2022, 3:23 PMlemon-agent-27707
04/30/2022, 1:54 PMfull-continent-98866
05/02/2022, 7:07 PMbillowy-army-68599
05/02/2022, 7:13 PMfull-continent-98866
05/02/2022, 8:50 PMbillowy-army-68599
05/04/2022, 1:45 PMfull-continent-98866
05/04/2022, 1:46 PMbillowy-army-68599
05/04/2022, 1:47 PMfull-continent-98866
05/09/2022, 5:59 PM