cloudtools / cloudtools/troposphere

Is there a better approach to Sub with Parameters?

Open
#1,341 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
4.9k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

Hi,

Could you please suggest a better approach without so much curly braces to `Sub` with `Parameter` than provided below?

```
param_a = troposphere.Parameter("ParamA", Type='String')
s = 'foo ${{{0}}} ${{{1}}}'.format("AWS::Region", param_a.title)
print(troposphere.Sub(s).to_dict())
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.