bored-vase-40478
07/25/2022, 6:48 PMfor 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)
billowy-army-68599
07/25/2022, 7:01 PMprint
inside the apply
my_ip=eni.private_ip.apply(lambda private_ip: print(f"my-{private_ip}")
bored-vase-40478
07/25/2022, 7:02 PM