push-to-s3

axetrading/push-to-s3/axetrading

Terraform Module HCL AXETRADING

A simple Terraform module that reads the contents of yaml or json files (or both) and turns it into objects that can be used later with the terraform_remote_state data source.

Install
module "push-to-s3" {
source = "axetrading/push-to-s3/axetrading"
version = "1.4.0"
}
plain text: /constructs/tfmod-axetrading-push-to-s3-axetrading/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-axetrading-resource-configurations A simple Terraform module that uploads yaml files from multiple paths into a s3 bucket. The YAML file should contain list, maps or any kind of object that can be used on a later date, in other terraform modules. This files can be referenced by using the following terraform data sources: aws_s3_object `` data "aws_s3_object" "object" { bucket = "s3_bucket_name" key = "s3_object_key" } ` aws_s3_objects ` data "aws_s3_objects" "my_objects" { bucket = "s3_bucket_name" } `` Requirements | Name | Version | |------|---------| | terraform | >= 1.2.5 | | aws | >= 4.25.0 | | local | >= 2.2.0 | Providers | Name | Version | |------|---------| | aws | >= 4.25.0 | Resources | Name | Type | |------|------| | aws_s3_bucket.main | resource | | aws_s3_bucket_owne

Inputs (17)
NameTypeDescriptionDefault
bucket_namestringAWS S3 Bucket name required
config_pathsset(string)Path or paths for the configuration files. []
push_json_files_to_s3boolWhether to push JSON files to S3false
json_config_pathslist(string)Paths to the directories containing JSON files to push to S3[]
objects_to_pushmap(any)A list of terraform objects that will be encoded to yaml and pushed to S3{}
block_public_aclsboolWhether Amazon S3 should block public ACLs for this bucket.true
canned_aclstringCanned ACL to apply. Valid values are private, public-read, public-read-write, a"bucket-owner-full-control"
create_bucket_policyboolWheter to create a bucket policyfalse
external_principalslist(string)A list of external AWS principals that should have RW access to the newly create[]
object_ownershipstringObject ownership. Valid values: BucketOwnerEnforced, BucketOwnerPreferred or Obj"BucketOwnerEnforced"
push_objects_to_s3boolPush terraform output to S3true
create_bucketboolSet to true to create the s3 bucket that will store the yaml files.false
allow_external_principalsboolEnable this to allow external principals to write to the newly created s3 bucketfalse
block_public_policyboolWhether Amazon S3 should block public bucket policies for this bucket.true
ignore_public_aclsboolWhether Amazon S3 should ignore public ACLs for this bucket.true
restrict_public_bucketsboolWhether Amazon S3 should restrict public bucket policies for this bucket.true
push_files_to_s3boolPush files to S3 bucketfalse
Outputs (3)
bucket_name — AWS S3 Bucket name where the yaml files will be stored
config_files — Configuration files keys and their URLs
metadata_objects — Objects pushed to S3 and their URLs
Resources (6)
aws_s3_bucketaws_s3_bucket_ownership_controlsaws_s3_bucket_policyaws_s3_bucket_public_access_blockaws_s3_bucket_versioningaws_s3_object
Details
FrameworkTerraform Module
LanguageHCL
Version1.4.0
Cloud AXETRADING
Total downloads371
Inputs17
Outputs3
Resources6
Examples1
Namespaceaxetrading
Updated