Skip to content

Releases: sudoblark/sudoblark.terraform.module.aws.s3_files

Initial module setup

17 Sep 18:18
bed610a
Compare
Choose a tag to compare

Description

The initial release of the s3_files module.

Changelog available here.

TL; DR

A new terraform module which allows easy upload of local both templated and plain files into s3.

NEW

  • For each dictionary provided, this module:
    • Uploads from source_folder and source_file to destination_bucket at destination_key
    • Optionally uses terraform templating to replace file contents

Please see examples folder for example instantiation of module.

SUPPORTED MODULE DATA STRUCTURE

Data structure
---------------
A list of dictionaries, where each dictionary has the following attributes:

REQUIRED
---------
- name:                 : Friendly name used through Terraform for instantiation and cross-referencing of resources,
                          only relates to resource naming within the module.
- source_folder         : Which folder where the {source_file} lives.
- source_file           : The path under {source_folder} corresponding to the file to upload.
- destination_key       : Key in S3 bucket to upload to.
- destination_bucket    : The S3 bucket to upload the {source_file} to.

OPTIONAL
---------
- template_input        : A dictionary of variable input for the template file needed for instantiation (leave blank if no template required)

FEEDBACK

Submit suggestions for improvements to [email protected].