Post

AWS - CodeDevelop - CloudFormation Template - Nested Stack

[toc]


Template - Nested Stack

1
2
3
4
5
6
7
8
9
10
11
12
13
// root.json
{
    "AWSTemplateFormatVersion" : "2010-09-09",
    "Resources" : {
        "myStack" : {
	       "Type" : "AWS::CloudFormation::Stack",
	       "Properties" : {
              "TemplateURL" : "https://s3.amazonaws.com/stacker730/noretain.json",
              "TimeoutInMinutes" : "60"
	       }
        }
    }
}

Template - multinest.json

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// multinest.json
{
    "AWSTemplateFormatVersion" : "2010-09-09",
    "Resources" : {
        "myStack" : {
	       "Type" : "AWS::CloudFormation::Stack",
	       "Properties" : {
              "TemplateURL" : "https://s3.amazonaws.com/stacker730/s3static.json",
              "TimeoutInMinutes" : "60"
	       }
        },
        "myStack2" : {
            "Type" : "AWS::CloudFormation::Stack",
            "Properties" : {
               "TemplateURL" : "https://s3.amazonaws.com/stacker730/noretain.json",
               "TimeoutInMinutes" : "60"
            }
         }
    }
}

.

This post is licensed under CC BY 4.0 by the author.

Comments powered by Disqus.