Advertisement
Guest User

Untitled

a guest
May 19th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.78 KB | None | 0 0
  1. Example tests passing WITHOUT policy attached:
  2.  
  3. LAM:test mrob$ go test -v -run TestTerraformAwsS3ExampleWithoutPolicy
  4. === RUN TestTerraformAwsS3ExampleWithoutPolicy
  5. === PAUSE TestTerraformAwsS3ExampleWithoutPolicy
  6. === CONT TestTerraformAwsS3ExampleWithoutPolicy
  7. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:19-05:00 region.go:91: Using region eu-west-3
  8. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:19-05:00 retry.go:69: Running terraform [init -upgrade=false]
  9. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:19-05:00 command.go:53: Running command terraform with args [init -upgrade=false]
  10. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:19-05:00 command.go:121:
  11. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:19-05:00 command.go:121: Initializing provider plugins...
  12. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:20-05:00 command.go:121:
  13. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:20-05:00 command.go:121: The following providers do not have any version constraints in configuration,
  14. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:20-05:00 command.go:121: so the latest version was installed.
  15. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:20-05:00 command.go:121:
  16. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:20-05:00 command.go:121: To prevent automatic upgrades to new major versions that may contain breaking
  17. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:20-05:00 command.go:121: changes, it is recommended to add version = "..." constraints to the
  18. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:20-05:00 command.go:121: corresponding provider blocks in configuration, with the constraint strings
  19. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:20-05:00 command.go:121: suggested below.
  20. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:20-05:00 command.go:121:
  21. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:20-05:00 command.go:121: * provider.aws: version = "~> 2.9"
  22. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:20-05:00 command.go:121:
  23. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:20-05:00 command.go:121: Terraform has been successfully initialized!
  24. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:20-05:00 command.go:121:
  25. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:20-05:00 command.go:121: You may now begin working with Terraform. Try running "terraform plan" to see
  26. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:20-05:00 command.go:121: any changes that are required for your infrastructure. All Terraform commands
  27. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:20-05:00 command.go:121: should now work.
  28. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:20-05:00 command.go:121:
  29. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:20-05:00 command.go:121: If you ever set or change modules or backend configuration for Terraform,
  30. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:20-05:00 command.go:121: rerun this command to reinitialize your working directory. If you forget, other
  31. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:20-05:00 command.go:121: commands will detect it and remind you to do so if necessary.
  32. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:20-05:00 retry.go:69: Running terraform [get -update]
  33. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:20-05:00 command.go:53: Running command terraform with args [get -update]
  34. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:20-05:00 retry.go:69: Running terraform [apply -input=false -lock=false -auto-approve -var tag_bucket_name=terratest-aws-s3-example-2joqc2 -var tag_bucket_environment=Automated Testing]
  35. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:20-05:00 command.go:53: Running command terraform with args [apply -input=false -lock=false -auto-approve -var tag_bucket_name=terratest-aws-s3-example-2joqc2 -var tag_bucket_environment=Automated Testing]
  36. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:22-05:00 command.go:121: data.aws_caller_identity.current: Refreshing state...
  37. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:26-05:00 command.go:121: aws_s3_bucket.test_bucket: Creating...
  38. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:26-05:00 command.go:121: acceleration_status: "" => "<computed>"
  39. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:26-05:00 command.go:121: acl: "" => "private"
  40. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:26-05:00 command.go:121: arn: "" => "<computed>"
  41. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:26-05:00 command.go:121: bucket: "" => "123211981234-terratest-aws-s3-example-2joqc2"
  42. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:26-05:00 command.go:121: bucket_domain_name: "" => "<computed>"
  43. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:26-05:00 command.go:121: bucket_regional_domain_name: "" => "<computed>"
  44. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:26-05:00 command.go:121: force_destroy: "" => "false"
  45. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:26-05:00 command.go:121: hosted_zone_id: "" => "<computed>"
  46. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:26-05:00 command.go:121: region: "" => "<computed>"
  47. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:26-05:00 command.go:121: request_payer: "" => "<computed>"
  48. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:26-05:00 command.go:121: tags.%: "" => "2"
  49. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:26-05:00 command.go:121: tags.Environment: "" => "Automated Testing"
  50. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:26-05:00 command.go:121: tags.Name: "" => "terratest-aws-s3-example-2joqc2"
  51. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:26-05:00 command.go:121: versioning.#: "" => "1"
  52. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:26-05:00 command.go:121: versioning.0.enabled: "" => "true"
  53. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:26-05:00 command.go:121: versioning.0.mfa_delete: "" => "false"
  54. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:26-05:00 command.go:121: website_domain: "" => "<computed>"
  55. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:26-05:00 command.go:121: website_endpoint: "" => "<computed>"
  56. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:36-05:00 command.go:121: aws_s3_bucket.test_bucket: Still creating... (10s elapsed)
  57. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:36-05:00 command.go:121: aws_s3_bucket.test_bucket: Creation complete after 11s (ID: 123211981234-terratest-aws-s3-example-2joqc2)
  58. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:36-05:00 command.go:121: data.aws_iam_policy_document.s3_bucket_policy: Refreshing state...
  59. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:36-05:00 command.go:121:
  60. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:36-05:00 command.go:121: Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
  61. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:36-05:00 command.go:121:
  62. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:36-05:00 command.go:121: Outputs:
  63. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:36-05:00 command.go:121:
  64. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:36-05:00 command.go:121: bucket_arn = arn:aws:s3:::123211981234-terratest-aws-s3-example-2joqc2
  65. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:36-05:00 command.go:121: bucket_id = 123211981234-terratest-aws-s3-example-2joqc2
  66. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:36-05:00 retry.go:69: Running terraform [output -no-color bucket_id]
  67. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:36-05:00 command.go:53: Running command terraform with args [output -no-color bucket_id]
  68. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:37-05:00 command.go:121: 123211981234-terratest-aws-s3-example-2joqc2
  69. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:37-05:00 retry.go:69: Running terraform [destroy -auto-approve -input=false -lock=false -var tag_bucket_name=terratest-aws-s3-example-2joqc2 -var tag_bucket_environment=Automated Testing]
  70. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:37-05:00 command.go:53: Running command terraform with args [destroy -auto-approve -input=false -lock=false -var tag_bucket_name=terratest-aws-s3-example-2joqc2 -var tag_bucket_environment=Automated Testing]
  71. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:39-05:00 command.go:121: data.aws_caller_identity.current: Refreshing state...
  72. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:39-05:00 command.go:121: aws_s3_bucket.test_bucket: Refreshing state... (ID: 123211981234-terratest-aws-s3-example-2joqc2)
  73. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:47-05:00 command.go:121: data.aws_iam_policy_document.s3_bucket_policy: Refreshing state...
  74. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:49-05:00 command.go:121: aws_s3_bucket.test_bucket: Destroying... (ID: 123211981234-terratest-aws-s3-example-2joqc2)
  75. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:50-05:00 command.go:121: aws_s3_bucket.test_bucket: Destruction complete after 1s
  76. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:50-05:00 command.go:121:
  77. TestTerraformAwsS3ExampleWithoutPolicy 2019-05-08T21:58:50-05:00 command.go:121: Destroy complete! Resources: 1 destroyed.
  78. --- PASS: TestTerraformAwsS3ExampleWithoutPolicy (30.45s)
  79. PASS
  80. ok _/Users/mrobin99/Documents/terratest/test 30.485s
  81.  
  82.  
  83.  
  84.  
  85. Example tests passing WITH policy attached:
  86.  
  87. LAM:test mrob$ go test -v -run TestTerraformAwsS3ExampleWithPolicy
  88. === RUN TestTerraformAwsS3ExampleWithPolicy
  89. === PAUSE TestTerraformAwsS3ExampleWithPolicy
  90. === CONT TestTerraformAwsS3ExampleWithPolicy
  91. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:26-05:00 region.go:91: Using region us-east-1
  92. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:26-05:00 retry.go:69: Running terraform [init -upgrade=false]
  93. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:26-05:00 command.go:53: Running command terraform with args [init -upgrade=false]
  94. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:26-05:00 command.go:121:
  95. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:26-05:00 command.go:121: Initializing provider plugins...
  96. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:26-05:00 command.go:121:
  97. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:26-05:00 command.go:121: The following providers do not have any version constraints in configuration,
  98. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:26-05:00 command.go:121: so the latest version was installed.
  99. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:26-05:00 command.go:121:
  100. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:26-05:00 command.go:121: To prevent automatic upgrades to new major versions that may contain breaking
  101. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:26-05:00 command.go:121: changes, it is recommended to add version = "..." constraints to the
  102. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:26-05:00 command.go:121: corresponding provider blocks in configuration, with the constraint strings
  103. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:26-05:00 command.go:121: suggested below.
  104. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:26-05:00 command.go:121:
  105. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:26-05:00 command.go:121: * provider.aws: version = "~> 2.9"
  106. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:26-05:00 command.go:121:
  107. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:26-05:00 command.go:121: Terraform has been successfully initialized!
  108. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:26-05:00 command.go:121:
  109. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:26-05:00 command.go:121: You may now begin working with Terraform. Try running "terraform plan" to see
  110. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:26-05:00 command.go:121: any changes that are required for your infrastructure. All Terraform commands
  111. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:26-05:00 command.go:121: should now work.
  112. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:26-05:00 command.go:121:
  113. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:26-05:00 command.go:121: If you ever set or change modules or backend configuration for Terraform,
  114. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:26-05:00 command.go:121: rerun this command to reinitialize your working directory. If you forget, other
  115. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:26-05:00 command.go:121: commands will detect it and remind you to do so if necessary.
  116. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:26-05:00 retry.go:69: Running terraform [get -update]
  117. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:26-05:00 command.go:53: Running command terraform with args [get -update]
  118. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:26-05:00 retry.go:69: Running terraform [apply -input=false -lock=false -auto-approve -var tag_bucket_name=terratest-aws-s3-example-3iepzd -var tag_bucket_environment=Automated Testing -var with_policy=true]
  119. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:26-05:00 command.go:53: Running command terraform with args [apply -input=false -lock=false -auto-approve -var tag_bucket_name=terratest-aws-s3-example-3iepzd -var tag_bucket_environment=Automated Testing -var with_policy=true]
  120. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:29-05:00 command.go:121: data.aws_caller_identity.current: Refreshing state...
  121. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:31-05:00 command.go:121: aws_s3_bucket.test_bucket: Creating...
  122. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:31-05:00 command.go:121: acceleration_status: "" => "<computed>"
  123. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:31-05:00 command.go:121: acl: "" => "private"
  124. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:31-05:00 command.go:121: arn: "" => "<computed>"
  125. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:31-05:00 command.go:121: bucket: "" => "123211981234-terratest-aws-s3-example-3iepzd"
  126. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:31-05:00 command.go:121: bucket_domain_name: "" => "<computed>"
  127. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:31-05:00 command.go:121: bucket_regional_domain_name: "" => "<computed>"
  128. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:31-05:00 command.go:121: force_destroy: "" => "false"
  129. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:31-05:00 command.go:121: hosted_zone_id: "" => "<computed>"
  130. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:31-05:00 command.go:121: region: "" => "<computed>"
  131. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:31-05:00 command.go:121: request_payer: "" => "<computed>"
  132. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:31-05:00 command.go:121: tags.%: "" => "2"
  133. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:31-05:00 command.go:121: tags.Environment: "" => "Automated Testing"
  134. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:31-05:00 command.go:121: tags.Name: "" => "terratest-aws-s3-example-3iepzd"
  135. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:31-05:00 command.go:121: versioning.#: "" => "1"
  136. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:31-05:00 command.go:121: versioning.0.enabled: "" => "true"
  137. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:31-05:00 command.go:121: versioning.0.mfa_delete: "" => "false"
  138. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:31-05:00 command.go:121: website_domain: "" => "<computed>"
  139. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:31-05:00 command.go:121: website_endpoint: "" => "<computed>"
  140. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:36-05:00 command.go:121: aws_s3_bucket.test_bucket: Creation complete after 5s (ID: 123211981234-terratest-aws-s3-example-3iepzd)
  141. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:36-05:00 command.go:121: data.aws_iam_policy_document.s3_bucket_policy: Refreshing state...
  142. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:36-05:00 command.go:121: aws_s3_bucket_policy.bucket_access_policy: Creating...
  143. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:36-05:00 command.go:121: bucket: "" => "123211981234-terratest-aws-s3-example-3iepzd"
  144. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:36-05:00 command.go:121: policy: "" => "{\n \"Version\": \"2012-10-17\",\n \"Statement\": [\n {\n \"Sid\": \"\",\n \"Effect\": \"Allow\",\n \"Action\": \"*\",\n \"Resource\": \"arn:aws:s3:::123211981234-terratest-aws-s3-example-3iepzd/*\",\n \"Principal\": {\n \"AWS\": \"123211981234\"\n }\n },\n {\n \"Sid\": \"\",\n \"Effect\": \"Deny\",\n \"Action\": \"*\",\n \"Resource\": \"arn:aws:s3:::123211981234-terratest-aws-s3-example-3iepzd/*\",\n \"Principal\": {\n \"AWS\": \"*\"\n },\n \"Condition\": {\n \"Bool\": {\n \"aws:SecureTransport\": \"false\"\n }\n }\n }\n ]\n}"
  145. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:36-05:00 command.go:121: aws_s3_bucket_policy.bucket_access_policy: Creation complete after 1s (ID: 123211981234-terratest-aws-s3-example-3iepzd)
  146. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:36-05:00 command.go:121:
  147. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:36-05:00 command.go:121: Apply complete! Resources: 2 added, 0 changed, 0 destroyed.
  148. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:36-05:00 command.go:121:
  149. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:36-05:00 command.go:121: Outputs:
  150. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:36-05:00 command.go:121:
  151. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:36-05:00 command.go:121: bucket_arn = arn:aws:s3:::123211981234-terratest-aws-s3-example-3iepzd
  152. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:36-05:00 command.go:121: bucket_id = 123211981234-terratest-aws-s3-example-3iepzd
  153. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:36-05:00 retry.go:69: Running terraform [output -no-color bucket_id]
  154. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:36-05:00 command.go:53: Running command terraform with args [output -no-color bucket_id]
  155. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:36-05:00 command.go:121: 123211981234-terratest-aws-s3-example-3iepzd
  156. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:37-05:00 retry.go:69: Running terraform [destroy -auto-approve -input=false -lock=false -var tag_bucket_name=terratest-aws-s3-example-3iepzd -var tag_bucket_environment=Automated Testing -var with_policy=true]
  157. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:37-05:00 command.go:53: Running command terraform with args [destroy -auto-approve -input=false -lock=false -var tag_bucket_name=terratest-aws-s3-example-3iepzd -var tag_bucket_environment=Automated Testing -var with_policy=true]
  158. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:38-05:00 command.go:121: data.aws_caller_identity.current: Refreshing state...
  159. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:39-05:00 command.go:121: aws_s3_bucket.test_bucket: Refreshing state... (ID: 123211981234-terratest-aws-s3-example-3iepzd)
  160. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:42-05:00 command.go:121: data.aws_iam_policy_document.s3_bucket_policy: Refreshing state...
  161. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:42-05:00 command.go:121: aws_s3_bucket_policy.bucket_access_policy: Refreshing state... (ID: 123211981234-terratest-aws-s3-example-3iepzd)
  162. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:43-05:00 command.go:121: aws_s3_bucket_policy.bucket_access_policy: Destroying... (ID: 123211981234-terratest-aws-s3-example-3iepzd)
  163. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:43-05:00 command.go:121: aws_s3_bucket_policy.bucket_access_policy: Destruction complete after 1s
  164. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:43-05:00 command.go:121: aws_s3_bucket.test_bucket: Destroying... (ID: 123211981234-terratest-aws-s3-example-3iepzd)
  165. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:44-05:00 command.go:121: aws_s3_bucket.test_bucket: Destruction complete after 0s
  166. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:44-05:00 command.go:121:
  167. TestTerraformAwsS3ExampleWithPolicy 2019-05-08T21:53:44-05:00 command.go:121: Destroy complete! Resources: 2 destroyed.
  168. --- PASS: TestTerraformAwsS3ExampleWithPolicy (17.76s)
  169. PASS
  170. ok _/Users/mrobin99/Documents/terratest/test 17.785s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement