Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save yamadayutaka/bf774ecf249ac17d08f41a5e397d2e85 to your computer and use it in GitHub Desktop.
Save yamadayutaka/bf774ecf249ac17d08f41a5e397d2e85 to your computer and use it in GitHub Desktop.
Result of TestTerragruntWorksWithImpersonateGCSBackend
$ go test ./test -v -run TestTerragruntWorksWithImpersonateGCSBackend
=== RUN TestTerragruntWorksWithImpersonateGCSBackend
runTerragruntVersionCommand after split
[terragrunt apply -auto-approve --terragrunt-non-interactive --terragrunt-config /tmp/terragrunt-test795448504/terragrunt.hcl --terragrunt-working-dir fixture-gcs/]
time=2023-05-02T07:08:23Z level=error msg=Create GCS bucket terragrunt-test-bucket-xaaffl returned an error: googleapi: Error 403: *****@*****.iam.gserviceaccount.com does not have storage.buckets.create access to the Google Cloud project. Permission 'storage.buckets.create' denied on resource (or it may not exist)., forbidden. Sleeping for 10s and will try again. prefix=[/tmp/terragrunt-test795448504]
time=2023-05-02T07:08:34Z level=error msg=Create GCS bucket terragrunt-test-bucket-xaaffl returned an error: googleapi: Error 403: *****@*****.iam.gserviceaccount.com does not have storage.buckets.create access to the Google Cloud project. Permission 'storage.buckets.create' denied on resource (or it may not exist)., forbidden. Sleeping for 10s and will try again. prefix=[/tmp/terragrunt-test795448504]
time=2023-05-02T07:08:45Z level=error msg=Create GCS bucket terragrunt-test-bucket-xaaffl returned an error: googleapi: Error 403: *****@*****.iam.gserviceaccount.com does not have storage.buckets.create access to the Google Cloud project. Permission 'storage.buckets.create' denied on resource (or it may not exist)., forbidden. Sleeping for 10s and will try again. prefix=[/tmp/terragrunt-test795448504]
time=2023-05-02T07:08:57Z level=error msg=Create GCS bucket terragrunt-test-bucket-xaaffl returned an error: googleapi: Error 403: *****@*****.iam.gserviceaccount.com does not have storage.buckets.create access to the Google Cloud project. Permission 'storage.buckets.create' denied on resource (or it may not exist)., forbidden. Sleeping for 10s and will try again. prefix=[/tmp/terragrunt-test795448504]
runTerragruntVersionCommand after split
[terragrunt apply -auto-approve --terragrunt-non-interactive --terragrunt-config /tmp/terragrunt-test3641068488/terragrunt.hcl --terragrunt-working-dir fixture-gcs-impersonate/]
Initializing the backend...
Successfully configured the backend "gcs"! Terraform will automatically
use this backend unless the backend configuration changes.
Initializing provider plugins...
- Reusing previous version of hashicorp/template from the dependency lock file
- Installing hashicorp/template v2.2.0...
- Installed hashicorp/template v2.2.0 (signed by HashiCorp)
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.
Acquiring state lock. This may take a few moments...
data.template_file.test: Reading...
data.template_file.test: Read complete after 0s [id=16e936de6b5ccd5a7ecf3ad558469e38d9b234c28ac93e8076008334797e11de]
Changes to Outputs:
+ rendered_template = "Hello, I am a template. My sample_var value = hello"
You can apply this plan to save these new output values to the Terraform
state, without changing any real infrastructure.
Releasing state lock. This may take a few moments...
Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
Outputs:
rendered_template = "Hello, I am a template. My sample_var value = hello"
integration_test.go:4350: Deleting test GCS bucket terragrunt-test-bucket-xaaffl
--- PASS: TestTerragruntWorksWithImpersonateGCSBackend (78.61s)
PASS
ok github.com/gruntwork-io/terragrunt/test 78.634s
@yamadayutaka
Copy link
Author

Service account email address is masked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment