aws cloudformation create-stack --stack-name myteststack --template-body file:////home//local//test//sampletemplate.json

Base on AWS Cloud Formation documentation, we can use Nested Cloud Formation. However, it only says call the Nested Cloud Formation template by uploading the template JSON file to S3 bucket.

Is there other way to pass the Nested Cloud Formation template? Something like: (I guess..)

aws cloudformation create-stack --stack-name myteststack --template-body file:////home//local//test//main-template.json file:////home//local//test//nested-template.json

1 Answer 1


As far as I know this feature is not available yet. Cloudformation resolves the nested dependencies at AWS side, e.g

"Properties" : {
          "TemplateURL" : "https://s3.amazonaws.com/cloudformation-templates-us-east-1/S3_Bucket.template"

If you give it a local file as TemplateURL, AWS will not be able to resolve this TemplateURL on server side.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.