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 Antworten
0
Akzeptierte Antwort

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
EXPERTE
Uri
beantwortet vor 4 Monaten
profile pictureAWS
EXPERTE
überprüft vor 4 Monaten
  • 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
EXPERTE
beantwortet vor 4 Monaten
0

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

Ryan
beantwortet vor 4 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen