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.

Forceable Static Name for Outputs

See original GitHub issue

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave “+1” or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

When aiming to build a Terraform module with cdktf, or reference the remote state in a non automated environment, it would be good to be able to force a static name.

Given this output:

new TerraformOutput(this, 'arn', {
      value: custom.instance.arn
    })

This generates a name like this cdktfhybridmodule_arn_788D4ED0.

A new option could be:

new TerraformOutput(this, 'arn', {
      value: custom.instance.arn,
      staticName: "arn"
    })

Which wouldn’t generate a name but use the input and would be referenceable as arn.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:12
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jsteinichcommented, Jan 14, 2021

#329 also added overrideLogicalId which can control the name for individual resources.

0reactions
github-actions[bot]commented, Dec 1, 2022

I’m going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you’ve found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

Read more comments on GitHub >

github_iconTop Results From Across the Web

verilator Arguments — Verilator 5.005 documentation - Veripool
Specifies optional object or library files to be linked with the Verilog code, as a shorthand for -LDFLAGS <file> . The file path...
Read more >
Language Extensions — Verilator 5.005 documentation
Specifies that the signal (net or variable) should be made forceable from C++ code by generating public <signame>__VforceEn and <signame>__VforceVal signals. ...
Read more >
Recent fixes in IBMSecureRandom - Synopsys
There are two security issues here. First, the static instance is seeded using java.util.Random that is in turn seeded using the system time; ......
Read more >
STAF User's Guide
This handle is used when submitting requests to STAF. This handle, combined with the machine name, uniquely identifies a particular process in the...
Read more >
Run-time Enforcement of Nonsafety Policies
automata and use the term security automata to refer more generally to any dynamic ... of policies enforceable by static analysis and monitoring...
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