{"id":20194993,"url":"https://github.com/mich0232/terraform-aws-package","last_synced_at":"2025-10-24T01:03:04.149Z","repository":{"id":154750529,"uuid":"570538586","full_name":"Mich0232/terraform-aws-package","owner":"Mich0232","description":"AWS Package module creates a zip archive from provided sources, tracks it for changes and stores it a a S3 object.","archived":false,"fork":false,"pushed_at":"2023-03-24T12:59:58.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-13T19:21:28.142Z","etag":null,"topics":["aws","aws-lambda","aws-s3","terraform","terraform-module"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mich0232.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-25T12:37:05.000Z","updated_at":"2023-03-20T23:27:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"8cae0ed1-1b57-4f1a-858e-68ad933a6c93","html_url":"https://github.com/Mich0232/terraform-aws-package","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mich0232%2Fterraform-aws-package","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mich0232%2Fterraform-aws-package/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mich0232%2Fterraform-aws-package/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mich0232%2Fterraform-aws-package/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mich0232","download_url":"https://codeload.github.com/Mich0232/terraform-aws-package/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241629736,"owners_count":19993708,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","aws-lambda","aws-s3","terraform","terraform-module"],"created_at":"2024-11-14T04:15:17.447Z","updated_at":"2025-10-24T01:03:04.081Z","avatar_url":"https://github.com/Mich0232.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform AWS Package module\n\nThis module creates an S3 object based on local source provided in the configuration. You can specify the list of files on which to look for changes or exclude from build. Currently only zip output is supported. Keep in mind that you need to have permissions to create a zip package in provided output directory.\n\n## Example\n\n```terraform\nmodule \"package\" {\n  source = \"github.com/Mich0232/terraform-aws-package.git\"\n\n  deployment_bucket_id     = aws_s3_bucket.deployment_bucket.id\n  deployment_bucket_prefix = \"myApp\"\n  source_dir               = \"../src\"\n  output_dir               = \"../outputs\"\n\n  hash_sources = [\n    \"*.json\",\n    \"templates/*.html\",\n    \"**/*.py\",\n  ]\n\n  excluded_paths = [\n    \"node_modules\",\n    \"**/__pycache__\",\n    \"venv/\"\n  ]\n}\n```\n\n## Provisioned Resources\n- S3 Object\n\n## Input Variables\n\n| Name | Description |\n| --- | --- |\n| `deployment_bucket_id` | ID of S3 bucket in which to store the object. |\n| `deployment_bucket_prefix` | Custom S3 bucket prefix, used for Key creation (Optional) |\n| `output_dir` | Local output dir. Zip file will be created there. |\n| `source_dir` | Path to source directory. |\n| `hash_sources` | List of paths with hash sources patterns. |\n| `source_hash` | Hash value of source files. |\n| `excluded_paths` | List of paths that should be excluded (As patterns). |\n\n## Outputs\n\n| Name | Description |\n| --- | --- |\n| `s3_key` | S3 object key. |\n| `output_base64sha256` | Zip archive hash. Can be used to detect changes in a source directory. |\n| `source_hash` | Calculated hash of sources. |\n| `hash_files_paths` | List of files used as a hash source (valid only if `source_hash` was not provided in the input) |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmich0232%2Fterraform-aws-package","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmich0232%2Fterraform-aws-package","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmich0232%2Fterraform-aws-package/lists"}