-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(cdk): expose authorizer id and authorization type #31622
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.
A comment requesting an exemption should contain the text Exemption Request
. Additionally, if clarification is needed add Clarification Request
to a comment.
Thank you for your PR. This PR will need at least one community review/approval before the flow can bump it to pending for maintainer review queue. Please check CDK Community Reviews for more details |
Edit: Contributing to AWS CDK using Windows is a horrible experience. Switched to Mac. |
ef489a3
to
f0f94fd
Compare
f0f94fd
to
1613fe0
Compare
Added example in README file
e16afd9
to
6b75152
Compare
@JonWallsten My personal favorite is CodeCatalyst DevEnv. You may find this article helpful FYI |
513012e
to
e430118
Compare
Updated integration tests
e430118
to
04e35f7
Compare
@pahud: I'm trying to understand how the integration tests works. I have added som code to the test and built the project. But I can't run the test due to:
Since I had to move the development to my personal computer where I don't have an account, I can't seem to run tests. Is there any workaround for this? Edit: I'm trying out the Free tier CodeCatalyst DevEnv now to see it it will solve my issues. I must say the threshold to get going is pretty steep and high. Edit2: This is a never ending path of brick walls. This was not an issue on either my Mac nor running the DevContainer outside of CodeCatalyst on my PC. Edit3: Tried to add --verbose flag. Still no clue about what's wrong. Final: Turns out free tier does not have enough memory to build the project... |
@JonWallsten Did you have a chance to figure out the integration test issue? Given the previous comments, it seems that you don't have an AWS account to run the test? Is my understanding correct? |
@GavinZZ Long story short. So far I've spent 30 minutes on the code and the tests, and 4 days trying to get the project to build and test. Edit: I have added the credentials to the credential files and the account to the config file as the default profile. But it does not seem to work. Do I have to configure the integration tests to pick up the credentials/config? I even tried to add the profile to manually through the cli: Edit 2: Got it to work by calling Edit 3: I still have a problem that the build fails after a while. |
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for contributing!
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Wow, glad that you're finally able to make it build and work. Windows are known to have issues with CDK development unfortunately, and we really need to improve it for better experiences. I'll reach out internally to see if there's any items we could do to improve Windows user experience. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Comments on closed issues and PRs are hard for our team to see. |
Issue # (if applicable)
Closes #31605.
Reason for this change
I need to access the authorizer id and type to be able to import the authorizer in another CDK project
Description of changes
I have added a public readonly variable for the authorizationType that was previously a string in the return object from the bind function.
I have also added a getter that will return the authorizerId after the first binding. If not bound yet it will throw an error.
Description of how you validated changes
I have added unit tests for all changed files.
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license