Difference between revisions of "Terraform import"

From wikieduonline
Jump to navigation Jump to search
Line 20: Line 20:
 
  aws_identitystore_user.testimport: Refreshing state... [id=testimport]
 
  aws_identitystore_user.testimport: Refreshing state... [id=testimport]
 
  ╷
 
  ╷
  │ Error: reading [[AWS SSO Identity Store User]] (testimport): expected a [[resource id]] in the form: identity-store- id/user-id
+
  │ Error: reading [[AWS SSO Identity Store User]] (testimport): expected a [[resource id]] in the form: identity-store-id/user-id
 
  │   
 
  │   
 
  │  
 
  │  

Revision as of 16:48, 27 February 2023

Before using terraform import you must manually write a resource configuration block for the resource.

Examples

Errors

aws_identitystore_user.testimport: Importing from ID "testimport"...
aws_identitystore_user.testimport: Import prepared!
  Prepared aws_identitystore_user for import
aws_identitystore_user.testimport: Refreshing state... [id=testimport]
╷
│ Error: reading AWS SSO Identity Store User (testimport): expected a resource id in the form: identity-store-id/user-id
│  
│ 
╵

Errors

Related terms

See also

  • https://www.terraform.io/docs/cli/import/index.html
  • Advertising: