Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing existing accounts issue - Error: extra_settings.0.value #87

Open
jmd-au opened this issue Aug 26, 2024 · 1 comment
Open

Importing existing accounts issue - Error: extra_settings.0.value #87

jmd-au opened this issue Aug 26, 2024 · 1 comment

Comments

@jmd-au
Copy link

jmd-au commented Aug 26, 2024

When importing existing Cloud Formation accounts in TF, and the resource that it's being associated with in the state doesn't have any definitions under extra_settings the import fails.

Full error code:

Error: extra_settings.0.value: '' expected type 'string', got unconvertible type 'float64', value: '0'

Code being used to import resources

resource "conformity_aws_account" "test_master" {
  name        = "${var.customer_name}-${var.account_id}"
  environment = "master"
  role_arn    = module.conformity.conformity_integration_arn
  external_id = module.conformity.external_id
  tags = [
    "${var.customer_name}"
  ]
}

# # import statement for existing account
import {
  to = conformity_aws_account.test_master
  id = "[redacted]"
}

I have also attempted importing to resources that have no variables or module references - same thing occurs.

I'm also bound by using the import {} block within terraform, as we run our code through CI and don't have direct access to the remote state from our machines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@jmd-au and others