Takomo
GitHub
API
Deployment targets
Organizations
Search…
What is Takomo?
Getting started
Installation
Quick start
Tutorial
Configuration
AWS credentials
Directory structure
Stacks and stack groups
Project configuration
Stack properties
Name
Regions
Template
Template bucket
Command role
Account ids
Depends
Parameters
Tags
Inherit tags
Termination protection
Timeout
Capabilities
Stack policy
Ignore
Obsolete
Hooks
Data
Schemas
Variables and templating
Introduction
Handlebars syntax
Environment variables
Command-line variables
Partials
Helpers
Available variables
Parameter resolvers
Built-in parameter resolvers
Stack output resolver
External stack output resolver
Command resolver
File contents resolver
Hook output resolver
SSM parameter resolver
Secret resolver
Custom parameter resolvers
Hooks
Built-in hooks
Custom hooks
Sharing data between hooks
Validation schemas
Custom validation schemas
Command-line usage
Common options
Deploy stacks
Undeploy stacks
Prune stacks
List stacks
Detect drift
Generate IAM policies
Inspect stack configuration
Inspect stack dependencies
Support
Getting help
Troubleshooting
Development
Change log
Powered By
GitBook
File contents resolver
The file contents resolver reads a file and uses the file contents as a parameter value.
Properties
Here are the properties of the file contents resolver:
Key
Required
Type
Description
resolver
yes
string
Resolver name, this must be
file-contents
.
file
yes
string
Path to file. Can be an absolute path or a path relative to the project directory.
confidential
no
boolean
Conceal the resolved parameter value from logs, defaults to
false
immutable
no
boolean
Mark the parameter as immutable, defaults to
false
Examples
Use contents of the
/tmp/commit.txt
file as parameter value:
parameters
:
CommitHash
:
resolver
:
file
-
contents
file
:
/tmp/commit.txt
Use a relative file path:
parameters
:
Code
:
resolver
:
file
-
contents
file
:
code.txt
Previous
Command resolver
Next
Hook output resolver
Last modified
9mo ago
Export as PDF
Copy link
Outline
Properties
Examples