skillfed

sceptre-file-resolver

A Sceptre resolver to retrieve file content

sceptre-file-resolver v1.0.6 115.1K downloads/30d#12,270 on PyPI2
Permissive license Apache2 Active released

What it is and what it does

This package extends Sceptre, a CloudFormation orchestration tool, with a file resolver that injects file contents directly into stack parameters. Unlike Sceptre's built-in file_contents resolver, which only handles plain text, this resolver automatically detects file type by extension and parses JSON and YAML files into structured objects, passing them to parameters as native types. It also supports fetching files from remote URLs via HTTP, making it useful for pulling configuration from S3 buckets or other web sources.

You use it by adding a YAML tag `!file` to parameter definitions in your Sceptre stack configs, pointing to either a local file path or a URL. The resolver handles the fetch and parse transparently, so your CloudFormation templates receive properly typed data without manual conversion steps.

Use it for:

  • Load JSON configuration objects from S3 into CloudFormation stack parameters without manual parsing.
  • Inject YAML-formatted tag lists or metadata into stack parameters from a shared repository file.
  • Fetch remote policy documents or template snippets from a URL and pass them as strings to parameters.
  • Parameterize CloudFormation stacks with structured data from local files during deployment.
  • Centralize configuration management by referencing external JSON/YAML files in Sceptre stack definitions.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A Sceptre resolver plugin that retrieves file contents from local paths or URLs and parses them as strings, JSON, or YAML objects based on file extension.

Yes, if you use Sceptre and need to inject structured file contents (JSON, YAML) or remote files into CloudFormation parameters. The low install friction, active maintenance, permissive license, and zero known vulnerabilities make it a safe addition. Not relevant if you only use plain-text file injection or do not use Sceptre.

Install

sceptre-file-resolver on PyPI

pip

pip install sceptre-file-resolver

uv

uv add sceptre-file-resolver

poetry

poetry add sceptre-file-resolver

Installing sceptre-file-resolver

Before you install

Low install friction with a pure-Python wheel distribution. Actively maintained as of 2026-08-10 with no known vulnerabilities. Depends on requests and sceptre, both widely used packages.

License in practice

Licensed under Apache2 (permissive), allowing use in commercial and private projects with minimal restrictions.

Quickstart

pip install sceptre-file-resolver

# In a Sceptre config YAML:
parameters:
  config_data: !file path/to/config.json
  tags: !file https://example.com/tags.yaml

Requires sceptre to be installed and configured; the resolver is registered as a Sceptre plugin and only works within Sceptre stack configurations.

Verify before relying

  • Whether remote file fetching supports authentication (API keys, headers, or credentials).
  • Error handling behavior when files are missing, malformed, or network requests fail.
  • Support for Python versions beyond 3.6 and 3.7 (classifiers list only those two).

Package facts

License Apache2 (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 2 — requests, sceptre
Maintenance actively maintained — 1,621 days since the last release
Last repo commit
First released
Downloads 115,083/month — #12,270 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: sceptre_file_resolver-1.0.6-py2.py3-none-any.whl

Keywords: sceptre, sceptre-resolver

Environment :: ConsoleIntended Audience :: DevelopersNatural Language :: EnglishProgramming Language :: Python :: 3.6Programming Language :: Python :: 3.7

Tags

sceptre resolver file contentsload json yaml from file sceptreremote file resolver cloudformationsceptre parameter file injectionfetch url contents sceptrefile resolver plugin sceptre
cloudformationsceptre-plugininfrastructure-as-code

More Build Tools packages