Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. ---> terraform init
  2. Downloading modules (if any)...
  3. Get: file:///data//terraform-test/oreno-terraform/modules/vpc
  4. Do you want to copy the state from "s3"?
  5. Terraform has detected you're unconfiguring your previously set backend.
  6. Would you like to copy the state from "s3" to local state? Please answer
  7. "yes" or "no". If you answer "no", you will start with a blank local state.
  8.  
  9. Enter a value: tf-eu-west-1
  10.  
  11. Do you want to copy the state from "s3"?
  12. Terraform has detected you're unconfiguring your previously set backend.
  13. Would you like to copy the state from "s3" to local state? Please answer
  14. "yes" or "no". If you answer "no", you will start with a blank local state.
  15.  
  16. Enter a value: eu-west-1
  17.  
  18. Do you want to copy the state from "s3"?
  19. Terraform has detected you're unconfiguring your previously set backend.
  20. Would you like to copy the state from "s3" to local state? Please answer
  21. "yes" or "no". If you answer "no", you will start with a blank local state.
  22.  
  23. Enter a value: no
  24.  
  25. terraform env new dev
  26. Created and switched to environment "dev"!
  27.  
  28. ---> terraform init -backend-config "bucket=tf-eu-west-1" -backend-config "region=eu-west-1" -backend-config "key=base/not_immutable/tf.state"
  29. Downloading modules (if any)...
  30. Get: file:///data/terraform-test/oreno-terraform/modules/vpc
  31.  
  32. Terraform has been successfully initialized!
  33.  
  34. You may now begin working with Terraform. Try running "terraform plan" to see
  35. any changes that are required for your infrastructure. All Terraform commands
  36. should now work.
  37.  
  38. If you ever set or change modules or backend configuration for Terraform,
  39. rerun this command to reinitialize your environment. If you forget, other
  40. commands will detect it and remind you to do so if necessary.
  41.  
  42. ---> terraform apply
  43.  
  44. Creates the below path in s3
  45. tf-eu-west-1/env:/dev/base/not_immutable/base.state
  46.  
  47. ---> terraform env new stg
  48.  
  49. terraform init -backend-config "bucket=tf-us-west-2" -backend-config "region=us-west-2" -backend-config "key=base/not_immutable/base.state"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement