I have a serverless specification with a nested stack, I want to define Type: AWS :: AppSync :: Resolver using RequestMappingTemplateS3Location and ResponseMappingTemplateS3Location, and the templates are in s3. When I update the template the stack does not update the cloudformation.
Resource:
AppSyncResolverTestStack:
Type: AWS::CloudFormation::Stack
DependsOn:
- GraphQlApi
- GraphQlSchema
Properties:
Parameters:
MappingTemplatesURL:
Fn::Join:
- "/"
- - "s3:/"
- ${self:provider.deploymentBucket}
- 'etc'
- ${opt:stage}
- 'mapping_templates_extra'
GraphQlApiId:
Fn::GetAtt:
- GraphQlApi
- ApiId
TemplateURL:
Fn::Join:
- "/"
- - "https://s3.amazonaws.com"
- ${self:provider.deploymentBucket}
- 'etc'
- ${opt:stage}
- 'cf-resolvers-2.yml'
Nested
Parameters:
MappingTemplatesURL:
Type: String
GraphQlApiId:
Type: String
Resources:
FCSYSAPIGraphQlResolverFinancialRequest:
Type: AWS::AppSync::Resolver
Properties:
ApiId:
Ref: GraphQlApiId
TypeName: Mutation
FieldName: FinanceDocumentsApi
DataSourceName: "FCFinanceApi"
RequestMappingTemplateS3Location:
Fn::Join:
- "/"
- - Ref: MappingTemplatesURL
- "fc-finance"
- "FinanceDocuments.request.vm"
ResponseMappingTemplateS3Location:
Fn::Join:
- "/"
- - Ref: MappingTemplatesURL
- "fc-finance"
- "FinanceDocuments.response.vm"
I expect that when I update the template in s3 and deploy my project the cloudformation is updated, but it is maintained with the previous code.