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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠