# Connect Serverless Framework and CDK with SST

**URL:** <https://discourse.sst.dev/t/connect-serverless-framework-and-cdk-with-sst/2100>\
**Category:** Chapter Comments\
**Created:** [October 8, 2020, 12:10am UTC](https://discourse.sst.dev/t/connect-serverless-framework-and-cdk-with-sst/2100 "2020-10-08T00:10:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jayair](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/jayair/32/9_2.png) [@jayair](https://discourse.sst.dev/u/jayair)\
**Post date:** [October 8, 2020, 12:10am UTC](https://discourse.sst.dev/t/connect-serverless-framework-and-cdk-with-sst/2100/1 "2020-10-08T00:10:57Z")

</div>

Link to chapter — [https://serverless-stack.com/chapters/connect-serverless-framework-and-cdk-with-sst.html](https://serverless-stack.com/chapters/connect-serverless-framework-and-cdk-with-sst.html)

---

<div class="post-metadata">

**Author:** ![mathewgries](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/mathewgries/32/419_2.png) [@mathewgries](https://discourse.sst.dev/u/mathewgries)\
**Post date:** [December 15, 2020, 2:06am UTC](https://discourse.sst.dev/t/connect-serverless-framework-and-cdk-with-sst/2100/2 "2020-12-15T02:06:48Z")

</div>

Just dropping this here for anyone that had the same issue as me in VS Code  
If cfn-lint does not recognize custom variables such as !ImportValue, this should fix your issue

> <https://github.com/aws-cloudformation/aws-cfn-lint-visual-studio-code/issues/46#issuecomment-480470905>
>
> I have installed this extension on Visual Studio Code. Although it is installed properly, the plugin does not recognize more advanced...

---

<div class="post-metadata">

**Author:** ![jayair](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/jayair/32/9_2.png) [@jayair](https://discourse.sst.dev/u/jayair)\
**Post date:** [January 3, 2021, 12:46am UTC](https://discourse.sst.dev/t/connect-serverless-framework-and-cdk-with-sst/2100/3 "2021-01-03T00:46:38Z")

</div>

Awesome. Thanks for sharing!

---

<div class="post-metadata">

**Author:** ![ipsherman](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/ipsherman/32/1449_2.png) [@ipsherman](https://discourse.sst.dev/u/ipsherman)\
**Post date:** [February 21, 2021, 4:48pm UTC](https://discourse.sst.dev/t/connect-serverless-framework-and-cdk-with-sst/2100/4 "2021-02-21T16:48:59Z")

</div>

Just got here, and, in the process of following the tutorial pretty closely, I don’t have a `services/notes/resources/` directory, let alone a `services/notes/resources/cognito-policy.yml` file.

I do have a `/resources` directory at the same level as the `/infrastructure` and `/services` directories, but all that’s in there is the `api-gateway-errors.yml` (created in the [Handle API Gateway CORS Errors](https://serverless-stack.com/chapters/handle-api-gateway-cors-errors.html) chapter). I’m guessing that, at the `mv tests libs mocks node_modules services/notes` step in the [Getting Production Ready](https://serverless-stack.com/chapters/getting-production-ready.html) chapter, I should have also moved the `resources` directory (i.e. change the `mv` command to `mv tests libs mocks node_modules resources services/notes`)?

Also, if this is indeed the first time we’re `touch`ing the `cognito-policy.yml` file, it might be more clear to indicate that we’re creating the file in this chapter rather than just updating it? That said, I may have missed its creation somewhere along the way too…

Thanks!

---

<div class="post-metadata">

**Author:** ![jayair](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/jayair/32/9_2.png) [@jayair](https://discourse.sst.dev/u/jayair)\
**Post date:** [May 15, 2021, 10:47pm UTC](https://discourse.sst.dev/t/connect-serverless-framework-and-cdk-with-sst/2100/5 "2021-05-15T22:47:19Z")

</div>

I think you might’ve been following an older version of the guide from before? Are you using the PDF or the web version?

---

<div class="post-metadata">

**Author:** ![almeynman](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/almeynman/32/1191_2.png) [@almeynman](https://discourse.sst.dev/u/almeynman)\
**Post date:** [July 6, 2021, 5:34pm UTC](https://discourse.sst.dev/t/connect-serverless-framework-and-cdk-with-sst/2100/6 "2021-07-06T17:34:57Z")

</div>

Hi, is it possible to reference a user pool created by sst in serverless.yml? More details here [reference cognito user pool created by sst (serverless-stack) in serverless.yml - Stack Overflow](https://stackoverflow.com/questions/68275083/reference-cognito-user-pool-created-by-sst-serverless-stack-in-serverless-yml)

---

<div class="post-metadata">

**Author:** ![almeynman](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/almeynman/32/1191_2.png) [@almeynman](https://discourse.sst.dev/u/almeynman)\
**Post date:** [July 6, 2021, 7:14pm UTC](https://discourse.sst.dev/t/connect-serverless-framework-and-cdk-with-sst/2100/7 "2021-07-06T19:14:57Z")

</div>

FIgured it out, Answered in stackoverflow
