Stacktape
Stacktape


Overrides



Stacktape uses Cloudformation to deploy your infrastructure to AWS. Each Stacktape resource you define in the resources section of your stacktape.yml file is translated into one or more underlying Cloudformation resources. Overrides allow you to modify the properties of these generated Cloudformation resources.

You can view the Cloudformation resources that a Stacktape resource translates into in the config editor or on the overview page of your deployed stack.

How to use overrides

Imagine you want to override the timeout of an AWS Lambda function that is part of the myFunction Stacktape resource in the following configuration:

resources:
myFunction:
type: function
properties:
packaging:
type: stacktape-lambda-buildpack
properties:
entryfilePath: path/to/my/lambda.ts

In the interactive config editor, you can inspect the translated Cloudformation template for this configuration. You will see that the myFunction resource contains two Cloudformation resources: MyFunctionFunction (of type AWS::Lambda::Function) and MyFunctionLogGroup (of type AWS::Logs::LogGroup).

Tree view of compiled Cloudformation template

To override the timeout, you would add an override for the MyFunctionFunction resource:

resources:
myFunction:
type: function
properties:
packaging:
type: stacktape-lambda-buildpack
properties:
entryfilePath: path/to/my/lambda.ts
overrides:
MyFunctionFunction:
Timeout: 15

Contents

  •  How to use overrides