-
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
chore(doc): update the contributing guide with more details #25321
Conversation
CONTRIBUTING.md
Outdated
``` | ||
|
||
This allows you to iterate your development and ensure a minimal sample app with your hack can | ||
successfully deploy as you expect. Do not commit `sample.ts` and `sample.js` to your PR branch. |
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.
IMO, this is really important... Maybe call it out more?
@pahud I think instead of encouraging people to write sample apps they need to deploy for testing, they should just write it as an integration test and if they want to deploy the stack without deleting it after, they can run |
Agree. And, to save my time on repeated deployment, I tend to deploy resources in my existing vpc like: const cluster = new eks.Cluster(stack, 'Cluster', {
vpc: ec2.Vpc.fromLookup(stack, 'Vpc', { isDefault: true }),
...getClusterVersionConfig(stack),
defaultCapacity: 0,
}); But we can't commit this as part of our integ testing. So I think having a standalone sample ts that allows you to interact with just like a common CDK app is still very helpful and productive. But this is just my personal experience. I'll see if I can capture the advantages from both. |
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.
Just some language suggestions. I'm still not a fan of the sample app suggestion for most things because it feels unwieldy, but this is a personal preference for my own workflow I suppose. Everything that is accomplished by a test app like this can be accomplished by an integration test in a repeatable way.
I think for now this is a good guide for users to do a deploy as easily as possible if they want to use things like cdk diff
and hotswap and points to some features we should add to integ-runner so I'll look into that separately.
CONTRIBUTING.md
Outdated
This allows you to iterate your development and ensure a minimal sample app successfully deploy as you expect. | ||
You have the freedom to interact with it just as a common CDK app such as viewing differences with `npx cdk diff` | ||
or pass context variables with `npx cdk deploy -c`. You can rapidly iterate your testing with repeated deployments | ||
by importing existing resource such as existing VPC. This can save a lot of time and help you focus on the core changes. |
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.
This allows you to iterate your development and ensure a minimal sample app successfully deploy as you expect. | |
You have the freedom to interact with it just as a common CDK app such as viewing differences with `npx cdk diff` | |
or pass context variables with `npx cdk deploy -c`. You can rapidly iterate your testing with repeated deployments | |
by importing existing resource such as existing VPC. This can save a lot of time and help you focus on the core changes. | |
This allows you to iterate your development and ensures a minimal sample app successfully deploys as expected. | |
You have the freedom to interact with it just as a common CDK app such as viewing differences with `npx cdk diff` | |
or pass context variables with `npx cdk deploy -c`. You can rapidly iterate your testing with repeated deployments | |
by importing existing resource such as an existing VPC. This can save a lot of time and help you focus on the core changes. |
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.
DONE
Co-authored-by: Mitchell Valine <mitchellvaline@gmail.com>
Co-authored-by: Mitchell Valine <mitchellvaline@gmail.com>
Co-authored-by: Mitchell Valine <mitchellvaline@gmail.com>
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). |
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). |
This PR explains how to
Verify your fix by deployment
before you submit a pull request.When contributors complete their hack on any modules under
aws-cdk-lib
, it's unclear to them how to verify and ensure their fix can successfully synthesize and deploy in a real AWS environment. This PR explains how to do that with more details including:With the additional content, contributors will be able to iterate their development easily and ensure their hack can successfully deploy in their own AWS accounts as expected before they submit their PRs.
Closes #25196
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license