-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[apigateway] Allow customizing the name of the CfnOutput containing the API endpoint #3662
Comments
Yup - I think the |
Thanks. I submitted this question to AWS support because it wasn't well documented. I found the default output for the REST API but couldn't find a way to export it. Instead, I had to create a separate output and export it. Disabling the default output is an acceptable solution, since you're right, it's trivial to add if needed and could cause resource count issues if not. |
Hey, I agree with @RomainMuller. As the user cannot rename the |
Unfortunately, removing this now is a breaking change, i.e., the change would break for customers already depending on the The best path forward right now, while inconvenient, is for the app to define an additional |
We can still add an |
@eladb @RomainMuller I am looking into this and these are changes that I think are required:
Since this is my first time contributing, can you please advise if these are the changes required. |
Makes sense. One thing that I don't think we can support is specifying an explicit name for an export (it will always be rendered based on the path of the Output construct in the tree). This means that even if you specify an exportName, you will only be able to control the relative construct ID o the |
@eladb can you help me understand this better. Not sure what you mean by "even if you specify an exportName, you will only be able to control the relative construct ID o the Output and not the full ID", because |
Note: for support questions, please first reference our documentation, then use Stackoverflow. This repository's issues are intended for feature requests and bug reports.
I'm submitting a ...
What is the current behavior?
If the current behavior is a 🪲bug🪲: Please provide the steps to reproduce
Currently rest api creation automatically creates an Output value. But it does not create an export for this output. Also, there does not seem to be any way to export this output by overriding the output property to add an export in any way. If I add something like -
core.CfnOutput(self, id="Test", value=topic.topic_arn, export_name="Test")
This will add a duplicate output
What is the expected behavior (or behavior of feature suggested)?
I expect that if there is an output for this, then it should also support in some way to add an export for it.
What is the motivation / use case for changing the behavior or adding this feature?
If we are still doing an auto-output for rest api, then why not even add auto-exporting?
Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. associated pull-request, stackoverflow, gitter, etc)
#1611 disabled exports by default. But output is still added by default for REST API. How/Why can't I add an export to it too?
And by the sense of it, why is output still added by default too? What if I had a resource count of 61 and all of them are rest api, wouldn't it exceed the limit?
Also, any example to address cross stack reference by using export import using python would really help since this is something that i was not able to find in the documentation.
The text was updated successfully, but these errors were encountered: