title: Error: 'Topic does not exist' using SAM template for SNS topic creation?
body: <p>I have been trying to create SNS topic and publishing messages to those topics? But after deploying on dev, I get error 'Topic doesn't exist'?</p>
  <p><strong>SNS Topic SAM code:</strong></p>
  <pre class="lang-yaml prettyprint-override"><code>    ItemServiceTopic:
          Type: AWS::SNS::Topic
          Properties:
              DisplayName: 'ItemServiceTopic'
              FifoTopic: true
              KmsMasterKeyId: !Ref KMSDecryptKey
              TopicName: 'item-service-dev-topic.fifo'
  </code></pre>
  <p><strong>Lambda which will be used to publish messages to SNS</strong></p>
  <pre class="lang-yaml prettyprint-override"><code>    PostItem:
          Type: AWS::Serverless::Function
          Properties:
              Handler: handlers/item-handler.postItem
              Layers:
                  - !Ref NodeDependenciesLayer
              Events:
                  PostItemApi:
                      Type: Api
                      Properties:
                          RestApiId: !Ref ItemServiceApiG
                          Path: /v0/items
                          Method: POST
              Policies:
                  - AWSSecretsManagerGetSecretValuePolicy:
                      SecretArn: !Sub 'arn:aws:secretsmanager:${AWS::Region}:${AWS::AccountId}:secret:ItemServiceSecrets-d768io'
                  
                  - KMSDecryptPolicy:
                      KeyId: !Ref KMSDecryptKey 
  
                  - SNSPublishMessagePolicy:
                      TopicName: !Sub 'arn:aws:sns:${AWS::Region}:${AWS::AccountId}:item-service-topic.fifo'
  </code></pre>
  <p>Is there a way where the above error can be resolved ?</p>
  <p><em><strong>Note: I have added SNS to an existing SAM template file , but I feel its not creating the SNS and hence while running the 'postItem' handler it fails saying no SNS topic found</strong></em></p>