Replies: 1 comment 1 reply
-
I've attached a working example in TypeScript for you. It boils down to:
This works fine, until you try to reference resource in a different CDK stack, but if Cognito and APIGW are in the same CDK stack this works. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I made a small CDK project in python that uses cognito userpools and openapi. As of right now, I can get the project to work when I have a valid user pool arn . However, I want the project to fill in the template with the correct arn, so I don't have to make a user pool and then go back and fill it in.
I found an example on stackoverflow that suggests using the logical id found in the template
- !GetAtt CognitoUserPool.Arn
.I renamed the logical id to
coogneeto
in the code and added it to the template. I pasted examples below of changing the logical id and somethings I tried in the openapi.yaml.openapi.yaml
Still everything fails when I run it.
Below is my code.
Here are the list of aws cdk and solutions libraries I'm using:
Also, here is the snippet where the logical id shows as coogneeto in the template.json file.
tldr; How can I get the arn to fill in the
openapi.yaml
template?Beta Was this translation helpful? Give feedback.
All reactions