aws-samples / aws-secrets-manager-rotation-lambdas

Contains Lambda functions to be used for automatic rotation of secrets stored in AWS Secrets Manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Would be nice to be able to change the Runtime for the rotation function

umairrahmad opened this issue · comments

Here is the yaml configuration for deploying the AWS::Serverless::Application

  RDSSecretRotationService:
    Type: "AWS::Serverless::Application"
    Properties:
      Location:
        ApplicationId: arn:aws:serverlessrepo:region:id:applications/SecretsManagerRDSPostgreSQLRotationSingleUser
        SemanticVersion: 1.0.117
      Parameters:
        endpoint: !Sub "https://secretsmanager.${AWS::Region}.${AWS::URLSuffix}"
        functionName:
          Fn::Join:
            - ""
            - - Fn::ImportValue: !Sub ${ClusterImportPrefix}-ClusterResolvingName
              - "-rds-rotation-lambda"
        vpcSubnetIds:
          Fn::ImportValue: !Sub ${VPCImportPrefix}-PrivateSubnets
        vpcSecurityGroupIds: !Ref RDSSecurityGroup

where can the documentation for the parameter list supported by this AWS resource (AWS::serverless::application)

I tried to add both

        Runtime: "python3.7"
        runtime: "python3.7"

failed to do so

commented

Thank you for your feedback. The SAM template does not currently take Runtime as a parameter. We have noted this as a feature request.

For people landing here, you can upgrade by changing the

SemanticVersion: 1.0.117

Secrets Manager now supports RunTime Key from CFN template. Please refer to this article here