Skip to content

esa_record #9162

@daniele-spreafico

Description

@daniele-spreafico

We're using version 1.261.0

We're performing an import for alicloud_esa_site (esa_site_preProd_admin). and related "alicloud_esa_record"(cname_preProd_admin)

In the generated script of alicloud_esa_record retrived from state show, we set the site_id reference:
site_id = alicloud_esa_site.esa_site_preProd_admin.id

Running a “terraform plan” we’re getting this error:

Error: site_id: must be a whole number, got 9.3180319079****e+14

│ with alicloud_esa_record.cname_preProd_admin,
│ on esa.tf line 112, in resource "alicloud_esa_record" "cname_preProd_admin":
│ 112: resource "alicloud_esa_record" "cname_preProd_admin" {

We also tried to force a conversion to integer in multiple ways:

#site_id = tonumber(alicloud_esa_site.esa_site_preProd_admin.id)
#site_id = tonumber("93180319079****")

But got the same error.

Moreover, performing import of existing resource "alicloud_esa_record" we're getting as site_id a value that is different from the related siteId we get from what we got on "alicloud_esa_site":

site_id from alicloud_esa_site: import 93180319079****
site_id from alicloud_esa_record import: 144598****

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