push-to-s3
axetrading/push-to-s3/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.
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
| Name | Type | Description | Default |
|---|---|---|---|
| bucket_name | string | AWS S3 Bucket name | required |
| config_paths | set(string) | Path or paths for the configuration files. | [] |
| push_json_files_to_s3 | bool | Whether to push JSON files to S3 | false |
| json_config_paths | list(string) | Paths to the directories containing JSON files to push to S3 | [] |
| objects_to_push | map(any) | A list of terraform objects that will be encoded to yaml and pushed to S3 | {} |
| block_public_acls | bool | Whether Amazon S3 should block public ACLs for this bucket. | true |
| canned_acl | string | Canned ACL to apply. Valid values are private, public-read, public-read-write, a | "bucket-owner-full-control" |
| create_bucket_policy | bool | Wheter to create a bucket policy | false |
| external_principals | list(string) | A list of external AWS principals that should have RW access to the newly create | [] |
| object_ownership | string | Object ownership. Valid values: BucketOwnerEnforced, BucketOwnerPreferred or Obj | "BucketOwnerEnforced" |
| push_objects_to_s3 | bool | Push terraform output to S3 | true |
| create_bucket | bool | Set to true to create the s3 bucket that will store the yaml files. | false |
| allow_external_principals | bool | Enable this to allow external principals to write to the newly created s3 bucket | false |
| block_public_policy | bool | Whether Amazon S3 should block public bucket policies for this bucket. | true |
| ignore_public_acls | bool | Whether Amazon S3 should ignore public ACLs for this bucket. | true |
| restrict_public_buckets | bool | Whether Amazon S3 should restrict public bucket policies for this bucket. | true |
| push_files_to_s3 | bool | Push files to S3 bucket | false |
bucket_name — AWS S3 Bucket name where the yaml files will be storedconfig_files — Configuration files keys and their URLsmetadata_objects — Objects pushed to S3 and their URLs