Add instanceid value to custom Resource

Hi All,

We are adding custom deployments of Api Gateway for different stages in the resource section, however we need new ID’s to make a new deployment in API-Gateway,

Serverless to do this appends the instanceid variable around the logical ID in the cloudformation template, e.g: ApiGatewayDeployment1562326297290

How can i do this in the resources without a custom plugin?

Per example

resources:
   Resources:
       APIGatewaySampleDeployment{instanceid}:
          Type: AWS::ApiGateway::Deployment
          Properties:
            RestApiId:
              Ref: ApiGatewayRestApi
           StageName: sample

Regards