layers.yaml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. AWSTemplateFormatVersion: "2010-09-09"
  2. Transform: AWS::Serverless-2016-10-31
  3. Description: Amazon S3 Find and Forget Layers
  4. Resources:
  5. AWSSDKLayer:
  6. Type: AWS::Serverless::LayerVersion
  7. Properties:
  8. LayerName: AWSSDK
  9. Description: Latest confirmed compatible AWS SDK
  10. ContentUri: ../backend/lambda_layers/aws_sdk/
  11. CompatibleRuntimes:
  12. - python3.9
  13. RetentionPolicy: Delete
  14. BotoUtils:
  15. Type: AWS::Serverless::LayerVersion
  16. Properties:
  17. LayerName: BotoUtils
  18. Description: Helpful boto3 utils
  19. ContentUri: ../backend/lambda_layers/boto_utils/
  20. CompatibleRuntimes:
  21. - python3.9
  22. RetentionPolicy: Delete
  23. CustomResourceHelper:
  24. Type: AWS::Serverless::LayerVersion
  25. Properties:
  26. LayerName: CustomResourceHelper
  27. Description: Helper for CloudFormation Custom Resources
  28. ContentUri: ../backend/lambda_layers/cr_helper/
  29. CompatibleRuntimes:
  30. - python3.9
  31. RetentionPolicy: Delete
  32. Decorators:
  33. Type: AWS::Serverless::LayerVersion
  34. Properties:
  35. LayerName: Decorators
  36. Description: Helpful function decorators
  37. ContentUri: ../backend/lambda_layers/decorators/
  38. CompatibleRuntimes:
  39. - python3.9
  40. RetentionPolicy: Delete
  41. Outputs:
  42. AWSSDKLayer:
  43. Description: AWS SDK Layer
  44. Value: !Ref AWSSDKLayer
  45. BotoUtils:
  46. Description: Boto Utils Layer
  47. Value: !Ref BotoUtils
  48. CustomResourceHelper:
  49. Description: Custom Resource Helper Layer
  50. Value: !Ref CustomResourceHelper
  51. Decorators:
  52. Description: Decorators Layer
  53. Value: !Ref Decorators