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.

Enable Attribute References for Nested Types

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

Some providers (at least the Kubernetes provider) allow attribute references on anonymous interfaces (see #170). It would be good to support this.

That would be something like this:

const namespace = new Namespace(this, 'foo', {})
namespace.inputs.generation

References

https://github.com/hashicorp/terraform-cdk/issues/170

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
juliankrispelcommented, Dec 14, 2020

This issue blocked me from migrating this example from the terraform docs the other day:

resource "aws_route53_record" "example" {
  name    = aws_apigatewayv2_domain_name.example.domain_name
  type    = "A"
  zone_id = aws_route53_zone.example.zone_id

  alias {
    name                   = aws_apigatewayv2_domain_name.example.domain_name_configuration[0].target_domain_name
    zone_id                = aws_apigatewayv2_domain_name.example.domain_name_configuration[0].hosted_zone_id
    evaluate_target_health = false
  }
}

domain_name_configuration[0] doesn’t currently contain either target_domain_name or hosted_zone_id

Until this is fixed, a suitable workaround would be to use the escape hatch:

yourRoute53Record.addOverride(‘alias.name’, `${yourGateway.fqn}.domain_name_configuration[0].target_domain_name`)
0reactions
github-actions[bot]commented, Nov 30, 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

Nested and Tabular Data | Tutorials
The AttributeNestedType is a tool that can be used to model tabular, structured data for products. This feature is still in public beta...
Read more >
ActiveRecord::NestedAttributes::ClassMethods - Rails API
Active Record Nested Attributes Nested attributes allow you to save attributes on associated records through the parent.
Read more >
Creating and using nested attributes - Algolia
Nested attributes are a way of applying sub-categories to your attributes. For instance, instead of having a single searchable attribute ...
Read more >
How do I create a new object referencing an existing nested ...
I have an Item resource and an Owner resource. rails g scaffold Item name:string rails g scaffold Owner name:string class Item < ActiveRecord:: ......
Read more >
Specifying item attributes when using expressions
Nested attributes. An attribute is said to be nested if it is embedded within another attribute. To access a nested attribute, you use...
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