-
Notifications
You must be signed in to change notification settings - Fork 239
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
fix(aws-eventbridge-sns): long sns topic names break eventbridge bindings #1024
Conversation
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
@@ -141,7 +141,7 @@ test('check if the event rule has permission/policy in place in sns for it to be | |||
); | |||
}); | |||
|
|||
test('check events rule properties', () => { | |||
test.only('check events rule properties', () => { |
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.
.only
was probably left here accidentally?
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.
oops - I knew I was gonna forget that...
import { generateIntegStackName } from '@aws-solutions-constructs/core'; | ||
|
||
const app = new App(); | ||
const stack = new Stack(app, generateIntegStackName(__filename) + 'ThisIsTheLongestNameForAStackItMustBeGreaterThanSixtyFourCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLonger'); |
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 dedication! I would have just lksjdfjoi3oio1ilkmslkdko...
|
||
const app = new App(); | ||
|
||
const stackTwo = new Stack(app, generateIntegStackName(__filename) + 'ThisIsTheLongestNameForAStackItMustBeGreaterThanSixtyFourCharactersLongAndThisShouldJustAboutDoItNoItMustBeABitLessShort'); |
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.
I see what you are doing here, but would it not be possible to launch both stacks from the same file? No issues if not, just curious as it may make it harder for a regression to slip through in the future if one forgets to launch the other stack?
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.
No, cdk-integ will only manage 1 stack - if the file has 2 you need to have a specific comment instructing cdk-integ which stack to launch
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
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.
Looks good to me
Issue #, if available:
Closes #1015
Description of changes:
Explicitly set the physical name of the Event/Topic binding
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.