Hi jaxxstorm, I don't get any errors. I just find this limitation in creating the resources in parallel, and I can't increase that number.
I'm making a program that uses the Pulumi Automation APIs to deploy my infrastructure and new resources without the CLI. I'm working with python.
In this way I initialize the stack and configure my environment to deploy the new resources.
print("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.