Lints.
This commit is contained in:
parent
1433f28846
commit
f37bad0e00
260 changed files with 6363 additions and 3766 deletions
|
|
@ -1,47 +1,47 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
template = {
|
||||
"AWSTemplateFormatVersion" : "2010-09-09",
|
||||
"AWSTemplateFormatVersion": "2010-09-09",
|
||||
|
||||
"Description" : "AWS CloudFormation Sample Template Route53_RoundRobin: Sample template showing how to use weighted round robin (WRR) DNS entried via Amazon Route 53. This contrived sample uses weighted CNAME records to illustrate that the weighting influences the return records. It assumes that you already have a Hosted Zone registered with Amazon Route 53. **WARNING** This template creates one or more AWS resources. You will be billed for the AWS resources used if you create a stack from this template.",
|
||||
"Description": "AWS CloudFormation Sample Template Route53_RoundRobin: Sample template showing how to use weighted round robin (WRR) DNS entried via Amazon Route 53. This contrived sample uses weighted CNAME records to illustrate that the weighting influences the return records. It assumes that you already have a Hosted Zone registered with Amazon Route 53. **WARNING** This template creates one or more AWS resources. You will be billed for the AWS resources used if you create a stack from this template.",
|
||||
|
||||
"Resources" : {
|
||||
"Resources": {
|
||||
|
||||
"MyZone": {
|
||||
"Type" : "AWS::Route53::HostedZone",
|
||||
"Properties" : {
|
||||
"Name" : "my_zone"
|
||||
}
|
||||
"MyZone": {
|
||||
"Type": "AWS::Route53::HostedZone",
|
||||
"Properties": {
|
||||
"Name": "my_zone"
|
||||
}
|
||||
},
|
||||
|
||||
"MyDNSRecord": {
|
||||
"Type": "AWS::Route53::RecordSetGroup",
|
||||
"Properties": {
|
||||
"HostedZoneName": {"Ref": "MyZone"},
|
||||
"Comment": "Contrived example to redirect to aws.amazon.com 75% of the time and www.amazon.com 25% of the time.",
|
||||
"RecordSets": [{
|
||||
"SetIdentifier": {"Fn::Join": [" ", [{"Ref": "AWS::StackName"}, "AWS"]]},
|
||||
"Name": {"Fn::Join": ["", [{"Ref": "AWS::StackName"}, ".", {"Ref": "AWS::Region"}, ".", {"Ref": "MyZone"}, "."]]},
|
||||
"Type": "CNAME",
|
||||
"TTL": "900",
|
||||
"ResourceRecords": ["aws.amazon.com"],
|
||||
"Weight": "3"
|
||||
}, {
|
||||
"SetIdentifier": {"Fn::Join": [" ", [{"Ref": "AWS::StackName"}, "Amazon"]]},
|
||||
"Name": {"Fn::Join": ["", [{"Ref": "AWS::StackName"}, ".", {"Ref": "AWS::Region"}, ".", {"Ref": "MyZone"}, "."]]},
|
||||
"Type": "CNAME",
|
||||
"TTL": "900",
|
||||
"ResourceRecords": ["www.amazon.com"],
|
||||
"Weight": "1"
|
||||
}]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"MyDNSRecord" : {
|
||||
"Type" : "AWS::Route53::RecordSetGroup",
|
||||
"Properties" : {
|
||||
"HostedZoneName" : {"Ref": "MyZone"},
|
||||
"Comment" : "Contrived example to redirect to aws.amazon.com 75% of the time and www.amazon.com 25% of the time.",
|
||||
"RecordSets" : [{
|
||||
"SetIdentifier" : { "Fn::Join" : [ " ", [{"Ref" : "AWS::StackName"}, "AWS" ]]},
|
||||
"Name" : { "Fn::Join" : [ "", [{"Ref" : "AWS::StackName"}, ".", {"Ref" : "AWS::Region"}, ".", {"Ref" : "MyZone"}, "."]]},
|
||||
"Type" : "CNAME",
|
||||
"TTL" : "900",
|
||||
"ResourceRecords" : ["aws.amazon.com"],
|
||||
"Weight" : "3"
|
||||
},{
|
||||
"SetIdentifier" : { "Fn::Join" : [ " ", [{"Ref" : "AWS::StackName"}, "Amazon" ]]},
|
||||
"Name" : { "Fn::Join" : [ "", [{"Ref" : "AWS::StackName"}, ".", {"Ref" : "AWS::Region"}, ".", {"Ref" : "MyZone"}, "."]]},
|
||||
"Type" : "CNAME",
|
||||
"TTL" : "900",
|
||||
"ResourceRecords" : ["www.amazon.com"],
|
||||
"Weight" : "1"
|
||||
}]
|
||||
}
|
||||
"Outputs": {
|
||||
"DomainName": {
|
||||
"Description": "Fully qualified domain name",
|
||||
"Value": {"Ref": "MyDNSRecord"}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"Outputs" : {
|
||||
"DomainName" : {
|
||||
"Description" : "Fully qualified domain name",
|
||||
"Value" : { "Ref" : "MyDNSRecord" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue