-
Notifications
You must be signed in to change notification settings - Fork 38
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
Refactor infra-stack and remove entrypoint file #88
Conversation
Signed-off-by: Sayali Gaikawad <[email protected]>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #88 +/- ##
==========================================
+ Coverage 80.25% 81.83% +1.58%
==========================================
Files 7 6 -1
Lines 471 446 -25
Branches 141 167 +26
==========================================
- Hits 378 365 -13
+ Misses 93 81 -12 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Sayali Gaikawad <[email protected]>
@@ -11,7 +11,7 @@ export class RemoteStoreResources { | |||
this.snapshotS3Bucket = new Bucket(scope, `remote-store-${scope.stackName}`, { | |||
removalPolicy: RemovalPolicy.DESTROY, | |||
autoDeleteObjects: true, | |||
bucketName: `${scope.stackName}`, | |||
bucketName: `${scope.stackName.toLowerCase()}`, |
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.
Hi @rishabh6788 ,
I saw this bug while adding test cases
Bucket name must only contain lowercase characters and the symbols, period (.) and dash (-) (offset: 0)
Bucket name must start and end with a lowercase character or number (offset: 0)
Hence changing this to lowercase. I wonder if we can remove the bucket name as each stack can track the associated bucket. Unless there is another use case that I might be unaware of
Signed-off-by: Sayali Gaikawad <[email protected]>
LGTM Sayali, please check the failing codecov workflow. |
Signed-off-by: Sayali Gaikawad <[email protected]>
Signed-off-by: Sayali Gaikawad <[email protected]>
Description
Refactors the infraStack class to add all checks and defaults value at the class level rather than in entrypoint. The change also remove entrypoint file since all it was doing was calling both network and infraclass which can be done in app.ts.
Issues Resolved
List any issues this PR will resolve, e.g. Closes [...].
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.