{"author_name":"shigemk2","description":"The following shows outputing all CIDR blocks for every subnet ID in a VPC. 4.53.0 aws_subnet_ids\u306fset\u306a\u306e\u3067for_each\u304c\u4f7f\u3048\u305f data \"aws_subnet_ids\" \"example\" { vpc_id = var.vpc_id } data \"aws_subnet\" \"example\" { for_each = data.aws_subnet_ids.example.ids id = each.value } output \"subnet_cidr_blocks\" { value \u2026","type":"rich","provider_name":"Hatena Blog","version":"1.0","author_url":"https://blog.hatena.ne.jp/shigemk2/","title":"aws_subnets\u304b\u3089cidr_block\u3092\u53d6\u5f97\u3059\u308b","url":"https://www.shigemk2.com/entry/2023/10/31/190140","published":"2023-10-31 19:01:40","provider_url":"https://hatena.blog","height":"190","width":"100%","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2F2023%2F10%2F31%2F190140\" title=\"aws_subnets\u304b\u3089cidr_block\u3092\u53d6\u5f97\u3059\u308b - by shigemk2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://www.shigemk2.com/","blog_title":"by shigemk2","categories":["AWS"]}