cloudtools / cloudtools/troposphere
support Fn::ToJsonString
- Dominant language
- Python
- Stars
- 4.9k
- Forks
- 1.4k
- PR merge metrics
- No merged PRs in 30d
Description
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:
```python
OptionSetting(
OptionName="ACTIVE_MQ_ENDPOINTS",
Namespace="aws:elasticbeanstalk:application:environment",
Value=ToJsonString(GetAtt(broker, "OpenWireEndpoints"))
),
```
Contributor guide
Research direction
Start with Troposphere's existing intrinsic-function support and the linked AWS ToJsonString reference. Trace how GetAtt values are represented and locate the related tests; done means the documented ToJsonString example can be represented and the tests pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, python
- Domain
- cloud, infrastructure
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100