Skip to content

route53_record resource

kammy1231 edited this page Mar 19, 2018 · 7 revisions

route53_record

Actions

  • :create
  • :upsert
  • :delete
  • :nothing

Examples

  • Create a A record
route53_record "ex.exmaple.com" do
  action :create                    # default=>:create
  # record_name "ex.exmaple.com"    # default=>(name of resource)
  hosted_zone_id "HOSTEDZONEID"     # required
  region "ap-northeast-1"           # required
  profile "aws-credentials-profile" # default=>"default"
  ttl 60                            # =>Integer, required
  value "205.0.2.44"                # =>String or Array of String, required
  type "A"                          # required
end
  • Create a A record with multiple values
route53_record "ex.exmaple.com" do
  hosted_zone_id "HOSTEDZONEID"
  region "ap-northeast-1"
  ttl 60
  value [ "172.0.0.1" , "205.0.2.44" ]
  type "A"
end