Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

serverless-default-aws-resource-properties

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-default-aws-resource-properties

Set default properties a given CloudFormation resource should have based on type

  • 0.0.11
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
66
decreased by-59.01%
Maintainers
1
Weekly downloads
 
Created
Source

CircleCI Coverage Status npm version

serverless-default-aws-resource-properties

This plugin allows you to set default properties a given CloudFormation resource should have based on type.

Usage

Install the plugin:

npm install -D serverless-default-aws-resource-properties

Register the plugin in serverless.yml:

plugins:
  - serverless-default-aws-resource-properties

Example:

custom:
  defaultAwsProperties:
    # Enable SSE and block public access for all S3 buckets
    - Type: AWS::S3::Bucket
      Properties:
        BucketEncryption:
          ServerSideEncryptionConfiguration:
            - ServerSideEncryptionByDefault:
                SSEAlgorithm: AES256
        PublicAccessBlockConfiguration:
          BlockPublicAcls: true
          BlockPublicPolicy: true
          IgnorePublicAcls: true
          RestrictPublicBuckets: true
    # Add logging configuration to all S3 buckets except resource with
    # logical ID 'LoggingBucket'
    - Type: AWS::S3::Bucket
      Exclude:
        - LoggingBucket
      Properties:
        LoggingConfiguration:
          DestinationBucketName:
            Ref: LoggingBucket

Keywords

FAQs

Package last updated on 01 Sep 2020

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