2
aws validate-template에 따르면 URL과 로컬 파일에서 동일한 템플릿을 확인하는 테스트를 수행했습니다.구름 형성 템플릿 유효성 검사
하지만 출력이 다릅니다.
직접 URL에서 테스트 :
$ aws cloudformation validate-template --template-url https://s3.amazonaws.com/cloudformation-templates-us-east-1/S3_Bucket.template
{
"Description": "AWS CloudFormation Sample Template S3_Bucket: Sample template showing how to create a publicly accessible S3 bucket. **WARNING** This template creates an S3 bucket. You will be billed for the AWS resources used if you create a stack from this template.",
"Parameters": []
}
하지만 다시 지역에 다운로드 및 테스트 할 때.
$ wget https://s3.amazonaws.com/cloudformation-templates-us-east-1/S3_Bucket.template
2014-12-16 14:48:27 (11.1 MB/s) - 'S3_Bucket.template' saved [652/652]
$ aws cloudformation validate-template --template-body S3_Bucket.template
A client error (ValidationError) occurred when calling the ValidateTemplate operation: Template format error: JSON not well-formed. (line 1, column 10)
어떤 아이디어가 있습니까?