Skip to content

Commit

Permalink
Switch to using ACM
Browse files Browse the repository at this point in the history
  • Loading branch information
joehoyle committed Dec 15, 2016
1 parent 9733a83 commit ff73d04
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions cloudformation-template.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Description": "Human Made Tachyon Image Server with Lambda",
"Description": "Human Made Tachyon Image Server with Lambda v1.0",
"Parameters": {
"KeyPair": {
"Type": "AWS::EC2::KeyPair::KeyName",
Expand All @@ -19,9 +19,9 @@
"Description" : "AMI ID of the tachyon server (e.g ami-f27048ef)",
"Default" : "ami-f27048ef"
},
"SSLIAMCertificateID" : {
"SSLACMCertificateARN" : {
"Type" : "String",
"Description" : "SSL Certificate ID, must be added to the AWS account already. (optional)"
"Description" : "SSL ACM Certificate ARN, either specify this or SSLIAMCertificateID."
},
"VPC" : {
"Type" : "AWS::EC2::VPC::Id",
Expand Down Expand Up @@ -50,9 +50,6 @@
"Description" : "The S3 Bucket to resize images from."
}
},
"Conditions" : {
"UseSSLCertificate" : {"Fn::Not" : [{"Fn::Equals" : [{"Ref" : "SSLIAMCertificateID"}, ""]} ] }
},
"Resources" : {
"EC2SecurityGroup" : {
"Type": "AWS::EC2::SecurityGroup",
Expand Down Expand Up @@ -230,14 +227,11 @@
"ErrorCode" : 504
}
],
"ViewerCertificate" : { "Fn::If" : [ "UseSSLCertificate",
{
"IamCertificateId" : { "Ref" : "SSLIAMCertificateID" },
"SslSupportMethod" : "sni-only",
"MinimumProtocolVersion" : "TLSv1"
},
{ "Ref" : "AWS::NoValue" }
] },
"ViewerCertificate" : {
"AcmCertificateArn" : { "Ref" : "SSLACMCertificateARN" },
"SslSupportMethod" : "sni-only",
"MinimumProtocolVersion" : "TLSv1"
},
"HttpVersion" : "http2"
}
}
Expand Down

0 comments on commit ff73d04

Please sign in to comment.