./priv/layers/admin-api.json in stacco-0.1.40 vs ./priv/layers/admin-api.json in stacco-0.1.41

- old
+ new

@@ -40,9 +40,38 @@ "MetricsCollection": [{ "Granularity": "1Minute", "Metrics": ["GroupMinSize", "GroupMaxSize"] }] } +}, + +"BackendLaunchConfiguration" : { + "Type" : "AWS::AutoScaling::LaunchConfiguration", + + "Metadata": { + "AWS::CloudFormation::Init": {} + }, + + "Properties" : { + "InstanceType": "m3.medium", + "ImageId": {"Ref": "InstanceAMIVar"}, + "KeyName": {"Ref": "IAMKeypairNameVar"}, + "SecurityGroups": [{"Ref": "BackendSecurityGroup"}], + + "IamInstanceProfile" : {"Ref": "BackendProfile"}, + + "UserData": {"Fn::Base64": {"Fn::Join": ["", [ + "#!/bin/bash\n", + "export AWS_REGION='", {"Ref": "AWS::Region"}, "'\n", + "export AWS_STACK_NAME='", {"Ref": "AWS::StackName"}, "'\n", + "export AWS_INSTANCE_LOGICAL_NAME='BackendLaunchConfiguration'\n", + "export DB_HOST='", {"Fn::GetAtt": ["DB", "Endpoint.Address"]}, "'\n", + "export DB_PORT='", {"Fn::GetAtt": ["DB", "Endpoint.Port"]}, "'\n", + {"Ref": "UserDataEnvironmentVar"}, "\n", + {"Ref": "CommonRoleScriptVar"}, "\n", + {"Ref": "BackendRoleScriptVar"}, "\n" + ]]}} + } } } }