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

Add support for Fn::ToJsonString #2107

Open
uldall opened this issue Dec 7, 2022 · 0 comments
Open

Add support for Fn::ToJsonString #2107

uldall opened this issue Dec 7, 2022 · 0 comments

Comments

@uldall
Copy link

uldall commented Dec 7, 2022

It seems like the new ToJsonString intrinsic function is not yet available in Troposphere:
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ToJsonString.html

An example use-case for the function is to be able to use the return value "OpenWireEndpoints" of AWS:AmazonMQ:Broker as an environment variable for an Elastic Beanstalk environment:

 OptionSetting(
    OptionName="ACTIVE_MQ_ENDPOINTS",
    Namespace="aws:elasticbeanstalk:application:environment",
    Value=ToJsonString(GetAtt(broker, "OpenWireEndpoints"))
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant