You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using aws_sdk_route53 to create a CNAME record for certificate domain validation I get an error back from AWS:
0: InvalidInput: Invalid request: Expected exactly one of [AliasTarget, all of [TTL, and ResourceRecords], or TrafficPolicyInstanceId], but found none in Change with [Action=CREATE, Name=_06a2ec5151158a9b7b35847a898501a4.*redacted*.com., Type=CNAME, SetIdentifier=null]
The code I'm using to make the creation request is this:
let client = aws_sdk_route53::Client::new(cfg);
let out = client
.change_resource_record_sets()
.hosted_zone_id(record.hosted_zone_id.as_str())
.change_batch(
ChangeBatch::builder()
.changes(
Change::builder()
.action(ChangeAction::Create)
.resource_record_set(
ResourceRecordSet::builder()
.name(record.record_name.as_str())
.r#type(record.type_is.as_str().into())
.set_ttl(record.ttl.as_ref().clone()) // value is "Some(60)"
.build(),
)
.build(),
)
.build(),
)
.send()
.await?;
After a little digging it seems this can happen if the generated json has a ttl name or value of something like Ttl instead of TTL, which is why I'm making this ticket. I can't seem to find where the serialization happens, and don't seem to get anything useful from tracing (that I can pick out of the noise). It may be I'm not making the right request, or it may be that whatever JSON this request turns into is incorrect.
Expected Behavior
I expected the call to succeed :)
Current Behavior
The request is erring.
Reproduction Steps
Given above.
Possible Solution
Check the request serialization?
Additional Information/Context
No response
Version
0.33.1
Environment details (OS name and version, etc.)
macos
Logs
No response
The text was updated successfully, but these errors were encountered:
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
When using
aws_sdk_route53
to create a CNAME record for certificate domain validation I get an error back from AWS:The code I'm using to make the creation request is this:
After a little digging it seems this can happen if the generated json has a ttl name or value of something like
Ttl
instead ofTTL
, which is why I'm making this ticket. I can't seem to find where the serialization happens, and don't seem to get anything useful from tracing (that I can pick out of the noise). It may be I'm not making the right request, or it may be that whatever JSON this request turns into is incorrect.Expected Behavior
I expected the call to succeed :)
Current Behavior
The request is erring.
Reproduction Steps
Given above.
Possible Solution
Check the request serialization?
Additional Information/Context
No response
Version
Environment details (OS name and version, etc.)
macos
Logs
No response
The text was updated successfully, but these errors were encountered: