Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---> terraform init
- Downloading modules (if any)...
- Get: file:///data//terraform-test/oreno-terraform/modules/vpc
- Do you want to copy the state from "s3"?
- Terraform has detected you're unconfiguring your previously set backend.
- Would you like to copy the state from "s3" to local state? Please answer
- "yes" or "no". If you answer "no", you will start with a blank local state.
- Enter a value: tf-eu-west-1
- Do you want to copy the state from "s3"?
- Terraform has detected you're unconfiguring your previously set backend.
- Would you like to copy the state from "s3" to local state? Please answer
- "yes" or "no". If you answer "no", you will start with a blank local state.
- Enter a value: eu-west-1
- Do you want to copy the state from "s3"?
- Terraform has detected you're unconfiguring your previously set backend.
- Would you like to copy the state from "s3" to local state? Please answer
- "yes" or "no". If you answer "no", you will start with a blank local state.
- Enter a value: no
- terraform env new dev
- Created and switched to environment "dev"!
- ---> terraform init -backend-config "bucket=tf-eu-west-1" -backend-config "region=eu-west-1" -backend-config "key=base/not_immutable/tf.state"
- Downloading modules (if any)...
- Get: file:///data/terraform-test/oreno-terraform/modules/vpc
- 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 environment. If you forget, other
- commands will detect it and remind you to do so if necessary.
- ---> terraform apply
- Creates the below path in s3
- tf-eu-west-1/env:/dev/base/not_immutable/base.state
- ---> terraform env new stg
- 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