I have the following scenario:
subnets = DataAwsSubnetIds(self, 'subnets',
vpc_id = "vpc-xxxxxx",
filter = [{
"name" : "tag:Name",
"values" : ["private*"]
}]
)
And after I retreieve the subnets id, I would like to use it on a Instance.
ec2 = Instance(self, instance,
ami = xxxxxx,
instance_type = "t3.micro",
subnet_id = Token.as_string(subnets.ids),
)
This will be causing an error as this value is a SET of ids.
How can I get a single subnet_id to pass to my Instance ?
Thanks