I am using sceptre and troposphere to generate my architecture.
In AWS Batch Job Definition, I want to parameterize the Environment of the job definition's container properties:
The environment is a list of https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-environment.html.
But in the context of sceptre, it doesn't seem like I can declare something like this:
self.JobDefinitionEnvironment = t.add_parameter(Parameter(
'JobDefinitionEnvironment',
Type='List<AWS::Batch::JobDefinition::Environment>'
))
In sceptre:
Do I have to write my own resolver to solve this problem? Even if I write my own resolver to resolve JobDefintion::Environment, the resolver returns only a string, not a list of objects.
Am I not supposed to parameterize the container properties and hardcode the values in the job-definition.py?
I am currently working around by "flatten" out the object, so I can supply the values. Kinda ugly.
Please help!