BUG? The field "TTL" is not supported by Step Functions (via Route 53: ChangeResourceRecordSets SDK)

0

Need some help with below please.

{
"ChangeBatch": {  	
    "Changes": [
  	{
   	 "Action": "UPSERT",
   	 "ResourceRecordSet": {
   	   "TTL": "60",
   	   "Type": "TXT",
   	   "Name": "aaa",
   	   "ResourceRecords": [
   	     {
   	       "Value": "bbb"
   	     }
   	   ]
   	 }
  	}
	]
},
"HostedZoneId": "ccc"
}

I remove "TTL" and I get following:

    	{
"error": "Route53.InvalidInputException",
"cause": "Invalid request: Expected exactly one of [AliasTarget, all of [TTL, and ResourceRecords], or TrafficPolicyInstanceId], but found none in Change with [Action=UPSERT, Name=sup, Type=TXT, SetIdentifier=null] (Service: Route53, Status Code: 400, Request ID: 888466b9-9f91-4a5d-89d3-bcb503e10868)"
}
3回答
0
承認された回答

The TTL should be within the ResourceRecordSet, i.e.:

{
"ChangeBatch": {  	
    "Changes": [
  	{
   	 "Action": "UPSERT",
   	 "ResourceRecordSet": {
   	   "Type": "TXT",
   	   "TTL": "60",
   	   "Name": "aaa",
   	   "ResourceRecords": [
   	     {
   	       "Value": "bbb"
   	     }
   	   ]
   	 }
  	}
	]
},
"HostedZoneId": "ccc"
}
profile pictureAWS
エキスパート
Uri
回答済み 4ヶ月前
profile pictureAWS
エキスパート
レビュー済み 4ヶ月前
  • Thanks for the reply. That still doesn't work.

    Invalid State Machine Definition: 'SCHEMA_VALIDATION_FAILED: The field "TTL" is not supported by Step Functions at /States/StateName/Parameters'

  • Change the field name to "Ttl" and the value to an integer.

0

Hi,

Can you try Uri's proposition again with 60 (integer) instead of "60" (string) ?

Best

Didier

profile pictureAWS
エキスパート
回答済み 4ヶ月前
0

"Ttl" and integer value worked! Thanks both :)

Ryan
回答済み 4ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ