Skip to content

support Fn::ToJsonString #2107

@uldall

Description

@uldall

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"))
),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions