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 Answers
0
Accepted Answer

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
EXPERT
Uri
answered 4 months ago
profile pictureAWS
EXPERT
reviewed 4 months ago
  • 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
EXPERT
answered 4 months ago
0

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

Ryan
answered 4 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions