I tried using the following as template for my resource, in this example, the autoscaling group.
"Outputs": {
"TemplateGroupSettings": {
"Properties": {
"AvailabilityZones" : { "Fn::GetAZs" : "" },
"LaunchConfigurationName": { "Ref": "LaunchConfig" },
"MaxSize": "3",
"MinSize": "1",
"Tags": [
{ "Key": "swarm:master", "Value": {"Ref": "JenkinsURL"}, "PropagateAtLaunch": "true" },
{ "Key": "swarm:username", "Value": {"Ref": "JenkinsUsername"}, "PropagateAtLaunch": "true" },
{ "Key": "swarm:executors", "Value": {"Ref": "JenkinsExecutors"}, "PropagateAtLaunch": "true" },
{ "Key": "ci:username", "Value": {"Ref": "CIUsername"}, "PropagateAtLaunch": "true" }]
},
"Type": "AWS::AutoScaling::AutoScalingGroup",
"UpdatePolicy": {
"AutoScalingRollingUpdate": {
"MaxBatchSize": "1",
"MinInstancesInService": "1",
"WaitOnResourceSignals": "true",
"PauseTime": "PT1M5S"
}
}
}
},
But this option doesn't work
"Resources": {
....
"TemplateGroup": { "Ref": "TemplateGroupSettings" },
Is there any other way around ? Because this one doesn't work
$ euform-create-stack --region eucalyptus -p InstanceType=t1.micro -p EnvironmentType=production --template-file ~cftemplate.json --capabilities CAPABILITY_IAM teststack
euform-create-stack: error (ValidationError): Type is a required property of Resource