New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@architect/plugin-storage-public

Package Overview
Dependencies
Maintainers
6
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@architect/plugin-storage-public

Architect serverless framework plugin that defines any number of arbitrary public S3 buckets

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
6
Created
Source

@architect/plugin-storage-public

Architect serverless framework plugin that defines any number of arbitrary public S3 buckets for your application

@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.

Installation

  1. Run: npm i @architect/plugin-storage-public

  2. Then add the following line to the @plugins pragma in your Architect project manifest (usually .arc):

Note, no @ in the plugin name!

@plugins
architect/plugin-storage-public
  1. Add a new @storage-public pragma

Define any number of S3 bucket names within @storage-public; the following characters are allowed: [a-zA-Z0-9_-]

@storage-public
public-data
sharedinfo

Accessing your bucket names

  • Because CloudFormation provisions these buckets, your bucket name will be reformatted and provided a GUID by AWS
  • 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)
    • Example: your app is named myapp, and your bucket is named public-data in your .arc file
    • Your Lambda(s) would read the ARC_STORAGE_PUBLIC_PUBLIC_DATA env var (which would be assigned a value similar to myappstaging-publicdatabucket-1f8394rh4qtvb)

Keywords

FAQs

Package last updated on 03 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc