{"id":19435021,"url":"https://github.com/neverendingqs/serverless-default-aws-resource-attributes","last_synced_at":"2025-04-24T20:32:25.086Z","repository":{"id":45137283,"uuid":"382989690","full_name":"neverendingqs/serverless-default-aws-resource-attributes","owner":"neverendingqs","description":"Set default attributes a given CloudFormation resource should have based on type","archived":false,"fork":false,"pushed_at":"2024-07-01T15:08:24.000Z","size":119,"stargazers_count":3,"open_issues_count":16,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-13T06:17:31.951Z","etag":null,"topics":["aws","cloudformation","serverless-framework","serverless-plugin"],"latest_commit_sha":null,"homepage":"","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/neverendingqs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"neverendingqs","patreon":null,"open_collective":null,"ko_fi":"neverendingqs","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2021-07-05T02:12:35.000Z","updated_at":"2024-07-31T08:40:37.000Z","dependencies_parsed_at":"2022-07-21T06:32:24.999Z","dependency_job_id":null,"html_url":"https://github.com/neverendingqs/serverless-default-aws-resource-attributes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neverendingqs%2Fserverless-default-aws-resource-attributes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neverendingqs%2Fserverless-default-aws-resource-attributes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neverendingqs%2Fserverless-default-aws-resource-attributes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neverendingqs%2Fserverless-default-aws-resource-attributes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neverendingqs","download_url":"https://codeload.github.com/neverendingqs/serverless-default-aws-resource-attributes/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250704913,"owners_count":21473785,"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":["aws","cloudformation","serverless-framework","serverless-plugin"],"created_at":"2024-11-10T14:49:01.398Z","updated_at":"2025-04-24T20:32:24.846Z","avatar_url":"https://github.com/neverendingqs.png","language":"JavaScript","funding_links":["https://github.com/sponsors/neverendingqs","https://ko-fi.com/neverendingqs"],"categories":[],"sub_categories":[],"readme":"[![CircleCI](https://circleci.com/gh/neverendingqs/serverless-default-aws-resource-attributes.svg?style=svg)](https://circleci.com/gh/neverendingqs/serverless-default-aws-resource-attributes)\n[![Coverage Status](https://coveralls.io/repos/github/neverendingqs/serverless-default-aws-resource-attributes/badge.svg?branch=master)](https://coveralls.io/github/neverendingqs/serverless-default-aws-resource-attributes?branch=main)\n[![npm version](https://badge.fury.io/js/serverless-default-aws-resource-attributes.svg)](https://badge.fury.io/js/serverless-default-aws-resource-attributes)\n\n# serverless-default-aws-resource-attributes\n\nThis plugin allows you to set default attributes a given CloudFormation resource\nshould have based on type.\n\nThis plugin **affects resources generated by Serverless**.\nFor example, any default attributes defined for S3 buckets will be applied to the Serverless-generated `ServerlessDeploymentBucket` bucket.\nYou are, however, able to exclude Serverless-generated resources using `Exclude:` (see below).\n\n## Usage\n\nInstall the plugin:\n\n```sh\nnpm install -D serverless-default-aws-resource-attributes\n```\n\nRegister the plugin in `serverless.yml`:\n\n```yaml\nplugins:\n  - serverless-default-aws-resource-attributes\n```\n\nExample:\n\n```yaml\ncustom:\n  defaultAwsAttributes:\n    # Enable SSE and block public access for all S3 buckets\n    # Also set a DeletionPolicy for all S3 buckets\n    - Type: AWS::S3::Bucket\n      DeletionPolicy: Retain\n      Properties:\n        BucketEncryption:\n          ServerSideEncryptionConfiguration:\n            - ServerSideEncryptionByDefault:\n                SSEAlgorithm: AES256\n        PublicAccessBlockConfiguration:\n          BlockPublicAcls: true\n          BlockPublicPolicy: true\n          IgnorePublicAcls: true\n          RestrictPublicBuckets: true\n    # Add logging configuration to all S3 buckets except resource with\n    # logical ID 'LoggingBucket'\n    - Type: AWS::S3::Bucket\n      Exclude:\n        - LoggingBucket\n      Properties:\n        LoggingConfiguration:\n          DestinationBucketName:\n            Ref: LoggingBucket\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneverendingqs%2Fserverless-default-aws-resource-attributes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneverendingqs%2Fserverless-default-aws-resource-attributes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneverendingqs%2Fserverless-default-aws-resource-attributes/lists"}