chore: get private ip address in CI/integrations/get_address.py
@@ -5,10 +5,11 @@ import boto3
def get_address_from_stack(stack_name: str) -> str:
stack = boto3.resource("cloudformation").Stack(stack_name)
- address = list(filter(lambda d: d["OutputKey"] == "DeterminedAddress", stack.outputs))[0][
+ instance_id = list(filter(lambda d: d["OutputKey"] == "MasterId", stack.outputs))[0][
"OutputValue"
- ] # type: str
- return address
+ ]
+ private_ip = boto3.resource("ec2").Instance(instance_id).private_ip_address # type: str
+ return private_ip
def main() -> None:
