Skip to content

Suggestion: Add ability to override settings of CloudFormation resources #2969

@qtangs

Description

@qtangs

While the auto-generated CloudFormation templates work well to get started, there are many scenarios where we want to override settings of the resources.

At the moment, the only override supported is for Task Definition.

Would be great if a similar method to that of Serverless Framework can be implemented for all resources:

You can override the specific CloudFormation resource to apply your own options (place all such extensions at resources.extensions section). For example, if you want to set AWS::Logs::LogGroup retention time to 30 days, override it with above table's Name Template.

functions:
  write-post:
    handler: handler.writePost
    events:
      - http:
          method: post
          path: ${self:service}/api/posts/new
          cors: true

resources:
  extensions:
    WriteDashPostLogGroup:
      Properties:
        RetentionInDays: '30'

https://www.serverless.com/framework/docs/providers/aws/guide/resources#override-aws-cloudformation-resource

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/deploymentIssues related to deploymentstype/featureIssues that are new feature requests.type/requestIssues that are created by customers.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions