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

Common API for Resources with Web Addresses #74

Closed
nathanpeck opened this issue Feb 25, 2019 · 2 comments
Closed

Common API for Resources with Web Addresses #74

nathanpeck opened this issue Feb 25, 2019 · 2 comments
Labels
status/stale The RFC did not get any significant enough progress or tracking and has become stale.

Comments

@nathanpeck
Copy link
Member

One thing that I'd like to see improved is a consistent way of exposing the domain name of something. Currently there are a lot of different schemes for different constructs

LoadBalancer.dnsName
LambdaRestApi.url
CloudFrontWebDistribution.domainName
LoadBalancedFargateService.loadbalancer.dnsName
Bucket.domainName

I think ideally we should have a consistent interface similar to how the Connections interface works. Any construct that has an address on the internet should have an interface like MyConstruct.address, and that interface would have properties for fetching either a full URL, or just a domain name, or the port, etc. Right now I have to learn for each construct what the property is which that construct uses to expose its address on the internet.

This would be in addition to the raw native attributes from CloudFormation, just a higher level interface that makes it easier to get the address of whatever construct you just created.

@NGL321
Copy link
Contributor

NGL321 commented Oct 14, 2019

Hi @nathanpeck,

Sorry that this has been left so long with no response. This has not been forgotten, and is still on the long-term to-do. If you would like to see this more urgently, feel free to put in a PR. Otherwise someone will update this issue when the status changes!

😸

@eladb eladb transferred this issue from aws/aws-cdk Jan 23, 2020
@eladb eladb removed their assignment Jan 23, 2020
@eladb eladb changed the title Common address interface for constructs that have a web address Common API for Resources with Web Addresses Jun 23, 2020
@eladb eladb added the status/proposed Newly proposed RFC label Jun 23, 2020
@mrgrain
Copy link
Contributor

mrgrain commented Oct 27, 2023

Marking this RFCs as stale since there has been little recent activity and it is not currently close to getting accepted as-is. We appreciate the effort that has gone into this proposal. Marking an RFCs as stale is not a one-way door. If you have made substantial changes to the proposal, please open a new issue/RFC. You might also consider raising a PR to aws/aws-cdk directly or self-publishing to Construct Hub.

@mrgrain mrgrain closed this as not planned Won't fix, can't repro, duplicate, stale Oct 27, 2023
@mrgrain mrgrain added status/stale The RFC did not get any significant enough progress or tracking and has become stale. and removed status/proposed Newly proposed RFC labels Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/stale The RFC did not get any significant enough progress or tracking and has become stale.
Projects
None yet
Development

No branches or pull requests

4 participants