{"id":19437874,"url":"https://github.com/architect/plugin-storage-public","last_synced_at":"2025-06-18T21:32:53.857Z","repository":{"id":57098556,"uuid":"260794258","full_name":"architect/plugin-storage-public","owner":"architect","description":"Architect serverless framework macro that defines any number of arbitrary public S3 buckets","archived":false,"fork":false,"pushed_at":"2023-11-03T02:33:27.000Z","size":26,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-10-07T19:36:56.482Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/architect.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":".github/contributing.md","funding":null,"license":"LICENSE","code_of_conduct":".github/code_of_conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-02T23:33:55.000Z","updated_at":"2024-09-30T00:04:45.000Z","dependencies_parsed_at":"2022-08-20T17:31:18.391Z","dependency_job_id":null,"html_url":"https://github.com/architect/plugin-storage-public","commit_stats":null,"previous_names":["architect/macro-storage-public"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/architect%2Fplugin-storage-public","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/architect%2Fplugin-storage-public/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/architect%2Fplugin-storage-public/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/architect%2Fplugin-storage-public/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/architect","download_url":"https://codeload.github.com/architect/plugin-storage-public/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223968120,"owners_count":17233445,"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":[],"created_at":"2024-11-10T15:16:09.195Z","updated_at":"2024-11-10T15:16:09.997Z","avatar_url":"https://github.com/architect.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[\u003cimg src=\"https://assets.arc.codes/architect-logo-500b@2x.png\" width=500\u003e](https://www.npmjs.com/package/@architect/architect)\n\n## [`@architect/plugin-storage-public`](https://www.npmjs.com/package/@architect/plugin-storage-public)\n\n\u003e Architect serverless framework plugin that defines any number of arbitrary **public** S3 buckets for your application\n\n[`@architect/plugin-storage-public`](https://www.npmjs.com/package/@architect/plugin-storage-public) provisions **public** S3 buckets for your application. If you need to provision **private** S3 buckets, check out [`@architect/plugin-storage-private`](https://www.npmjs.com/package/@architect/plugin-storage-private).\n\n\n## Installation\n\n1. Run: `npm i @architect/plugin-storage-public`\n\n2. Then add the following line to the `@plugins` pragma in your Architect project manifest (usually `.arc`):\n\n\u003e Note, no `@` in the plugin name!\n\n```\n@plugins\narchitect/plugin-storage-public\n```\n\n3. Add a new `@storage-public` pragma\n\nDefine any number of S3 bucket names within `@storage-public`; the following characters are allowed: `[a-zA-Z0-9_-]`\n\n```\n@storage-public\npublic-data\nsharedinfo\n```\n\n\n## Accessing your bucket names\n\n- Because CloudFormation provisions these buckets, your bucket name will be reformatted and provided a GUID by AWS\n- Thus, to deterministically access your bucket name, your Lambdas will be assigned a `ARC_STORAGE_PUBLIC_\u003cbucketname\u003e` env var (with any dashes converted to underscores)\n  - Example: your app is named `myapp`, and your bucket is named `public-data` in your `.arc` file\n  - Your Lambda(s) would read the `ARC_STORAGE_PUBLIC_PUBLIC_DATA` env var (which would be assigned a value similar to `myappstaging-publicdatabucket-1f8394rh4qtvb`)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchitect%2Fplugin-storage-public","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farchitect%2Fplugin-storage-public","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchitect%2Fplugin-storage-public/lists"}