Difference between revisions of "Migration to s3 backend"

From wikieduonline
Jump to navigation Jump to search
(Created page with "<pre> terraform init Initializing modules... Initializing the backend... Do you want to copy existing state to the new backend? Pre-existing state was found while migratin...")
 
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
<pre>
+
<code>[[terraform init]]</code>
terraform init
 
Initializing modules...
 
  
Initializing the backend...
+
Initializing modules...
Do you want to copy existing state to the new backend?
+
  Pre-existing state was found while migrating the previous "local" backend to the
+
Initializing the backend...
  newly configured "s3" backend. No existing state was found in the newly
+
Do you want to copy existing state to the new backend?
  configured "s3" backend. Do you want to copy this state to the new "s3"
+
  Pre-existing state was found while migrating the previous "local" backend to the
  backend? Enter "yes" to copy and "no" to start with an empty state.
+
  newly configured "s3" backend. No existing state was found in the newly
 +
  configured "s3" backend. Do you want to copy this state to the new "s3"
 +
  backend? Enter "yes" to copy and "no" to start with an empty state.
 +
 +
  Enter a value: yes
 +
 
 +
 +
Successfully configured the backend "s3"! Terraform will automatically
 +
use this backend unless the backend configuration changes.  
  
  Enter a value: yes
+
Initializing [[provider plugins]]...
 +
- Reusing previous version of [[hashicorp/aws]] from the dependency [[lock file]]
 +
- Using previously-installed hashicorp/aws v3.57.0
  
 +
Terraform has been successfully initialized!
 +
 +
You may now begin working with Terraform. Try running "terraform plan" to see
 +
any changes that are required for your infrastructure. All Terraform commands
 +
should now work.
 +
 +
If you ever set or change modules or backend configuration for Terraform,
 +
rerun this command to reinitialize your working directory. If you forget, other
 +
commands will detect it and remind you to do so if necessary.
  
Successfully configured the backend "s3"! Terraform will automatically
 
use this backend unless the backend configuration changes.
 
  
Initializing provider plugins...
+
== See also ==
- Reusing previous version of hashicorp/aws from the dependency lock file
+
* {{terraform init}}
- Using previously-installed hashicorp/aws v3.57.0
+
* {{terraform backends}}
 
 
Terraform has been successfully initialized!
 
 
 
You may now begin working with Terraform. Try running "terraform plan" to see
 
any changes that are required for your infrastructure. All Terraform commands
 
should now work.
 
  
If you ever set or change modules or backend configuration for Terraform,
 
rerun this command to reinitialize your working directory. If you forget, other
 
commands will detect it and remind you to do so if necessary.
 
</pre>
 
  
== See also ==
+
[[Category:Terraform]]
* {{terraform init}}
 
* {{terraform backend}}
 

Latest revision as of 09:21, 22 October 2021

terraform init

Initializing modules...

Initializing the backend...
Do you want to copy existing state to the new backend?
  Pre-existing state was found while migrating the previous "local" backend to the
  newly configured "s3" backend. No existing state was found in the newly
  configured "s3" backend. Do you want to copy this state to the new "s3"
  backend? Enter "yes" to copy and "no" to start with an empty state.

  Enter a value: yes
 

Successfully configured the backend "s3"! Terraform will automatically
use this backend unless the backend configuration changes. 
Initializing provider plugins...
- Reusing previous version of hashicorp/aws from the dependency lock file
- Using previously-installed hashicorp/aws v3.57.0
Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.


See also[edit]

Advertising: