简体   繁体   中英

Error trying update route53 with awscli and powershell

I am very new at awscli and programming in general. I am tyring to update a route53 record when i start up an instance using cmd and powershell. However, i keep getting this error when running it:

Error parsing parameter '--change-batch': Expected: '=', received: 'ÿ' for input: ÿþ{

The commmand i am running is: aws route53 change-resource-record-sets --hosted-zone-id Z337IOSIXTUZ2M --change-batch=file://C:\temp\config.json

I have tried just about all combinations like: aws route53 change-resource-record-sets --hosted-zone-id Z337IOSIXTUZ2M --change-batch='C:\temp\config.json'

aws route53 change-resource-record-sets --hosted-zone-id Z337IOSIXTUZ2M --change-batch=file://C:\temp\config.json

aws route53 change-resource-record-sets --hosted-zone-id Z337IOSIXTUZ2M --change-batch=C:\temp\config.json

But nothing seems to work. If i put the config.json file in my home directory on a ubuntu vm and run the same command it works, so i am pretty sure my problem is with the --change-batch stuff.

Any help would be very much appropriated as i have been working on this for a couple of days.

I keep getting this when try to run it:

Error parsing parameter '--change-batch': Expected: '=', received: 'ÿ' for input: ÿþ{

$ aws route53 change-resource-record-sets --hosted-zone-id Z337IOSIXTUZ2M --change-batch file://C:\temp\config.json

The parameters change-batch doesn't accept value with = . The above command should work for you. Ref: Route53 - Change Resource Record Set

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM