CloudFormation + PHP 5.5 - Zend Server Professional Edition

General discussion forum for the Zend Server
Post Reply
chad9037
Posts: 2
Joined: Tue Jun 17, 2014 6:43 pm

CloudFormation + PHP 5.5 - Zend Server Professional Edition

Post by chad9037 » Thu Dec 11, 2014 8:00 pm

It is possible to set up a zend cluster in AWS CloudFormation using the PHP 5.5 version of Zend Server? The default templete seems to require the PHP 5.4 version.

dima_z_zend
Posts: 15
Joined: Sun Jul 17, 2011 3:17 pm
Location: Ramat Gan, Israel

Re: CloudFormation + PHP 5.5 - Zend Server Professional Edit

Post by dima_z_zend » Mon Dec 15, 2014 11:16 am

Currently CloudFormation template generator does not have an option to select PHP version and always uses AMIs with PHP 5.4.
We plan to update template generator when we release Zend Server 8.0 on AWS, which will be happening soon.
This update will bring an option to choose PHP version of Zend Server to use.
For now usage of Zend Server with PHP 5.5 in CloudFormation is only possible if you edit template manually and replace AMI in it.
I can help you with it, but you have to send me your CloudFormation template file and specify following: AWS region you want to use, Zend Server edition, Operating System (Ubuntu Linux or RHEL).
Dmitry Zbarski
Cloud Integration Engineer
Zend Technologies, Ltd.

alek4185
Posts: 2
Joined: Sun Jan 18, 2015 9:03 pm

Re: CloudFormation + PHP 5.5 - Zend Server Professional Edit

Post by alek4185 » Sun Jan 18, 2015 9:58 pm

Hello Dmitry,
I have problems with deploying Zend Cluster on AWS and I suspect it is because of outdated template which can be generated on this page:
zend[DOT]com/en/products/server/cloudformation

I watched this video-manual: youtube[DOT]com/watch?v=P2rh3htM8Ik
So I selected:
Zend Server Edition: Professional
Initial size (nodes): 2
Max size (nodes): 10
Instance type: C3 2XL
OS: Ubuntu

And clicked on
Deploy on US East (N.Virginia)

Please see the template I got below.

First of all when I started deploying a Zend Cluster I got error related to MySQL version. In the template which I got MySQL version 5.5.27 was set.
Snippet from the template:
"DB": {
"Properties": {
"DBName": "zend",
"Engine": "MySQL",
"EngineVersion": "5.5.27",


So I had checked AWS RDS and found that the version 5.5.27 is not supported by AWS RDS any more. So I changed MySQL version to '5.6.21'.

After that error was gone but now I see these errors (full list of events also can be found below):
13:27:07 UTC-0500 ROLLBACK_IN_PROGRESS AWS::CloudFormation::Stack ZendCluster The following resource(s) failed to create: [LaunchConfig, CMInstance]. . Rollback requested by user.
13:27:05 UTC-0500 CREATE_FAILED AWS::EC2::Instance CMInstance API: ec2:RunInstances Not authorized for images: [ami-ca8d58a2]
13:27:05 UTC-0500 CREATE_FAILED AWS::AutoScaling::LaunchConfiguration LaunchConfig AMI cannot be described


And I am not sure what to edit. Dmitry or other Zend developers please help me to solve this problem. Thank you in advance!


Sorry I have to replace .com with [DOT]com (event in the template) because the forum engine doesn't allow me to use urls.
------------------- Deploying events --------------------------------------
13:34:40 UTC-0500 ROLLBACK_COMPLETE AWS::CloudFormation::Stack ZendCluster
13:34:39 UTC-0500 DELETE_COMPLETE AWS::EC2::SecurityGroup EC2SecurityGroup
13:34:38 UTC-0500 DELETE_IN_PROGRESS AWS::EC2::SecurityGroup EC2SecurityGroup
13:34:36 UTC-0500 DELETE_COMPLETE AWS::RDS::DBSecurityGroup DBSecurityGroup
13:34:34 UTC-0500 DELETE_IN_PROGRESS AWS::RDS::DBSecurityGroup DBSecurityGroup
13:34:32 UTC-0500 DELETE_COMPLETE AWS::RDS::DBInstance DB
13:27:21 UTC-0500 DELETE_COMPLETE AWS::IAM::Role ZendClusterRole
13:27:20 UTC-0500 DELETE_IN_PROGRESS AWS::IAM::Role ZendClusterRole
13:27:18 UTC-0500 DELETE_COMPLETE AWS::IAM::InstanceProfile ZendClusterProfile
13:27:18 UTC-0500 DELETE_IN_PROGRESS AWS::IAM::InstanceProfile ZendClusterProfile
13:27:17 UTC-0500 DELETE_IN_PROGRESS AWS::RDS::DBInstance DB
13:27:16 UTC-0500 DELETE_COMPLETE AWS::SNS::Topic AlarmTopic
13:27:16 UTC-0500 DELETE_COMPLETE AWS::EC2::SecurityGroupIngress EC2SecurityGroupIngressUDP
13:27:16 UTC-0500 DELETE_COMPLETE AWS::EC2::SecurityGroupIngress EC2SecurityGroupIngress
13:27:15 UTC-0500 DELETE_COMPLETE AWS::AutoScaling::LaunchConfiguration LaunchConfig
13:27:15 UTC-0500 DELETE_IN_PROGRESS AWS::EC2::SecurityGroupIngress EC2SecurityGroupIngressUDP
13:27:15 UTC-0500 DELETE_IN_PROGRESS AWS::EC2::SecurityGroupIngress EC2SecurityGroupIngress
13:27:15 UTC-0500 DELETE_COMPLETE AWS::EC2::Instance CMInstance
13:27:15 UTC-0500 DELETE_IN_PROGRESS AWS::SNS::Topic AlarmTopic
13:27:07 UTC-0500 ROLLBACK_IN_PROGRESS AWS::CloudFormation::Stack ZendCluster The following resource(s) failed to create: [LaunchConfig, CMInstance]. . Rollback requested by user.
13:27:05 UTC-0500 CREATE_FAILED AWS::EC2::Instance CMInstance API: ec2:RunInstances Not authorized for images: [ami-ca8d58a2]
13:27:05 UTC-0500 CREATE_FAILED AWS::AutoScaling::LaunchConfiguration LaunchConfig AMI cannot be described

13:27:05 UTC-0500 CREATE_IN_PROGRESS AWS::EC2::Instance CMInstance
13:27:05 UTC-0500 CREATE_IN_PROGRESS AWS::AutoScaling::LaunchConfiguration LaunchConfig
13:27:01 UTC-0500 CREATE_COMPLETE AWS::RDS::DBInstance DB
13:12:49 UTC-0500 CREATE_COMPLETE AWS::IAM::InstanceProfile ZendClusterProfile
13:11:02 UTC-0500 CREATE_IN_PROGRESS AWS::RDS::DBInstance DB Resource creation Initiated
13:10:59 UTC-0500 CREATE_IN_PROGRESS AWS::RDS::DBInstance DB
13:10:57 UTC-0500 CREATE_COMPLETE AWS::RDS::DBSecurityGroup DBSecurityGroup
13:10:55 UTC-0500 CREATE_COMPLETE AWS::EC2::SecurityGroupIngress EC2SecurityGroupIngressUDP
13:10:55 UTC-0500 CREATE_COMPLETE AWS::EC2::SecurityGroupIngress EC2SecurityGroupIngress
13:10:55 UTC-0500 CREATE_IN_PROGRESS AWS::RDS::DBSecurityGroup DBSecurityGroup Resource creation Initiated
13:10:54 UTC-0500 CREATE_IN_PROGRESS AWS::EC2::SecurityGroupIngress EC2SecurityGroupIngressUDP Resource creation Initiated
13:10:54 UTC-0500 CREATE_IN_PROGRESS AWS::EC2::SecurityGroupIngress EC2SecurityGroupIngress Resource creation Initiated
13:10:54 UTC-0500 CREATE_IN_PROGRESS AWS::RDS::DBSecurityGroup DBSecurityGroup
13:10:54 UTC-0500 CREATE_IN_PROGRESS AWS::EC2::SecurityGroupIngress EC2SecurityGroupIngressUDP
13:10:54 UTC-0500 CREATE_IN_PROGRESS AWS::EC2::SecurityGroupIngress EC2SecurityGroupIngress
13:10:51 UTC-0500 CREATE_COMPLETE AWS::EC2::SecurityGroup EC2SecurityGroup
13:10:50 UTC-0500 CREATE_IN_PROGRESS AWS::EC2::SecurityGroup EC2SecurityGroup Resource creation Initiated
13:10:49 UTC-0500 CREATE_IN_PROGRESS AWS::IAM::InstanceProfile ZendClusterProfile Resource creation Initiated
13:10:47 UTC-0500 CREATE_IN_PROGRESS AWS::IAM::InstanceProfile ZendClusterProfile
13:10:46 UTC-0500 CREATE_COMPLETE AWS::SNS::Topic AlarmTopic
13:10:45 UTC-0500 CREATE_COMPLETE AWS::IAM::Role ZendClusterRole
13:10:44 UTC-0500 CREATE_IN_PROGRESS AWS::IAM::Role ZendClusterRole Resource creation Initiated
13:10:34 UTC-0500 CREATE_IN_PROGRESS AWS::SNS::Topic AlarmTopic Resource creation Initiated
13:10:34 UTC-0500 CREATE_IN_PROGRESS AWS::EC2::SecurityGroup EC2SecurityGroup
13:10:33 UTC-0500 CREATE_IN_PROGRESS AWS::IAM::Role ZendClusterRole
13:10:33 UTC-0500 CREATE_IN_PROGRESS AWS::SNS::Topic AlarmTopic
13:10:29 UTC-0500 CREATE_IN_PROGRESS AWS::CloudFormation::Stack ZendCluster User Initiated


------------------- Template --------------------------------------
{
"AWSTemplateFormatVersion": "2010-09-09",

"Description": "Zend Server cluster test template",

"Parameters": {
"KeyName": {
"Type": "String",
"Description": "Name of an existing EC2 KeyPair to enable SSH access to ZS nodes"
},
"ClusterPassword": {
"Type": "String",
"MinLength": "4",
"NoEcho": "true",
"AllowedPattern": "[a-zA-Z0-9]*",
"Description": "Zend Server Cluster password (min. 4 characters)"
},
"DatabaseUser": {
"Default": "admin",
"Type": "String",
"Description": "Database admin account name",
"MinLength": "1",
"MaxLength": "16",
"AllowedPattern": "[a-zA-Z][a-zA-Z0-9]*",
"ConstraintDescription": "must begin with a letter and contain only alphanumeric characters."
},
"DatabasePassword": {
"NoEcho": "true",
"Type": "String",
"Description": "Database admin account password (min. 8 characters)",
"MinLength": "8",
"MaxLength": "41",
"AllowedPattern": "[a-zA-Z0-9]*",
"ConstraintDescription": "must contain at least 8 alphanumeric characters."
},
"OperatorEmail": {
"Default": "nobody[AT]amazon[DOT]com",
"Description": "Email address to notify if there are any operational issues",
"Type": "String"
}
},

"Resources": {
"ZendClusterRole": {
"Type": "AWS::IAM::Role",
"Properties": {
"AssumeRolePolicyDocument": {
"Statement": [ {
"Effect": "Allow",
"Principal": {
"Service": [ "ec2.amazonaws[DOT]com" ]
},
"Action": [ "sts:AssumeRole" ]
} ]
},
"Path": "/",
"Policies": [ {
"PolicyName": "cloudwatchAdmin",
"PolicyDocument": {
"Statement": [ {
"Effect": "Allow",
"Action": [ "cloudwatch:*", "sns:*", "autoscaling:Describe*"],
"Resource": "*"
} ]
}
}, {
"PolicyName": "ec2TagsAdmin",
"PolicyDocument": {
"Statement": [ {
"Effect": "Allow",
"Action": [ "ec2:CreateTags", "ec2:DeleteTags", "ec2:DescribeTags" ],
"Resource": "*"
} ]
}
} ]
}
},
"ZendClusterProfile" : {
"Type": "AWS::IAM::InstanceProfile",
"Properties": {
"Path": "/",
"Roles": [ { "Ref": "ZendClusterRole" } ]
}
},
"WebServerScaleUpPolicy" : {
"Type" : "AWS::AutoScaling::ScalingPolicy",
"Properties" : {
"AdjustmentType" : "ChangeInCapacity",
"AutoScalingGroupName" : { "Ref" : "WebServerGroup" },
"Cooldown" : "60",
"ScalingAdjustment" : "1"
}
},
"WebServerScaleDownPolicy" : {
"Type" : "AWS::AutoScaling::ScalingPolicy",
"Properties" : {
"AdjustmentType" : "ChangeInCapacity",
"AutoScalingGroupName" : { "Ref" : "WebServerGroup" },
"Cooldown" : "60",
"ScalingAdjustment" : "-1"
}
},
"CPUAlarmHigh": {
"Type": "AWS::CloudWatch::Alarm",
"Properties": {
"MetricName": "CPUUtilization",
"AlarmDescription": "Alarm if CPU too high or metric disappears indicating instance is down",
"Namespace": "AWS/EC2",
"Statistic": "Average",
"Threshold": "90",
"ComparisonOperator": "GreaterThanThreshold",
"Period": "60",
"EvaluationPeriods": "2",
"AlarmActions": [
{ "Ref": "AlarmTopic" },
{ "Ref": "WebServerScaleUpPolicy" }
],
"InsufficientDataActions": [
{ "Ref": "AlarmTopic" }
],
"Dimensions": [
{
"Name": "AutoScalingGroupName",
"Value": { "Ref": "WebServerGroup" }
}
]
}
},
"CPUAlarmLow": {
"Type": "AWS::CloudWatch::Alarm",
"Properties": {
"AlarmDescription": "Scale-down if CPU < 30% for 2 minutes",
"MetricName": "CPUUtilization",
"Namespace": "AWS/EC2",
"Statistic": "Average",
"Period": "60",
"EvaluationPeriods": "2",
"Threshold": "30",
"ComparisonOperator": "LessThanThreshold",
"AlarmActions": [
{ "Ref": "AlarmTopic" },
{ "Ref": "WebServerScaleDownPolicy" }
],
"Dimensions": [
{
"Name": "AutoScalingGroupName",
"Value": { "Ref": "WebServerGroup" }
}
]
}
},
"TooManyUnhealthyHostsAlarm": {
"Properties": {
"EvaluationPeriods": "1",
"Statistic": "Average",
"Threshold": "0",
"AlarmDescription": "Alarm if there are too many unhealthy hosts.",
"Period": "60",
"AlarmActions": [
{ "Ref": "AlarmTopic" }
],
"Namespace": "AWS/ELB",
"InsufficientDataActions": [
{ "Ref": "AlarmTopic" }
],
"Dimensions": [
{
"Name": "LoadBalancerName",
"Value": { "Ref": "ElasticLoadBalancer" }
}
],
"ComparisonOperator": "GreaterThanThreshold",
"MetricName": "UnHealthyHostCount"
},
"Type": "AWS::CloudWatch::Alarm"
},
"RequestLatencyAlarmHigh": {
"Type": "AWS::CloudWatch::Alarm",
"Properties": {
"EvaluationPeriods": "1",
"Statistic": "Average",
"Threshold": "1.5",
"AlarmDescription": "Alarm if there aren't any requests coming through",
"Period": "60",
"AlarmActions": [
{ "Ref": "AlarmTopic" }
],
"Namespace": "AWS/ELB",
"InsufficientDataActions": [
{ "Ref": "AlarmTopic" }
],
"Dimensions": [
{
"Name": "LoadBalancerName",
"Value": { "Ref": "ElasticLoadBalancer" }
}
],
"ComparisonOperator": "GreaterThanThreshold",
"MetricName": "Latency"
}
},
"EC2SecurityGroup": {
"Properties": {
"SecurityGroupIngress": [
{
"FromPort": "22",
"CidrIp": "0.0.0.0/0",
"ToPort": "22",
"IpProtocol": "tcp"
},
{
"FromPort": "10081",
"CidrIp": "0.0.0.0/0",
"ToPort": "10081",
"IpProtocol": "tcp"
},
{
"FromPort": "10082",
"CidrIp": "0.0.0.0/0",
"ToPort": "10082",
"IpProtocol": "tcp"
},
{
"FromPort": "80",
"CidrIp": "0.0.0.0/0",
"ToPort": "80",
"IpProtocol": "tcp"
},
{
"FromPort": "443",
"CidrIp": "0.0.0.0/0",
"ToPort": "443",
"IpProtocol": "tcp"
}
],
"GroupDescription": "Zend Cluster Security Group"
},
"Type": "AWS::EC2::SecurityGroup"
},
"EC2SecurityGroupIngress": {
"Type": "AWS::EC2::SecurityGroupIngress",
"Properties": {
"GroupName": { "Ref": "EC2SecurityGroup" },
"IpProtocol": "tcp",
"FromPort": "0",
"ToPort": "65535",
"SourceSecurityGroupName": { "Ref": "EC2SecurityGroup" }
}
},
"EC2SecurityGroupIngressUDP": {
"Type": "AWS::EC2::SecurityGroupIngress",
"Properties": {
"GroupName": { "Ref": "EC2SecurityGroup" },
"IpProtocol": "udp",
"FromPort": "0",
"ToPort": "65535",
"SourceSecurityGroupName": { "Ref": "EC2SecurityGroup" }
}
},
"CMInstance" : {
"Properties" : {
"IamInstanceProfile": { "Ref": "ZendClusterProfile" },
"KeyName" : { "Ref" : "KeyName" },
"SecurityGroups" : [ {
"Ref" : "EC2SecurityGroup"
} ],
"UserData": {
"Fn::Base64": {
"Fn::Join": [
"",
[
"ZEND_CLUSTER_PASSWORD=",{ "Ref": "ClusterPassword" },"\n",
"ZEND_CLUSTER_DB_HOST=",{ "Fn::GetAtt" : ["DB", "Endpoint.Address"] },"\n",
"ZEND_CLUSTER_DB_USER=",{ "Ref" : "DatabaseUser" },"\n",
"ZEND_CLUSTER_DB_PASSWORD=",{ "Ref" : "DatabasePassword" },"\n",
"ZEND_CLUSTER_REGION=",{ "Ref": "AWS::Region" },"\n",
"ZEND_CLOUDWATCH_ENABLE=1\n",
"ZEND_CLUSTER_NAME='",{ "Ref": "AWS::StackName" },"'\n"
]
]
}
},
"InstanceType" : "c3.2xlarge",
"ImageId": {
"Fn::FindInMap": [
"RegionDistributionAmi",
{ "Ref": "AWS::Region" },
"ubuntuprofessional"
]
},
"Tags": [
{"Key": "ZendClusterName", "Value": { "Ref": "AWS::StackName" }}
]
},
"Type" : "AWS::EC2::Instance"
},
"ElasticLoadBalancer": {
"Properties": {
"Listeners": [
{
"InstancePort": "80",
"PolicyNames": [
"p1"
],
"Protocol": "HTTP",
"LoadBalancerPort": "80"
}
],
"HealthCheck": {
"HealthyThreshold": "2",
"Timeout": "5",
"Interval": "10",
"UnhealthyThreshold": "5",
"Target": "HTTP:80/"
},
"AvailabilityZones": {"Fn::GetAZs" : ""},
"Instances" : [ { "Ref" : "CMInstance" } ],
"LBCookieStickinessPolicy": [
{
"CookieExpirationPeriod": "30",
"PolicyName": "p1"
}
]
},
"Type": "AWS::ElasticLoadBalancing::LoadBalancer"
},
"DBSecurityGroup": {
"Properties": {
"DBSecurityGroupIngress": {
"EC2SecurityGroupName": {
"Ref": "EC2SecurityGroup"
}
},
"GroupDescription": "database access"
},
"Type": "AWS::RDS::DBSecurityGroup"
},
"DB": {
"Properties": {
"DBName": "zend",
"Engine": "MySQL",
"EngineVersion": "5.5.27",
"Port": "3306",
"MultiAZ" : { "Fn::FindInMap" : [ "AWSRegionCapabilities", { "Ref" : "AWS::Region" }, "RDSMultiAZ"] },
"MasterUsername": {
"Ref": "DatabaseUser"
},
"DBInstanceClass": "db.m1.medium",
"DBSecurityGroups": [
{
"Ref": "DBSecurityGroup"
}
],
"AllocatedStorage": "20",
"MasterUserPassword": {
"Ref": "DatabasePassword"
}
},
"Type": "AWS::RDS::DBInstance"
},
"WebServerGroup": {
"Properties": {
"LoadBalancerNames": [
{
"Ref": "ElasticLoadBalancer"
}
],
"LaunchConfigurationName": {
"Ref": "LaunchConfig"
},
"AvailabilityZones": {"Fn::GetAZs" : ""},
"MinSize": 1,
"MaxSize": 9,
"Tags": [
{"Key": "ZendClusterName", "Value": { "Ref": "AWS::StackName" }, "PropagateAtLaunch": true}
]
},
"Type": "AWS::AutoScaling::AutoScalingGroup"
},
"AlarmTopic": {
"Properties": {
"Subscription": [
{
"Endpoint": { "Ref": "OperatorEmail" },
"Protocol": "email"
}
]
},
"Type": "AWS::SNS::Topic"
},
"LaunchConfig": {
"Properties": {
"IamInstanceProfile": { "Ref": "ZendClusterProfile" },
"SecurityGroups": [
{
"Ref": "EC2SecurityGroup"
}
],
"ImageId": {
"Fn::FindInMap": [
"RegionDistributionAmi",
{ "Ref": "AWS::Region" },
"ubuntuprofessional"
]
},
"UserData": {
"Fn::Base64": {
"Fn::Join": [
"",
[
"ZEND_CLUSTER_PASSWORD=", { "Ref": "ClusterPassword" },"\n",
"ZEND_CLUSTER_DB_HOST=",{ "Fn::GetAtt" : ["DB", "Endpoint.Address"] },"\n",
"ZEND_CLUSTER_DB_USER=",{ "Ref" : "DatabaseUser" },"\n",
"ZEND_CLUSTER_DB_PASSWORD=",{ "Ref" : "DatabasePassword" },"\n",
"ZEND_CLUSTER_REGION=",{ "Ref": "AWS::Region" },"\n",
"ZEND_CLUSTER_NAME='",{ "Ref": "AWS::StackName" },"'\n"
]
]
}
},
"KeyName": {
"Ref": "KeyName"
},
"InstanceType": "c3.2xlarge"
},
"Type": "AWS::AutoScaling::LaunchConfiguration"
}
},

"Mappings" : {
"RegionDistributionAmi": {
"us-east-1" : {
"ubuntuenterprise": "ami-c88d58a0",
"ubuntuprofessional": "ami-ca8d58a2",
"rhelprofessional": "ami-c48d58ac",
"rhelenterprise": "ami-dc8d58b4"
},
"us-west-1" : {
"ubuntuenterprise": "ami-eb2e2cae",
"ubuntuprofessional": "ami-ef2e2caa",
"rhelprofessional": "ami-952e2cd0",
"rhelenterprise": "ami-f12e2cb4"
},
"us-west-2" : {
"ubuntuenterprise": "ami-836318b3",
"ubuntuprofessional": "ami-5b63186b",
"rhelprofessional": "ami-b3621983",
"rhelenterprise": "ami-f96219c9"
},
"sa-east-1" : {
"ubuntuenterprise": "ami-bd75dca0",
"ubuntuprofessional": "ami-8375dc9e",
"rhelprofessional": "ami-b375dcae",
"rhelenterprise": "ami-b575dca8"
},
"eu-west-1" : {
"ubuntuenterprise": "ami-2d65b55a",
"ubuntuprofessional": "ami-2965b55e",
"rhelprofessional": "ami-0f65b578",
"rhelenterprise": "ami-0165b576"
},
"ap-southeast-1" : {
"ubuntuenterprise": "ami-d685dd84",
"ubuntuprofessional": "ami-d085dd82",
"rhelprofessional": "ami-c885dd9a",
"rhelenterprise": "ami-cc85dd9e"
},
"ap-southeast-2" : {
"ubuntuenterprise": "ami-23620419",
"ubuntuprofessional": "ami-2d620417",
"rhelprofessional": "ami-19620423",
"rhelenterprise": "ami-1f620425"
},
"ap-northeast-1" : {
"ubuntuenterprise": "ami-59eeb258",
"ubuntuprofessional": "ami-53eeb252",
"rhelprofessional": "ami-05efb304",
"rhelenterprise": "ami-cbeeb2ca"
}
},
"AWSRegionCapabilities" : {
"us-east-1" : { "RDSMultiAZ" : "true" },
"us-west-1" : { "RDSMultiAZ" : "true" },
"us-west-2" : { "RDSMultiAZ" : "true" },
"sa-east-1" : { "RDSMultiAZ" : "true" },
"eu-west-1" : { "RDSMultiAZ" : "true" },
"ap-southeast-1" : { "RDSMultiAZ" : "true" },
"ap-southeast-2" : { "RDSMultiAZ" : "true" },
"ap-northeast-1" : { "RDSMultiAZ" : "true" }
}
},

"Outputs": {
"ClusterURL": {
"Value": {
"Fn::Join": [
"",
[
"http://",
{ "Fn::GetAtt": ["ElasticLoadBalancer","DNSName"] },
"/"
]
]
},
"Description" : "URL of the website"
},
"ClusterManagerURL": {
"Value": {
"Fn::Join": [
"",
[
"https://",
{ "Fn::GetAtt": [ "CMInstance", "PublicIp" ] },
":10082/"
]
]
},
"Description" : "URL of Zend Server UI"
},
"DBHost": {
"Value": { "Fn::GetAtt" : ["DB", "Endpoint.Address"] },
"Description" : "Database hostname"
},
"DBPort": {
"Value": "3306",
"Description" : "Database port"
},
"DBUser": {
"Value": { "Ref" : "DatabaseUser" },
"Description" : "Database user"
},
"DBPassword": {
"Value": { "Ref" : "DatabasePassword" },
"Description" : "Database password"
}
}
}

alek4185
Posts: 2
Joined: Sun Jan 18, 2015 9:03 pm

Re: CloudFormation + PHP 5.5 - Zend Server Professional Edit

Post by alek4185 » Wed Jan 21, 2015 4:40 pm

Hey guys, can you please help me? :)

dima_z_zend
Posts: 15
Joined: Sun Jul 17, 2011 3:17 pm
Location: Ramat Gan, Israel

Re: CloudFormation + PHP 5.5 - Zend Server Professional Edit

Post by dima_z_zend » Thu Jan 22, 2015 10:34 am

First of all yesterday new CloudFormation template generator was released. It has PHP version selector and MySQL problem fixed.
But it won't fix your error because the error you see is because you are not subscribed to Zend Server in AWS Marketplace.
In order to subscribe to AMI in Marketplace you have to go to AWS Marketplace, find there the exact product you want to use in CloudFormation template (for example PHP 5.5 - Zend Server Professional Edition (Ubuntu)) click "Continue", then click on "Manual Launch" and finally click "Subscribe". If you have any problems with subscription, please do not hesitate to ask.
Dmitry Zbarski
Cloud Integration Engineer
Zend Technologies, Ltd.

Post Reply