From a blog post related to TheClassic (the best answer so far!), You should remember that if you are not generating your templates with something that can insert a valid timestamp instead of $ TIMESTAMP $, you must manually update it with timestamp or other unique identifier. Here is my functional example: it successfully deletes an existing deployment and creates a new one, but I will have to update these unique values โโmanually when I want to create another set of changes:
rDeployment05012019355: Type: AWS::ApiGateway::Deployment DependsOn: rApiGetMethod Properties: RestApiId: Fn::ImportValue: !Sub '${pApiCoreStackName}-RestApi' StageName: !Ref pStageName rCustomDomainPath: Type: AWS::ApiGateway::BasePathMapping DependsOn: [rDeployment05012019355] Properties: BasePath: !Ref pPathPart Stage: !Ref pStageName DomainName: Fn::ImportValue: !Sub '${pApiCoreStackName}-CustomDomainName' RestApiId: Fn::ImportValue: !Sub '${pApiCoreStackName}-RestApi'
source share