Feature #2 - Simplified and Distributed Process of Executing Terraform Configurations

Simplified and Distributed Process of Executing Terraform Configurations

1
$ terrahub init
2
πŸ’‘ [s3-bucket] terraform init -no-color .
3
[s3-bucket] Initializing provider plugins...
4
- Checking for available provider plugins on https://releases.hashicorp.com...
5
[s3-bucket] - Downloading plugin for provider "aws" (1.21.0)...
6
[s3-bucket] Terraform has been successfully initialized!
7
[...]
8
βœ… Done
9
​
10
$ terrahub plan
11
πŸ’‘ [s3-bucket] terraform plan -no-color -var-file=./s3-bucket/default.tfvars -out=s3-bucket/.terraform/terraform.tfplan
12
[s3-bucket] Refreshing Terraform state in-memory prior to plan...
13
[s3-bucket] The refreshed state will be used to calculate this plan, but will not be
14
persisted to local or remote state storage.
15
[...]
16
βœ… Done
17
​
18
$ terrahub apply --auto-approve
19
πŸ’‘ [s3-bucket] terraform apply -no-color -var-file=./s3-bucket/default.tfvars -auto-approve=true -state-out=./s3-bucket/.terraform/terraform.tfstate
20
[s3-bucket] aws_s3_bucket.s3-bucket: Creating...
21
[...]
22
❌ [s3-bucket] Error: Error applying plan:
23
1 error(s) occurred:
24
* aws_s3_bucket.s3-bucket: 1 error(s) occurred:
25
* aws_s3_bucket.s3-bucket: Error creating S3 bucket: BucketAlreadyExists: The requested bucket name is not available. The bucket namespace is shared by all users of the system. Please select a different name and try again.
26
❌ [s3-bucket] status code: 409, request id: E953BE0A2F944F7A, host id: VTvexuPQ4uMRAuihHqk/RxyGf+6fyGoMygzs1u3I96Hn2LwsBjRNbAEQQz6knE2GA20+GF7Fjvo=
Copied!
Copy link