0.1.0 • Published 2 years ago
serverless-default-aws-resource-properties v0.1.0
serverless-default-aws-resource-properties
DEPRECATION NOTICE: please use serverless-default-aws-resource-attributes instead, as it supports a superset of the functionality provided by this plugin. This plugin will no longer be maintained.
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
0.0.30
2 years ago
0.1.0
2 years ago
0.0.29
3 years ago
0.0.28
3 years ago
0.0.27
3 years ago
0.0.26
3 years ago
0.0.25
3 years ago
0.0.24
3 years ago
0.0.23
3 years ago
0.0.22
3 years ago
0.0.21
3 years ago
0.0.20
3 years ago
0.0.19
3 years ago
0.0.18
3 years ago
0.0.17
3 years ago
0.0.16
3 years ago
0.0.15
4 years ago
0.0.14
4 years ago
0.0.13
4 years ago
0.0.12
4 years ago
0.0.11
4 years ago
0.0.10
4 years ago
0.0.9
4 years ago
0.0.8
4 years ago
0.0.7
4 years ago
0.0.6
4 years ago
0.0.5
4 years ago
0.0.4
4 years ago
0.0.3
4 years ago
0.0.2
4 years ago
0.0.1
4 years ago