Open jimanvlad opened 4 years ago
Same issue
managedZones.append({
'name': managedZoneResourceName,
'type': 'gcp-types/dns-v1:managedZones',
'properties': {
'project': '$(ref.' + projectResourceName + '.projectId)',
'name': managedZoneResourceName,
'dnsName': 'awesomedomain.com..',
'visibility': 'public'
}
})
{"ResourceType":"gcp-types/dns-v1:managedZones","ResourceErrorCode":"400","ResourceErrorMessage":{"code":400,"message":"Request contains an invalid argument.","status":"INVALID_ARGUMENT","statusMessage":"Bad Request","requestPath":"https://dns.googleapis.com/dns/v1/projects/XXX/managedZones","httpMethod":"POST"}}
Turns out that 'description' is a required field. @jimanvlad that makes the call work.
... sigh
Ah, that wasn’t very obvious :(
But I came to the conclustion that it is impossible to manage your zone files / resource records using DM. See also https://github.com/GoogleCloudPlatform/deploymentmanager-samples/issues/62 In a nutshell,it is possible create your records with DM, but you can not do a delta update to the records, which renders it useless.
@komasoftware Please take a look at the 'type': 'gcp-types/dns-v1:resourceRecordSets'
type. This was published at the end of 2018, after your thread.
Official DM type examples
CFT DNS record examples
I believe this solved the recordset update problem you had. Let me know if you have any feedback on this type as well.
Hi,
I am trying to create a managed DNS zone following the example here and I get the following error in Deployment Manager:
Code:
I also tried with
type: dns.v1.managedZone
as well as type:gcp-types/dns-v1beta2:managedZones
. I get the same exact same error regardless of the properties that I add.I can create the managed zone via the Console, gcloud command as well as pinging the REST API manually.
It's unclear why my Deployment Manager request is invalid, and what the INVALID_ARGUMENT is.
Any ideas?