Skip to content

Match up expected import identifier errors with actual format #120

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rjkip
Copy link

@rjkip rjkip commented Jun 17, 2025

(Thank you for providing this provider ❤️)

Took going to the source code to figure out the import ID for my environment variable should be colon-separated team_id:site_id:key not comma-separated team_id,site_id,key 😭

$ terraform import -var-file=.stg.tfvars -var-file=.stg.secrets.tfvars netlify_environment_variable.consultants redacted,redacted,REDACTED

data.netlify_team.team: Reading...
data.netlify_site.site: Reading...
data.netlify_site.site: Read complete after 0s [id=redacted]
netlify_environment_variable.consultants: Importing from ID "redacted,redacted,REDACTED"...
data.netlify_team.team: Read complete after 0s [id=redacted]

│ Error: Unexpected Import Identifier

│ Expected import identifier with one of these formats: team_id,key or team_id,site_id,key. Got:
│ "redacted,redacted,REDACTED"

@rjkip rjkip requested a review from a team as a code owner June 17, 2025 04:07
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

Successfully merging this pull request may close these issues.

1 participant