The Windows Install Route53 Tools script installs a PowerShell module in your instance that's discoverable via your PSModulePath. The PowerShell module is esentially a wrapper for the following Route53 API actions:
CreateHostedZone ListHostedZones DeleteHostedZone GetHostedZone ChangeResourceRecordSets ListResourceRecordSets
And provides some helper cmdlets for each action:
Show-HostedZones Remove-HostedZone Show-ResourceRecords New-ARecord Remove-ARecord Update-ARecord
Windows Update Route53 Record is a sample script that uses this module to update an A record hosted with Route53. The code sample below basically:
Import-Module Route53Tools [Route53Helper.Authentication]::AwsAccessKeyId = "$env:AWS_ACCESS_KEY_ID" [Route53Helper.Authentication]::AwsSecretAccessKey= "$env:AWS_SECRET_ACCESS_KEY" "Using IP Address: $env:DNS_RECORD_IP" Update-ARecord -domainName "$env:DOMAIN_NAME"` -type "A"` -ttl "$env:NEW_TTL"` -hostedZoneId "$env:HOSTED_ZONE_ID"` -comment "$env:COMMENT"` -newIP "$env:DNS_RECORD_IP"
© 2006-2014 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.