mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Teach EC2 AMI release code to send an SNS notification after publishing
new AMIs if EC2SNSTOPIC is defined. Reviewed by: gjb Requested by: Amazon
This commit is contained in:
parent
761d344c16
commit
a6fe18b04b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=336420
|
@ -11,6 +11,12 @@ AMINAMESUFFIX!= date +-%Y-%m-%d
|
||||||
.if defined(EC2PUBLIC)
|
.if defined(EC2PUBLIC)
|
||||||
PUBLISH= --public
|
PUBLISH= --public
|
||||||
.endif
|
.endif
|
||||||
|
.if defined(EC2SNSTOPIC)
|
||||||
|
EC2SNSREL= ${REVISION}-${BRANCH}
|
||||||
|
EC2_SVNBRANCH!= svn info --show-item relative-url ${WORLDDIR} | sed -e 's/\^\///'
|
||||||
|
EC2_SVNREV!= svn info --show-item last-changed-revision ${WORLDDIR}
|
||||||
|
EC2SNSVERS= ${EC2_SVNBRANCH}@${EC2_SVNREV}
|
||||||
|
.endif
|
||||||
|
|
||||||
CLEANFILES+= ec2ami
|
CLEANFILES+= ec2ami
|
||||||
|
|
||||||
|
@ -55,5 +61,6 @@ ec2ami: cw-ec2 ${CW_EC2_PORTINSTALL}
|
||||||
${.OBJDIR}/ec2.raw \
|
${.OBJDIR}/ec2.raw \
|
||||||
"${TYPE} ${REVISION}-${BRANCH}-${TARGET}${AMINAMESUFFIX}" \
|
"${TYPE} ${REVISION}-${BRANCH}-${TARGET}${AMINAMESUFFIX}" \
|
||||||
"${TYPE} ${REVISION}-${BRANCH}-${TARGET}" \
|
"${TYPE} ${REVISION}-${BRANCH}-${TARGET}" \
|
||||||
${AWSREGION} ${AWSBUCKET} ${AWSKEYFILE}
|
${AWSREGION} ${AWSBUCKET} ${AWSKEYFILE} \
|
||||||
|
${EC2SNSTOPIC} ${EC2SNSREL} ${EC2SNSVERS}
|
||||||
@touch ${.TARGET}
|
@touch ${.TARGET}
|
||||||
|
|
Loading…
Reference in a new issue