Questions tagged [nested-stack]

19 questions
6
votes
3 answers

AWS Cloudformation - Stack vs NestedStack

I thought that this would be answered quite clearly out there on the internet. But I have found no sufficient answer to when to use one type of stacks and when to use another type of stacks. So the main question is what is the difference between…
2
votes
1 answer

Passing parameters from parent stack to child stack in nested stack - Cloudformation

I am trying to pass the paramters to internet facing elb using root. I have created a nested stack with a root.yml acting as root and vpc and elb are the child stack. I am trying to pass the parameters from root to elb.yml but it gives an error…
1
vote
0 answers

AWS Cloudformation nested stacks templates - how do handle local development and versioning?

Just started a simple AWS serverless project to test it out, so I'm developing locally and hosting the project on GitLab. Wanna try nested stacks just to split current template file into smaller pieces, but TemplateUrl property value must be an url…
fudo
  • 2,254
  • 4
  • 22
  • 44
1
vote
1 answer

Error understanding Apigateway and nested stack on AWS cloudformation

I working into decouple a big template with lambdas that use apigateway AWS. I resolve multiple errors about nested stack process, but currently error its not clear. Could you check whats its the problem into definitions? Main stack show general…
1
vote
1 answer

Use Nested Stack to separate API gateway error with ouse on other stacks

I have a error when try to deploy a nested stacks does one have APIGateway setups, and others has lambdas services MainTemplate Resources: SubStackAPIDev: Type: 'AWS::CloudFormation::Stack' Properties: TemplateURL: https://c.... …
1
vote
1 answer

Cloudformation - Passing Parameters to second level stack

I'm trying to pass some parameters to nested stacks. My current configuration is the following: root template: Parameters: SubnetIds: Description: The array of Subnet IDs assigned to the lambdas Type: List
user1341300
  • 375
  • 1
  • 5
  • 19
1
vote
1 answer

How to use Mappings in AWS CloudFormation templates in nested stacks

Let's consider the following Mappings and FindInMap are used in the same AWS CloudFormation template. They will work. Now, consider the VpcIds under Mappings are in the master.yaml template, and I am trying to create the EgressOnlyInternetGateway…
Rafiq
  • 1,380
  • 4
  • 16
  • 31
1
vote
2 answers

CloudFormation nested stacks outputs limit

Facts: CloudFormation Outputs limit its 60 per template. I have 90 resources to export so I created the following structure: parent_stack.template (contains the below nested stacks) stack01.template (contains 45 resources and its…
epinal
  • 1,415
  • 1
  • 13
  • 27
1
vote
1 answer

What access is necessary to update a CloudFormation stack with nested stacks

Using nested stacks is a best practice in AWS CloudFormation, and indeed they solve many problems (code reuse, stack limits, etc). It's also generally a good idea to do any sort of updates with the minimal access necessary for that update (using the…
Claude
  • 8,806
  • 4
  • 41
  • 56
1
vote
1 answer

Can UsePreviousTemplate (in CloudFormation UpdateStack) be used together with nested stacks

Using nested stacks is a best practice in AWS CloudFormation, and indeed they solve many problems (code reuse, stack limits, etc). When updating a stack (either through UpdateStack or ChangeSets), one can provide UsePreviousTemplate=True in order to…
Claude
  • 8,806
  • 4
  • 41
  • 56
0
votes
0 answers

Is it possible to make an ecs ContainerDefinition reusable in cloudformation?

Currently I'm having an ECS TaskDefinition with one ContainerDefinition running in my ECS Cluster. This is all defined in an cloudformation .json file and working fine. Now I would like to add a sidecar pod to this application, which is running an…
0
votes
1 answer

AWS Cloudformation - nested stacks - stack keeps failing deploy but not reason is given

I got a simple cloudformation stack made of only two nested stacks, one for the hosting and serving of a single page application web app and the other for the authentication logic (for now it only define a Cognito user pool resource). The auth…
0
votes
2 answers

AWS Cloudformation nested stack deployment template path

I'm trying to deploy nested stack using command aws cloudformation deploy --stack-name "${STACK_NAME}" --template-file "${S3_ROOT_TEMPLATE}" --parameter-overrides ${PARAMS[@]} --region ${REGION} But despite the S3_ROOT_TEMPLATE having proper url,…
Shiva
  • 105
  • 1
  • 9
0
votes
1 answer

Assign tags to all resources of a nested stack

I'm trying to make use of NestedStack but I can't find the way to propagate the tags to all the resources of the stack as the NestedStack construct does not have the field tags as it's the case in the construct Stack. So, for example, I can't…
Rshad Zhran
  • 496
  • 4
  • 17
0
votes
2 answers

AWS CloudFormation NestedStacks vs Modules

In CloudFormation both nested stacks and modules encourage reusability by creating common components. From the AWS documentation it is not coming out when to use what. Any suggestions?
1
2