{"_id":"@architect/macro-storage-public","_rev":"7-c2cc35c6ae2df333a506dd0c2720186f","name":"@architect/macro-storage-public","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.0":{"name":"@architect/macro-storage-public","version":"0.0.0","keywords":["amazon","api gateway","arc","architect","aws","ci","cloud functions","cloud","deployment","lambda","macro","node_modules","npm","plugin","serverless"],"license":"Apache-2.0","_id":"@architect/macro-storage-public@0.0.0","maintainers":[{"name":"brianleroux","email":"b@brian.io"},{"name":"dam","email":"kristoferjoseph@gmail.com"},{"name":"kborchers","email":"kris.borchers@gmail.com"},{"name":"ryanblock","email":"rblock+npm@gmail.com"}],"homepage":"https://arc.codes","bugs":{"url":"https://github.com/architect/macro-storage-public/issues"},"dist":{"shasum":"7ca7f13dc90d9905c7ab9ee79bc346cec548597e","tarball":"https://registry.npmjs.org/@architect/macro-storage-public/-/macro-storage-public-0.0.0.tgz","fileCount":6,"integrity":"sha512-4a2N9aFrtFYdO/7kX9K2bpgMH/Q2zI0W8A769sWfLMtrzUVIj/k21cCVPOiLhDHJl/ogcXE06cEaXpmpXAxPtg==","signatures":[{"sig":"MEUCIQCOH8DChnLwyIk+v+1wYrCzmLdhYXSy+Jsqs5kJnUH+MgIgQBL2bb6GCliM2Ku6grmaCRDnKs0Y6NVwmibR8b8qHpU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17837,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJerkEcCRA9TVsSAnZWagAAKckQAJt20OtHK270qRg0UBwm\n1TRmEpjy+m1P7UgWOvHZcsr2hLzIHt3lDG+GGFDqNmDyBfMgw0H1Acuy2br6\n0q92dvqNi8Ryn3HDrpTvAM5NiarNu/ffnHuYKIG2SSVe6rEvLCFbsexNRdLf\ndhdrsyGTIETlXKyShFT987AHERWiy55f74OCEtUBp//tRAjP/lVkLN8lMKQm\nG+oRptXl9303V4xNhZ8oRU4p2zMo1p0MQrQ3aXrLZDWU499p3Ncn2pUmVwef\nYNn1kObmTalmblDGhQE7l+ckWk5//a7QOJ0QChYt9pPaaVXHwYTILykIclrR\n1lmd6OQX8dtuGSYv7cyj8Nj2+ohe3jSr8GCuraxJ/nX+r9aJWQLp9xsn9ppP\nEK778Vd7zfC64hvxb5VbdVyGQRBr27ehEySXMV/Tg7rIufi7LsTkx6LX6fo+\npcQdbIOXQ8v8LAXLyrHrZjiEJD7Ar0a+8XeORftLbUwq7xRhYKtYYRNEkRHq\nwuQZUq1v2gA1vEiHbgIAHgDxAqQCHgghBFoJYY35okBKTYLNCvf0rI8pF2q5\nLKb/84+rtFGBINwrkYNp9tQAYhcFeEFFbWk4wW1HqTeA8UpNOafnAp4Gd6VV\nkj106N+rruI2S6wlXNyqwMl5PTGOWJ0UGhd97dVQyvN0EUdbIE7MPyD3knzs\n16hS\r\n=IJUw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","scripts":{"lint":"eslint . --fix","test":"npm run lint"},"_npmUser":{"name":"ryanblock","email":"rblock+npm@gmail.com"},"deprecated":"Please use @architect/plugin-storage-public","repository":{"url":"git+https://github.com/architect/macro-storage-public.git","type":"git"},"_npmVersion":"6.14.4","description":"Architect serverless framework macro that defines any number of arbitrary public S3 buckets","directories":{},"_nodeVersion":"12.16.2","dependencies":{"@architect/utils":"~1.5.4"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^6.8.0"},"_npmOperationalInternal":{"tmp":"tmp/macro-storage-public_0.0.0_1588478235647_0.8181829954344997","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"@architect/macro-storage-public","version":"1.0.0","keywords":["amazon","api gateway","arc","architect","aws","ci","cloud functions","cloud","deployment","lambda","macro","node_modules","npm","plugin","serverless"],"license":"Apache-2.0","_id":"@architect/macro-storage-public@1.0.0","maintainers":[{"name":"brianleroux","email":"b@brian.io"},{"name":"dam","email":"kristoferjoseph@gmail.com"},{"name":"kborchers","email":"kris.borchers@gmail.com"},{"name":"ryanblock","email":"rblock+npm@gmail.com"}],"homepage":"https://arc.codes","bugs":{"url":"https://github.com/architect/macro-storage-public/issues"},"dist":{"shasum":"8da66086f3d16966d94f7537851530954edeab45","tarball":"https://registry.npmjs.org/@architect/macro-storage-public/-/macro-storage-public-1.0.0.tgz","fileCount":6,"integrity":"sha512-UvPzusNqgVwH62Z5ATNRAkme5O6AeOMoRa8r1JyYQfU51Ozsq3Hzpujoe4dmrzRxxq8DJ6UHHADLh8mv/8iWYg==","signatures":[{"sig":"MEYCIQCgw2F8KgNbn58GyyWhXJ9+WE0gLy8HCJkAY1Dk0rNVsQIhAJSeyHTXs+158PoqXtuc4iFX4271dbLX026PqEJsf0CG","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8SWzCRA9TVsSAnZWagAAPw0P/2BKcX5kwUzJ5FKhDM6d\nPVV0xvjC/D0Rq4e2asjuM7ftuLSAs6ZAId7fywllpWemOCPe/SHKlqarR+X/\nrPHv27UL4aKMKLxbHAPJgW0XrByfjQndkNf1u/Syq1X6ZtKeZfpAqL7q7Ugf\nDTKBRa/2Mouwb+DhsUDkx6lJFVgbRnPdWKMXPPPueyYXGDsWuuq3cDIch8Kf\nhYtbTs9xyc9RFe4tp93ByqHi7vzOsL8Hi9CIf3xIgRrgMFJbwCqmBJUFxsF6\ndK+ExvV0l04xem29NLC2lOC/nha3PlL7ThdCEhsMprGu0R/x8UjYd/Gp37S5\nHVDorVMG39Dl/niihT7wBdXnRj7ENU8tggsLDVmR9ve1jDUhx6d/uRF6FVWs\ngpDsAUC67WH1oJtYcNQpwyqk+cXt6Os8TSKGIueLilnKytezfPg0NelqgxRN\nzx8Uvu9u3tio2TDuPy3EqVD2YH3cy3Lwm5LDt4q6BNANHsoFeJ9pcWUnYftO\nanTsFf48MYHiwJMD5W0mCsDvbf0lcMOZ/OS1BGjCnNay9ZbK3rl7/8NROA5C\nbzwANW2dKDYxi4HxKvgcHjzq7plpYSXo3pv614fMiGcFOgh6mgbOqPPM92+7\n/79YYrL1ZYyHf+9Xt0pyxeIflh5JtFmfnayszb8op2G6x6REnzZ6SIgZWCAm\npXcq\r\n=kpwF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"0e25d442c9bde072940789fb6236e536260ffca6","scripts":{"lint":"eslint . --fix","test":"npm run lint"},"_npmUser":{"name":"ryanblock","email":"rblock+npm@gmail.com"},"deprecated":"Please use @architect/plugin-storage-public","repository":{"url":"git+https://github.com/architect/macro-storage-public.git","type":"git"},"_npmVersion":"6.14.4","description":"Architect serverless framework macro that defines any number of arbitrary public S3 buckets","directories":{},"_nodeVersion":"12.18.0","dependencies":{"@architect/utils":"~1.5.9"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.3.0"},"_npmOperationalInternal":{"tmp":"tmp/macro-storage-public_1.0.0_1592862131336_0.5987643425084845","host":"s3://npm-registry-packages"}}},"time":{"created":"2020-05-03T03:57:15.484Z","modified":"2026-03-03T19:03:57.511Z","0.0.0":"2020-05-03T03:57:15.796Z","1.0.0":"2020-06-22T21:42:11.470Z"},"bugs":{"url":"https://github.com/architect/macro-storage-public/issues"},"license":"Apache-2.0","homepage":"https://arc.codes","keywords":["amazon","api gateway","arc","architect","aws","ci","cloud functions","cloud","deployment","lambda","macro","node_modules","npm","plugin","serverless"],"repository":{"url":"git+https://github.com/architect/macro-storage-public.git","type":"git"},"description":"Architect serverless framework macro that defines any number of arbitrary public S3 buckets","maintainers":[{"email":"b@brian.io","name":"brianleroux"},{"email":"kristoferjoseph@gmail.com","name":"dam"},{"email":"kris.borchers@gmail.com","name":"kborchers"},{"email":"rblock+npm@gmail.com","name":"ryanblock"},{"email":"ryan+architectci@begin.com","name":"architectci"},{"email":"maj.fil@gmail.com","name":"filmaj"},{"email":"simon.macdonald@gmail.com","name":"macdonst"},{"email":"ryan.bethel@gmail.com","name":"ryanbethel"}],"readme":"[<img src=\"https://s3-us-west-2.amazonaws.com/arc.codes/architect-logo-500b@2x.png\" width=500>](https://www.npmjs.com/package/@architect/architect)\n\n## [`@architect/macro-storage-public`](https://www.npmjs.com/package/@architect/macro-storage-public)\n\n> Architect serverless framework macro that defines any number of arbitrary **public** S3 buckets for your application\n\n[`@architect/macro-storage-public`](https://www.npmjs.com/package/@architect/macro-storage-public) provisions **public** S3 buckets for your application. If you need to provision **private** S3 buckets, check out [`@architect/macro-storage-private`](https://www.npmjs.com/package/@architect/macro-storage-private).\n\n\n## Installation\n\n1. Run: `npm i @architect/macro-storage-public`\n\n2. Then add the following line to the `@macros` pragma in your Architect project manifest (usually `.arc`):\n\n> Note, no `@` in the macro name!\n\n```\n@macros\narchitect/macro-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_<bucketname>` 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","readmeFilename":"readme.md"}