Closed leantorres73 closed 2 years ago
We need to add a Token.isUnresolved()
check here (and probably a few similar places in that class as well).
smaller reproducible example without SSM:
new Domain(scope, 'Domain', {
version: ElasticsearchVersion.V6_5,
capacity: {
dataNodeInstanceType: `${Fn.ref('SomeLogicalId')}.elasticsearch`,
},
});
...produces ${token[token.59]}.elasticsearch
under ElasticsearchClusterConfig.InstanceType
Any updates on this?
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
If I set SSM for some parameters like
dataNodeInstanceType
, if fails on deployment timeReproduction Steps
Create a ES Domain, and set capacity using SSM, like this:
Also, it shouldn't check if '.elasticsearch' is part of the text if a token is set there, but this second one is minor bug, the other one is an impediment of using SSM with ES configurations
What did you expect to happen?
Token resolved correctly.
What actually happened?
It fails, internally it's doing a .toLowerCase() and it's breaking the token
"${token[token.718]}.elasticsearch"
instead of"${Token[Token.718]}.elasticsearch"
Environment
This is :bug: Bug Report