-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
43 lines (38 loc) · 1.56 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<project name="aws-sdk" default="help" basedir=".">
<import file="./tasks.xml" />
<property name="aws.profile" value="" />
<target name="help" description="List available targets">
<exec executable="vendor/bin/phing"
passthru="true">
<arg value="-l"/>
</exec>
</target>
<target name="asg-describe">
<aws-config region="${aws.region}" profile="${aws.profile}" />
<ec2-autoscalinggroup-describe
name="${asg.name}" asgExistsProperty="aws.asg1.exists" />
<if>
<equals arg1="true" arg2="${aws.asg1.exists}" />
<then>
<echo message="Yes the ASG exists!" />
</then>
</if>
<echo message="The ASG exists: ${aws.asg1.exists}" />
<echo message="The ASG ARN: ${aws.asg1.detail.AutoScalingGroupARN}" />
</target>
<target name="run-stack">
<aws-config region="${aws.region}" profile="${aws.profile}" />
<aws-cf-runstack
name="${cf.stackName}"
updateOnConflict="true"
capabilities="CAPABILITY_IAM"
roleARN="arn:aws:iam::875000000000:role/eve"
templatePath="./cluster.template">
<param name="KeyName" value="${cf.KeyName}" />
<param name="DBName" value="${cf.DBName}" />
<param name="DBUser" value="${cf.DBUser}" />
<param name="DBPassword" value="${cf.DBPassword}" />
<param name="env" value="${cf.stackName}" />
</aws-cf-runstack>
</target>
</project>