{"id":24524240,"url":"https://github.com/spacechunks/packer-plugin-s3","last_synced_at":"2025-06-10T22:34:38.956Z","repository":{"id":256258663,"uuid":"854202577","full_name":"spacechunks/packer-plugin-s3","owner":"spacechunks","description":"HashiCorp Packer plugin providing a provisioner for S3 file retrival","archived":false,"fork":false,"pushed_at":"2025-06-06T19:23:43.000Z","size":61,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-06T20:27:42.880Z","etag":null,"topics":["packer","packer-plugin","packer-provisioner","s3"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spacechunks.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,"zenodo":null}},"created_at":"2024-09-08T16:42:01.000Z","updated_at":"2025-06-06T19:23:23.000Z","dependencies_parsed_at":"2024-09-09T22:21:21.212Z","dependency_job_id":"17868762-e424-4496-972e-923641191d0a","html_url":"https://github.com/spacechunks/packer-plugin-s3","commit_stats":null,"previous_names":["spacechunks/packer-plugin-s3"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacechunks%2Fpacker-plugin-s3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacechunks%2Fpacker-plugin-s3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacechunks%2Fpacker-plugin-s3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacechunks%2Fpacker-plugin-s3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spacechunks","download_url":"https://codeload.github.com/spacechunks/packer-plugin-s3/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacechunks%2Fpacker-plugin-s3/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259164552,"owners_count":22815379,"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":["packer","packer-plugin","packer-provisioner","s3"],"created_at":"2025-01-22T04:18:56.794Z","updated_at":"2025-06-10T22:34:38.946Z","avatar_url":"https://github.com/spacechunks.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# packer-plugin-s3\n\nThis plugin provides a simple provisioner, that retrieves objects from s3 and stores them at the given destination.\n\n**Example**\n\n```hcl\npacker {\n  required_plugins {\n    s3 = {\n      version = \"2.0.5\"\n      source = \"github.com/spacechunks/s3\"\n    }\n  }\n}\n\nprovisioner \"s3\" {\n  profile = \"\u003csome-profile\u003e\" // optional\n  objects {\n    source = \"mybucket/myfolder/somefile\"\n    destination = \"/etc/myobject2\"\n  }\n  objects {\n    source = \"mybucket2/myfolder/somefile\"\n    destination = \"/etc/myobject2\"\n  }\n}\n```\n\n**Configuration**\n\nYou can either define credentials in your AWS config file.\nThis example uses access and secret keys, but you can also define IAM credentials and SSO.\n\n```\n[profile test]\naws_access_key_id = my_secret_key\naws_secret_access_key = my_access_key\nservices = services\nregion = my_region\n\n[services services]\ns3 =\n  endpoint_url = https://my_endpoint_url\n```\n\nor define them using environment variables\n\n```\nexport AWS_ACCESS_KEY_ID=my_secret_key\nexport AWS_SECRET_ACCESS_KEY=my_access_key\nexport AWS_ENDPOINT_URL=https://my_endpoint_url\nexport AWS_REGION=my_region\n```\n\n## Development \n\nRunning the tests:\n* `make test` to run acceptance and unit tests\n* `make test_unit` to only run unit tests\n* `make test_acc` to only run acceptance tests (needs to have Docker installed)\n\nInstalling the plugin locally:\n* `make install`\n\nWhen changing the provisioners config you have to run `make gen` after, so the `hcl2spec.go` file gets generated.\n\nIf you encounter the following error while trying to build the plugin \n\n```\ncannot use cty.Value{} (value of type cty.Value) as gob.GobEncoder value in variable declaration\n```\n\ncheckout this link https://github.com/hashicorp/packer-plugin-sdk/issues/187\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspacechunks%2Fpacker-plugin-s3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspacechunks%2Fpacker-plugin-s3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspacechunks%2Fpacker-plugin-s3/lists"}