7
votes

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbparametergroup.html

and

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbclusterparametergroup.html

Unless I am doing it wrong - I cannot set parameters groups name via CF templates, while I can easily set it via GUI and via CLI (https://docs.aws.amazon.com/cli/latest/reference/rds/create-db-parameter-group.html). Additionally, for whatever reason, db cluster parameters group expects a non-empty parameters.

Is there a way to pass both name and parameters via CloudFormation?

1

1 Answers

0
votes

For the name, add a tag called Name. For the parameters I end up just adding a unimportant setting to its default value:

  ParameterGroup:
    Type: AWS::RDS::DBParameterGroup
    Properties:
      ...
      Parameters:
        application_name: ''
      Tags:
      - Key: Name
        Value: "MyParameterGroupName"