title: AWS CloudFormation Template format error: Unresolved resource dependencies <s3 bucket> in the Resources block of the template
body: <p>All that I am trying to do is follow this guide to get Atlassian services (Jira/JSM/Confluence) up and running on AWS <a href="https://aws-quickstart.github.io/quickstart-atlassian-jira/" rel="nofollow noreferrer">https://aws-quickstart.github.io/quickstart-atlassian-jira/</a></p>
  <p>I have followed all the details precisely and am currently at the point where I need to create the stack on cloudformation. When I paste in the .yaml url I get the error in the title, pointing me to an issue with the resources. I have looked through it and I'm not sure what the problem is, help would be appreciated.</p>
  <pre><code>Resources:
    VPCStack:
      Type: AWS::CloudFormation::Stack
      Properties:
        TemplateURL: !Sub
          - https://${QSS3BucketName}.${QSS3Region}.amazonaws.com/${QSS3KeyPrefix}submodules/quickstart-atlassian-services/templates/quickstart-vpc-for-atlassian-services.yaml
          - QSS3Region: !If
              - GovCloudCondition
              - s3-us-gov-west-1
              - s3
        Parameters:
          AccessCIDR: !Ref 'AccessCIDR'
          AvailabilityZones: !Join
            - ','
            - !Ref 'AvailabilityZones'
          ExportPrefix: !Ref 'ExportPrefix'
          KeyPairName: !Ref 'KeyPairName'
          PrivateSubnet1CIDR: !Ref 'PrivateSubnet1CIDR'
          PrivateSubnet2CIDR: !Ref 'PrivateSubnet2CIDR'
          PublicSubnet1CIDR: !Ref 'PublicSubnet1CIDR'
          PublicSubnet2CIDR: !Ref 'PublicSubnet2CIDR'
          VPCCIDR: !Ref 'VPCCIDR'
          BastionHostRequired: !Ref 'BastionHostRequired'
  
    JiraDCStack:
      DependsOn: VPCStack
      Type: AWS::CloudFormation::Stack
      Properties:
        TemplateURL: !Sub
          - https://${QSS3BucketName}.${QSS3Region}.amazonaws.com/${QSS3KeyPrefix}templates/quickstart-jira-dc.template.yaml
          - QSS3Region: !If [&quot;GovCloudCondition&quot;, &quot;s3-us-gov-west-1&quot;, &quot;s3&quot;]
        Parameters:
          CatalinaOpts: !Ref 'CatalinaOpts'
          CidrBlock: !Ref 'AccessCIDR'
          CloudWatchIntegration: !Ref 'CloudWatchIntegration'
          ClusterNodeInstanceType: !Ref 'ClusterNodeInstanceType'
          ClusterNodeMax: !Ref 'ClusterNodeMax'
          ClusterNodeMin: !Ref 'ClusterNodeMin'
          ClusterNodeVolumeSize: !Ref 'ClusterNodeVolumeSize'
          CustomDnsName: !Ref 'CustomDnsName'
          DBEngine: !Ref DBEngine
          DBEngineVersion: !Ref DBEngineVersion
          DBInstanceClass: !Ref 'DBInstanceClass'
          DBIops: !Ref 'DBIops'
          DBMasterUserPassword: !Ref 'DBMasterUserPassword'
          DBMaxIdle: !Ref 'DBMaxIdle'
          DBMaxWaitMillis: !Ref 'DBMaxWaitMillis'
          DBMinEvictableIdleTimeMillis: !Ref 'DBMinEvictableIdleTimeMillis'
          DBMinIdle: !Ref 'DBMinIdle'
          DBMultiAZ: !Ref 'DBMultiAZ'
          DBPassword: !Ref 'DBPassword'
          DBPoolMaxSize: !Ref 'DBPoolMaxSize'
          DBPoolMinSize: !Ref 'DBPoolMinSize'
          DBRemoveAbandoned: !Ref 'DBRemoveAbandoned'
          DBRemoveAbandonedTimeout: !Ref 'DBRemoveAbandonedTimeout'
          DBStorage: !Ref 'DBStorage'
          DBStorageEncrypted: !Ref 'DBStorageEncrypted'
          DBStorageType: !Ref 'DBStorageType'
          DBTestOnBorrow: !Ref 'DBTestOnBorrow'
          DBTestWhileIdle: !Ref 'DBTestWhileIdle'
          DBTimeBetweenEvictionRunsMillis: !Ref 'DBTimeBetweenEvictionRunsMillis'
          DeploymentAutomationRepository: !Ref 'DeploymentAutomationRepository'
          DeploymentAutomationBranch: !Ref 'DeploymentAutomationBranch'
          DeploymentAutomationKeyName: !Ref 'DeploymentAutomationKeyName'
          DeploymentAutomationPlaybook: !Ref 'DeploymentAutomationPlaybook'
          DeploymentAutomationCustomParams: !Ref 'DeploymentAutomationCustomParams'
          ExportPrefix: !Ref 'ExportPrefix'
          HostedZone: !Ref 'HostedZone'
          InternetFacingLoadBalancer: !Ref 'InternetFacingLoadBalancer'
          JiraProduct: !Ref 'JiraProduct'
          JiraVersion: !Ref 'JiraVersion'
          JvmHeapOverride: !Ref 'JvmHeapOverride'
          KeyPairName: !Ref 'KeyPairName'
          MailEnabled: !Ref 'MailEnabled'
          QSS3BucketName: !Ref 'jira-bucket-aws'
          QSS3KeyPrefix: !Ref 'QSS3KeyPrefix'
          SSLCertificateARN: !Ref 'SSLCertificateARN'
          TomcatAcceptCount: !Ref 'TomcatAcceptCount'
          TomcatContextPath: !Ref 'TomcatContextPath'
          TomcatDefaultConnectorPort: !Ref 'TomcatDefaultConnectorPort'
          TomcatEnableLookups: !Ref 'TomcatEnableLookups'
          TomcatMaxThreads: !Ref 'TomcatMaxThreads'
          TomcatMinSpareThreads: !Ref 'TomcatMinSpareThreads'
          TomcatProtocol: !Ref 'TomcatProtocol'
          TomcatRedirectPort: !Ref 'TomcatRedirectPort'
          BastionHostRequired: !Ref 'BastionHostRequired'
  
  </code></pre>