Class: Ufo::Cfn::Stack::Builder::Resources::Dns
- Inherits:
-
Base
- Object
- Ufo::CLI::Base
- Base
- Base
- Ufo::Cfn::Stack::Builder::Resources::Dns
- Defined in:
- lib/ufo/cfn/stack/builder/resources/dns.rb
Instance Attribute Summary
Attributes inherited from Base
Attributes inherited from Ufo::CLI::Base
Instance Method Summary collapse
Methods inherited from Base
build, #initialize, #managed_security_group, #managed_security_groups?, #security_groups
Methods included from Ufo::Concerns
Methods included from Ufo::Concerns::Names
Methods included from AwsServices
#acm, #applicationautoscaling, #aws_options, #cloudformation, #cloudwatchlogs, #ec2, #ecr, #ecs, #elb, #find_stack, #ssm_client, #stack_resources, #status, #task_definition_arns
Methods inherited from Ufo::CLI::Base
Methods included from Utils::Sure
Methods included from Utils::Pretty
#pretty_home, #pretty_path, #pretty_time
Methods included from Utils::Logging
Constructor Details
This class inherits a constructor from Ufo::Cfn::Stack::Builder::Base
Instance Method Details
#build ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/ufo/cfn/stack/builder/resources/dns.rb', line 3 def build return unless vars[:create_route53] props = { Name: dns_name, # {stack_name}.yourdomain. dont forget the trailing period Comment: dns.comment, Type: dns.type, # CNAME TTL: dns.ttl, # 60 ttl has special casing ResourceRecords: [{"Fn::GetAtt": "Elb.DNSName"}] } # HostedZoneName: yourdomain. # dont forget the trailing period props[:HostedZoneName] = hosted_zone_name if hosted_zone_name props[:HostedZoneId] = dns.hosted_zone_id if dns.hosted_zone_id { Type: "AWS::Route53::RecordSet", Properties: props } end |