Overrides
Introduction
Stacktape uses Cloudformation to deploy your infrastructure into AWS. Each Stacktape resource definition (specified in
the resources
section) translates into multiple low-level AWS Cloudformation resource definitions. Overrides allow you
to set or override the properties of these low-level Cloudformation resource definitions.
Usage
Let's say we want to override the timeout of the AWS Lambda resource which is part of myFunction
Stacktape resource in
the following configuration:
Copy
resources:myFunction:type: functionproperties:packaging:type: stacktape-lambda-buildpackproperties:entryfilePath: path/to/my/lambda.ts
In the interactive config editor, you can see the translated Cloudformation template for this config. You can see that
myFunction
resource contains 2 Cloudformation resources: MyFunctionFunction (AWS::Lambda::Function) and
MyFunctionLogGroup (AWS::Logs::LogGroup).
Since we are looking to override the timeout, we will specify override for MyFunctionFunction resource
Copy
resources:myFunction:type: functionproperties:packaging:type: stacktape-lambda-buildpackproperties:entryfilePath: path/to/my/lambda.tsoverrides:MyFunctionFunction:Timeout: 15