Open linzhengen opened 3 years ago
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudfront_distribution
resource "aws_cloudfront_distribution" "s3_distribution" { ... ordered_cache_behavior { path_pattern = "/path1" ... } ordered_cache_behavior { path_pattern = "/path2" ... } # behavior id 変わらないように順で追加していく ordered_cache_behavior { path_pattern = "/path3" ... } }
ドキュメント
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudfront_distribution
例