./priv/layers/admin-api.json in stacco-0.1.46 vs ./priv/layers/admin-api.json in stacco-0.1.47

- old
+ new

@@ -59,12 +59,13 @@ "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 CFN_REGION='", {"Ref": "AWS::Region"}, "'\n", + "export CFN_STACK_NAME='", {"Ref": "AWS::StackName"}, "'\n", + "export CFN_INSTANCE_LOGICAL_NAME='BackendLaunchConfiguration'\n", + "export CFN_INSTANCE_HOSTNAME='", {"Fn::FindInMap": ["StackZoneRecords", "AdminAPI", "DNSName"]}, "'\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"