Hi there!
I use Python for developing scripts.
Could someone explan how to realize constraction like this by using CDK:
resource “aws_autoscaling_attachment” “title” {
count = length(data.terraform_remote_state.xxxx.outputs.asg_ids)
autoscaling_group_name = element(data.terraform_remote_state.xxxx.outputs.asg_ids, count.index)
alb_target_group_arn = data.terraform_remote_state.xxx.outputs.arn}
I have some problems:
- How to get length of the list of ids for ASG
- How to realize count.index