Hi Guys! I'm trying to extract a resource property...
# python
b
Hi Guys! I'm trying to extract a resource property (output) and I don't understand what I am doing wrong. 😞 Thanks! here is the code that i'm executing:
Copy code
for subnet_id in private_subnets:
    
    subnet = ec2.get_subnet(id=subnet_id)
    az = subnet.availability_zone

    ### ENI
    eni_name=...
    eni=ec2.NetworkInterface(
        resource_name=eni_name,
        subnet_id=subnet_id,
        ...
    )

    my_ip=eni.private_ip.apply(lambda private_ip: f"my-{private_ip}")
    print(my_ip)
b
@bored-vase-40478 you need to do the
print
inside the
apply
Copy code
my_ip=eni.private_ip.apply(lambda private_ip: print(f"my-{private_ip}")
b
reading...