akamai / cli-property-manager

Use this Property Manager CLI to automate Akamai property changes and deployments across many environments.
Apache License 2.0
29 stars 22 forks source link

Activate fails with certEnrollmentId error #74

Open nick-s-morgan opened 2 years ago

nick-s-morgan commented 2 years ago

I am automating the changes to a property using the following flow:

The activate step fails with the following error:

    {
        "message": "Need 'certEnrollmentId' of hostname in order to create secure edge hostname",
        "messageId": "missing_certEnrollmentId",
        "edgehostname": "**.*******.****.com.edgekey.net"
    }

I can see it is failing on the save part of the activation following the merge (which completes with no errors noted). I don't understand why it's trying to create a secure edge hostname. I just want to update an existing property and activate to staging.

I can manually go into ACC and activate the updated property version with no issues.

For reference, the hostnames.json looks to have the following format:

[
    {
        "cnameType": "EDGE_HOSTNAME",
        "cnameFrom": "****-******-******.****.com",
        "cnameTo": "**.*******.****.com.edgekey.net",
        "certProvisioningType": "CPS_MANAGED"
    }
]

For further reference, the output of the merge steps looks as follows:

├──────────────────────┼───────────────────────────────────────────────────────────────────────────────┤
│"validation performed"│"yes"                                                                          │
├──────────────────────┼───────────────────────────────────────────────────────────────────────────────┤
│"validation warnings" │"yes"                                                                          │
├──────────────────────┼───────────────────────────────────────────────────────────────────────────────┤
│"validation errors"   │"no"                                                                           │
├──────────────────────┼───────────────────────────────────────────────────────────────────────────────┤
│"hostname warnings"   │"no"                                                                           │
├──────────────────────┼───────────────────────────────────────────────────────────────────────────────┤
│"hostname errors"     │"no"                                                                           │
└──────────────────────┴───────────────────────────────────────────────────────────────────────────────┘