Skip to content
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(init-templates): app template comes with hint comments for 'env' #13696

Merged
merged 4 commits into from
Mar 22, 2021

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Mar 19, 2021

How the env parameter is supposed to be used is still confusing to
a lot of users.

Add uncommentable lines to the init templates showing and describing
the 3 alternatives.

Fixes #12321.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

How the `env` parameter is supposed to be used is still confusing to
a lot of users.

Add uncommentable lines to the init templates showing and describing
the 3 alternatives.

Fixes #12321.
@rix0rrr rix0rrr added the pr/do-not-merge This PR should not be merged at this time. label Mar 19, 2021
@rix0rrr rix0rrr requested a review from a team March 19, 2021 15:10
@rix0rrr rix0rrr self-assigned this Mar 19, 2021
@gitpod-io
Copy link

gitpod-io bot commented Mar 19, 2021

@rix0rrr
Copy link
Contributor Author

rix0rrr commented Mar 19, 2021

Not merging yet -- would like to get some agreement on verbiage before I apply the same to all templates.

@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Mar 19, 2021
@rix0rrr rix0rrr added pr-linter/exempt-readme The PR linter will not require README changes pr-linter/exempt-test The PR linter will not require test changes labels Mar 19, 2021
@@ -4,4 +4,16 @@ import * as cdk from '@aws-cdk/core';
import { %name.PascalCased%Stack } from '../lib/%name%-stack';

const app = new cdk.App();
new %name.PascalCased%Stack(app, '%name.PascalCased%Stack');
new %name.PascalCased%Stack(app, '%name.PascalCased%Stack', {
/* If you don't specify 'env', this stack will be environment-agnostic.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other languages? v2 templates?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not merging yet -- would like to get some agreement on verbiage before I apply the same to all templates.

@nija-at nija-at dismissed their stale review March 19, 2021 16:20

I'm blind. Didn't read the comments

Copy link
Contributor

@nija-at nija-at left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm ok using this and the verbiage.

Just one comment.

new %name.PascalCased%Stack(app, '%name.PascalCased%Stack', {
/* If you don't specify 'env', this stack will be environment-agnostic.
* Account/Region-dependent features and context lookups will not work,
* but a single synthesized template can be deployed anywhere. */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* but a single synthesized template can be deployed anywhere. */
* but a single synthesized template can be deployed anywhere.
* See https://docs.aws.amazon.com/cdk/latest/guide/stacks.html to
* learn more about environment agnostic stacks.
* See https://docs.aws.amazon.com/cdk/latest/guide/context.html to
* learn more about runtime contexts. */

@rix0rrr rix0rrr requested review from nija-at and a team March 19, 2021 17:17
@rix0rrr rix0rrr removed the pr/do-not-merge This PR should not be merged at this time. label Mar 19, 2021
@mergify
Copy link
Contributor

mergify bot commented Mar 22, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify
Copy link
Contributor

mergify bot commented Mar 22, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: 53a925b
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Contributor

mergify bot commented Mar 22, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit b940710 into master Mar 22, 2021
@mergify mergify bot deleted the huijbers/init-env-hints branch March 22, 2021 11:24
eladb pushed a commit that referenced this pull request Mar 24, 2021
…#13696)

How the `env` parameter is supposed to be used is still confusing to
a lot of users.

Add uncommentable lines to the init templates showing and describing
the 3 alternatives.

Fixes #12321.


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
hollanddd pushed a commit to hollanddd/aws-cdk that referenced this pull request Aug 26, 2021
…aws#13696)

How the `env` parameter is supposed to be used is still confusing to
a lot of users.

Add uncommentable lines to the init templates showing and describing
the 3 alternatives.

Fixes aws#12321.


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS. pr-linter/exempt-readme The PR linter will not require README changes pr-linter/exempt-test The PR linter will not require test changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(aws-ec2): Vpc.from_lookup does not work out of the box on init templates
3 participants