gorgeous-minister-41131
10/28/2021, 9:50 PMgorgeous-minister-41131
10/28/2021, 9:51 PMsparse-state-34229
10/29/2021, 1:54 AMKeyError
on an invalid require_output
? if I do this:
try:
foo = stack_output.require_output("doesnt_exist")
except KeyError:
# whatever
the key error seems to be unhandled:
value = Output.all(Output.from_input(name), self.outputs).apply(lambda l: l[1][l[0]]) # type: ignore
KeyError: 'doesnt_exist'
error: an unhandled error occurred: Program exited with non-zero exit code: 1
many-salesmen-89069
10/29/2021, 1:14 PMpulumi.registerStackTransformation
?
https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/pulumi/runtime/#registerResourcePackagesalmon-raincoat-19475
11/02/2021, 1:40 PMfancy-eve-82724
11/05/2021, 1:51 PMfancy-eve-82724
11/05/2021, 1:51 PMfancy-eve-82724
11/05/2021, 1:52 PMpulumi-python:dynamic:Resource (software-admin-london-z0):
error: Exception calling application: Object of type 'Unknown' is not JSON serializable
fancy-eve-82724
11/05/2021, 1:52 PMfancy-eve-82724
11/05/2021, 1:53 PMfancy-eve-82724
11/05/2021, 7:11 PMfancy-eve-82724
11/09/2021, 1:18 PMalternatives
but I may prefer to leave that be, and just use python 3.8 with Pulumi. There's the directive in Pulumi.yaml to specify the virtualenv directory, but is there are directive for specifying which interpreter to use?
2 runtime:
3 name: python
4 options:
5 virtualenv: venv
fancy-eve-82724
11/09/2021, 1:29 PMPULUMI_PYTHON_CMD
environment variable will docold-minister-39214
11/09/2021, 8:38 PMconfig.require_secret
on a structured object? i.e. if I use pulumi config set --secret --path things.thing1.token secret_value
is there a way to do config.require_secret('things.thing1.token')
? When I do that a “Missing required configuration variable” error. My searches in the docs and in code on github have come up with nothing. Figured I’d ask before diving into SDK source code.sticky-bear-14421
11/10/2021, 2:49 PMabundant-book-94104
11/12/2021, 1:44 AMfresh-actor-58531
11/17/2021, 6:46 AMfresh-actor-58531
11/17/2021, 6:50 AMimportant-magician-41327
11/17/2021, 9:27 AMimportant-magician-41327
11/18/2021, 9:50 AMfierce-market-67222
11/19/2021, 7:01 AMFailed to resolve python version command: fork/exec bin/python: no such fie or directory
full-sugar-56177
11/19/2021, 11:47 AMlb_sg = aws.ec2.get_security_group(
tags={"Name": "my-lb"}"
)
sg = aws.ec2.SecurityGroup(
"web-lb",
vpc_id=vpc_id,
description="Enable HTTP access from Load Balancer",
ingress=[
aws.ec2.SecurityGroupIngressArgs(
protocol="tcp",
from_port=args.port,
to_port=args.port,
cidr_blocks=[lb_sg.id)],
)
],
egress=[
aws.ec2.SecurityGroupEgressArgs(
protocol="-1",
from_port=0,
to_port=0,
cidr_blocks=["0.0.0.0/0"],
)
],
)
important-magician-41327
11/22/2021, 11:22 AMimport pulumi
import pulumi_aws as aws
main = aws.ec2.Subnet("main",
vpc_id=aws_vpc["main"]["id"],
cidr_block="10.0.1.0/24",
tags={
"Name": "Main",
})
Unfortunately specify the name of the resource does not work in my case, what Do I miss?
#Create VPC
vpc = aws.ec2.Vpc("vpc_1",
cidr_block="10.0.1.0/24",
)
vpc = aws.ec2.Vpc("vpc_2",
cidr_block="10.0.2.0/24",
)
#create WANem subnet
subnet_vpc1 = aws.ec2.Subnet("vpc_1",
vpc_id=vpc["vpc_1"].id,
cidr_block="10.0.1.0/24",
availability_zone=available.names[0],
)
#create WANem subnet
subnet_vpc2 = aws.ec2.Subnet("vpc_2",
vpc_id=vpc["vpc_2"].id,
cidr_block="10.0.2.0/24",
availability_zone=available.names[0],
)
My goal is to reference the VPC by the name, not by object. How can I do this?important-magician-41327
11/23/2021, 7:51 AMbulky-policeman-29913
11/24/2021, 4:16 PMbulky-policeman-29913
11/24/2021, 4:18 PMnutritious-shampoo-16116
11/25/2021, 3:09 PMRuntimeError: Task <Task pending name='Task-63' coro=<run_pulumi_func() running at /home/$USER/.local/share/virtualenvs/cmw2Vtk-i/lib/python3.9/site-packages/pulumi/runtime/stack.py:45> cb=[_run_until_complete_cb() at /usr/lib/python3.9/asyncio/base_events.py:184]> got Future <Task pending name='Task-760' coro=<get_resource.<locals>.do_get() running at /home/$USER/.local/share/virtualenvs/cmw2Vtk-i/lib/python3.9/site-packages/pulumi/runtime/resource.py:231> cb=[<TaskWakeupMethWrapper object at 0x7f8f73b7fdc0>()]> attached to a different loop
any idea?nutritious-shampoo-16116
11/25/2021, 3:11 PMnutritious-shampoo-16116
11/25/2021, 3:38 PMself = <pulumi.runtime.mocks.MockMonitor object at 0x7f0727a5ee80>
request = tok: "pulumi:pulumi:getResource"
args {
fields {
key: "urn"
value {
string_value: "urn:pulumi:dev::totoro::aws:ec2/vpc:Vpc$aws:ec2/routeTable:RouteTable::dvusea1-totoro-priv-route-table"
}
}
}
def Invoke(self, request):
# Ensure we have an event loop on this thread because it's needed when deserializing resource references.
_ensure_event_loop()
args = rpc.deserialize_properties(request.args)
if request.tok == "pulumi:pulumi:getResource":
registered_resource = self.resources.get(args["urn"])
if registered_resource is None:
> raise Exception(f"unknown resource {args['urn']}")
E Exception: unknown resource urn:pulumi:dev::totoro::aws:ec2/vpc:Vpc$aws:ec2/routeTable:RouteTable::dvusea1-totoro-priv-route-table
this the exception I am seeingnutritious-shampoo-16116
11/25/2021, 3:40 PMnutritious-shampoo-16116
11/25/2021, 3:40 PMfreezing-van-87649
11/25/2021, 4:59 PMnutritious-shampoo-16116
11/25/2021, 5:12 PM