Skip to content

saymedia/terraform-s3-dir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-s3-dir

terraform-s3-dir is a small utility that takes a directory of files and produces a configuration file for Terraform that will upload those files into a particular named S3 bucket.

It could be useful for using Terraform to deploy a static website to S3's website publishing feature.

This utility just generates the aws_s3_bucket_object configurations. It's up to the user to separately create the bucket into which the objects will be placed.

Installing

Pretty standard Go program:

  • go get github.com/saymedia/terraform-s3-dir
  • go install github.com/saymedia/terraform-s3-dir

Usage

Usage: terraform-s3-dir [-h] [-x glob patterns to exclude] <root dir> <bucket name>
 -h, --help
 -x, --exclude=glob patterns to exclude

About

Generates a Terraform config to upload a directory of files to an Amazon S3 bucket

Resources

License

Stars

Watchers

Forks

Packages

No packages published