question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(construct): consistent naming for construct resources

See original GitHub issue

cdk generates below naming pattern like stackName-constructNameresourceNamepostfix

note no dash between constructName and resourceName

https://cdkworkshop.com/30-python/40-hit-counter/logs1.png image

Use Case

Separating constructName and resourceName with dash makes listing of resources more readable and consistent with stackName approach

Proposed Solution

Separate with dash constructName and resourceName

Other

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

This is a 🚀 Feature Request

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
gliptakcommented, Jun 29, 2021

@ryparker thank you for looking into this. The code came from below repo, subclassing core.Construct (not cdk.Stack)

https://github.com/aws-samples/aws-cdk-intro-workshop/blob/master/code/python/main-workshop/cdk-workshop/hitcounter.py#L7

class HitCounter(core.Construct):
Read more comments on GitHub >

github_iconTop Results From Across the Web

How do you use naming conventions in your projects?
How do you use naming conventions in your projects? (camelCase, snake_case, etc.) Construct Next; Construct 3 Next; General Discussion ...
Read more >
Terraform best practices — how to use a consistent naming ...
The first rule is not to include the name of the resource type in the resource name, either partially or completely, but do...
Read more >
Define your naming convention - Cloud Adoption Framework
When you construct your naming convention, identify the key pieces of information you want to reflect in a resource name.
Read more >
File naming and structure - Research Data Management at ...
File naming best practices: Files should be named consistently; File names should be short but descriptive (<25 characters) (Briney, 2015) ...
Read more >
Get a consistent Azure naming convention with Bicep modules
What would be ideal, is to have the different components of the resource name be added as parameters. The template should construct the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found