I am trying to create jobqueue template in which I declare output values so that jobqueue can be imported into other stacks.
Template:
{
"Resources": {
"MyJobQueue": {
"Type": "AWS::Batch::JobQueue",
"Properties": {
"ComputeEnvironmentOrder": [
{
"Order": 1,
"ComputeEnvironment": "testcompenv"
}
],
"State": "ENABLED",
"Priority": 1,
"JobQueueName": "testjobqueue"
}
},
"Outputs": {
"TestOutputName": {
"Description": "job queue arn",
"Value": {
"Ref": "MyJobQueue"
},
"Export": {
"Name": {
"Fn::Sub": "${AWS::StackName}-MyJobQueueExport"
}
}
}
}
}
}
Error:
Template validation error: Invalid template resource property 'TestOutputName'
I am getting template validation error in the place of 'TestOutputName' can anyone tell what i should give here.
and In "Fn::Sub": "${AWS::StackName}-MyJobQueueExport"
MyJobQueueExport should be same as the stack name?