few-alarm-62671
01/24/2022, 3:39 AMup
, destroy
or preview
during execution? Can’t sort this out and was wandering how to use lambda_.get_invocation
to differ what to do in each caseglamorous-forest-5773
01/27/2022, 9:20 AMpulumi.input_type
decorator to define internal datatypes.
I'm trying to use Pydantic + pulumi.input_type decorator to create schemas with validation + the ability to resolve nested Output attributes. But it looks like, the decorator is tampering the attributes which results in some weird behavior for pydantic models.gorgeous-minister-41131
02/02/2022, 1:49 AMcolor="always"
to actually print out color when using the print() method for on_output…. is there some trick to it?brainy-window-77332
02/02/2022, 10:21 AMOutput.all(net_interface.id).apply(lambda l: f"{l[0]}")
works fine when used on the right hand side of a parameter assignment in the instance creation but not in a function that is called as the right hand side of the content parameter when creating the bucket object.gorgeous-minister-41131
02/04/2022, 12:22 AMcrooked-pillow-11944
02/06/2022, 9:47 PMprehistoric-beach-79855
02/09/2022, 8:16 PMhallowed-animal-47023
02/10/2022, 12:53 PMhallowed-animal-47023
02/10/2022, 12:55 PMhallowed-animal-47023
02/10/2022, 12:55 PMhallowed-animal-47023
02/10/2022, 12:58 PMThis is the rules object value:
{'ingress_rules': [<pulumi_aws.ec2._inputs.SecurityGroupIngressArgs object at 0x11093eeb0>], 'egress_rules': [<pulumi_aws.ec2._inputs.SecurityGroupEgressArgs object at 0x1109662e0>]}
This is the ingress rules value:
[<pulumi_aws.ec2._inputs.SecurityGroupIngressArgs object at 0x11093eeb0>]
The ingress rules type is:
<class 'list'>
This is the egress rules value:
[<pulumi_aws.ec2._inputs.SecurityGroupEgressArgs object at 0x1109662e0>]
The egress rules type is:
<class 'list'>
sparse-state-34229
02/12/2022, 1:26 AMsparse-state-34229
02/12/2022, 1:27 AMfor rule in ingress_rules:
rules_objects['ingress_rules'].append(
ec2.SecurityGroupRule(
# ...
hallowed-animal-47023
02/12/2022, 12:42 PMgorgeous-minister-41131
02/14/2022, 11:09 PMgorgeous-minister-41131
02/14/2022, 11:09 PMgorgeous-minister-41131
02/14/2022, 11:10 PMgorgeous-minister-41131
02/14/2022, 11:10 PMTypeError: 'Output' object is not iterable, consider iterating the underlying value inside an 'apply'
sparse-gold-10561
02/15/2022, 5:22 PMdry-answer-66872
02/17/2022, 9:00 AMfew-pillow-1133
02/17/2022, 9:04 AMeks-cluster-sg-*
created by the cluster?
Also, by default if vpc_security_group_ids
isn't specified in the launch_template, the ``eks-cluster-sg-*` get used for each worker nodes.
Is there a way to specify both the cluster generated security group and a custom security group for each node during creation?hallowed-furniture-81921
02/19/2022, 12:46 AM❯ ls -la
drwxr-xr-x 9 wsheldon staff 288 Jan 20 16:26 .
drwxr-xr-x 10 wsheldon staff 320 Jan 20 16:30 ..
-rw-r--r-- 1 wsheldon staff 20709 Feb 18 15:46 __main__.py
drwxr-xr-x 3 wsheldon staff 96 Feb 18 15:46 __pycache__
drwxr-xr-x 4 wsheldon staff 128 Dec 29 08:56 docker
-rw-r--r-- 1 wsheldon staff 978 Jan 20 16:05 ecr.py
-rw-r--r-- 1 wsheldon staff 9516 Jan 20 16:05 iam.py
-rw-r--r-- 1 wsheldon staff 4368 Jan 20 15:51 s3.py
-rw-r--r-- 1 wsheldon staff 9944 Jan 20 16:05 vpc.py
How would one access s3_bucket.id
in the s3.py
file, from the __main__.py
filefierce-market-67222
02/21/2022, 1:21 PMdef set_deployment_env_var(obj, opts):
if obj["kind"] == "Deployment":
obj["spec"]["template"]["spec"]["containers[0]"] = [
{
"env": [
{
"name": "RELEASE_DATE",
"value": "....."
},
]
}
]
great-sunset-355
02/22/2022, 11:32 AMmypy
Code 1:
How can I cast or at least tell that output is a type Ouput[str]
and not Output[any]
?
r53_zone = aws.route53.get_zone(zone_id=SHARED_STACK_REF.require_output('hosted_zone_id'))
mypy output
Argument "zone_id" to "get_zone" has incompatible type "Output[Any]"; expected "Optional[str]"
Code 2
Why do I get an error and how to prevent that? It looks like that profile
attribute is dynamically created, correct?
ec1_provider = aws.Provider(
f"{PREFIX}-{ec1_region}", profile=aws.config.profile, region=ec1_region
)
mypy output:
__main__.py:27: error: Module has no attribute "profile"
kind-napkin-54965
02/22/2022, 12:25 PM.virtualenvs/pulumi39/lib/python3.9/site-packages/pulumi_auth0/_utilities.py", line 15, in <module>
import pulumi.runtime
ModuleNotFoundError: No module named 'pulumi.runtime'
Tried both py3.10 and py3.9, same. I am clearly missing something, can't figure out what exactly. Thanks for help!worried-xylophone-86184
02/23/2022, 1:42 PMapply
and all
function the individual values are supposed to be accessed. This makes sense when the values are being passed on to another Cloud resource. Function calls and traceback are in the thread. What is supposed to be done when the values are supposed to extracted from the Output
object and used for a non Pulumi operation like making POST calls?
I found an alternative where the output is being written to file proud-daybreak-22469
02/23/2022, 11:13 PMspot_instance_id
Output from a SpotInstanceRequest
and it always is returning None in the apply method I’m calling on it. What is the proper way to access this output? I’m trying to include the ARN of that instance as a resource in an AWS policy
I’m sure this question has been asked 1001 times, and I took a look at the input and output documentation but it didn’t help solve the problem.eager-jordan-39489
02/25/2022, 2:09 AMonObjectCreated
in Python? I couldn't find it..happy-alarm-59675
02/25/2022, 11:23 AMvictorious-exabyte-70545
03/01/2022, 10:40 PMvictorious-exabyte-70545
03/01/2022, 10:40 PMminiature-musician-31262
03/02/2022, 1:48 AMvictorious-exabyte-70545
03/02/2022, 3:24 PMpulumi stack export
pulumi stack import
great-queen-39697
03/02/2022, 3:58 PMpulumi.export(name: str, value: Any)
If you're looking to actually dump the stack's details as you would from the CLI, then that's the Automation API with pulumi.automation.LocalWorkspace.export_stack and pulumi.automation.LocalWorkspace.import_stackvictorious-exabyte-70545
03/02/2022, 6:12 PMgreat-queen-39697
03/02/2022, 6:27 PMvictorious-exabyte-70545
03/02/2022, 6:45 PM