Skip to content

edge hostname provision issue #4

@yshtein

Description

@yshtein

hi

I'm using the new provider 8.0.0.

And I have an issue with the edge hostname resource provision

I'm using this resource

`
resource "akamai_edge_hostname" "hostname" {
product_id = "prd_Fresca"
contract_id = var.contract_id
group_id = var.group_id
ip_behavior = "IPV4"
edge_hostname = "${var.tenant_name}.edgekey.net"
certificate = akamai_cps_dv_enrollment.cert.id
depends_on = [ aws_route53_record.akamai_dns_validation , akamai_cps_dv_validation.dv_validation ]

}`

And sometimes I get the error below :

Error: Provider produced inconsistent result after apply │ │ When applying changes to akamai_edge_hostname.hostname, provider │ "provider[\"registry.terraform.io/akamai/akamai\"]" produced an unexpected │ new value: Root resource was present, but now absent. │ │ This is a bug in the provider, which should be reported in the provider's │ own issue tracker.

The edge-hostname was created on the system, but the terraform code failed

When running apply again, it tries to create the resources again because the terrafom state is not updated with the edge hostname resource so the apply failed with "resource already exists"
To fix it, i have to import the edge hostname resources to my state and then run apply again, but sometimes it works and sometimes it fails with this error :

Error: error: Changes to non-updatable fields 'product_id' and 'certificate' are not permitted │ │ with akamai_edge_hostname.hostname, │ on main.tf line 103, in resource "akamai_edge_hostname" "hostname": │ 103: resource "akamai_edge_hostname" "hostname" { │

destroy doesn't work either.

Can someone advise
thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions