Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update static_site.tf #4

Merged
merged 1 commit into from
Jun 14, 2020
Merged

Update static_site.tf #4

merged 1 commit into from
Jun 14, 2020

Conversation

hellyesican
Copy link
Collaborator

@hellyesican hellyesican commented Jun 14, 2020

Let's change the content of this static site!

@hellyesican hellyesican requested a review from maelvls as a code owner June 14, 2020 15:39
@github-actions
Copy link

github-actions bot commented Jun 14, 2020

The terraform plan tf.plan has been uploaded as a Github artifact in this job. Here is the plan:


An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
-/+ destroy and then create replacement

Terraform will perform the following actions:

  # google_storage_bucket_object.index_html must be replaced
-/+ resource "google_storage_bucket_object" "index_html" {
        bucket         = "my-static-site"
      ~ content        = (sensitive value)
      ~ content_type   = "text/plain; charset=utf-8" -> (known after apply)
      ~ crc32c         = "1hHPaA==" -> (known after apply)
      ~ detect_md5hash = "jT+tsogMGXusvcrHE+3lGg==" -> "different hash"
      ~ id             = "my-static-site-index.html" -> (known after apply)
      ~ md5hash        = "jT+tsogMGXusvcrHE+3lGg==" -> (known after apply)
      - metadata       = {} -> null
        name           = "index.html"
      ~ output_name    = "index.html" -> (known after apply)
      ~ self_link      = "https://www.googleapis.com/storage/v1/b/my-static-site/o/index.html" -> (known after apply)
      ~ storage_class  = "STANDARD" -> (known after apply)
    }

Plan: 1 to add, 0 to change, 1 to destroy.

As soon as the PR is approved, anyone can run /apply. The /apply command will apply the last plan shown in this PR using the tf.plan that was uploaded as a Github artifact. The output of terraform apply will be shown in a PR comment.

@hellyesican
Copy link
Collaborator Author

/apply

@github-actions
Copy link

github-actions bot commented Jun 14, 2020

The terraform apply was run in this job. The tf.plan used is the one in this comment (above); the tf.plan applied can be downloaded in this job's artifacts (see the artifact at the top-right corner).

Exit code of terraform apply was and output (stderr and stdout combined) is:

google_storage_bucket_object.index_html: Destroying... [id=my-static-site-index.html]
google_storage_bucket_object.index_html: Destruction complete after 1s
google_storage_bucket_object.index_html: Creating...
google_storage_bucket_object.index_html: Creation complete after 0s [id=my-static-site-index.html]

Apply complete! Resources: 1 added, 0 changed, 1 destroyed.

It is possible to re-run /apply in this PR. You can also force recreating a new plan by either:

  • re-create a plan by pushing an empty commit (git commit --allow-empty -m "trigger");
  • or you might need to ask to one of the code owners to terraform apply manually.

@maelvls maelvls merged commit 2e72848 into master Jun 14, 2020
@maelvls maelvls deleted the hellyesican-patch-1 branch June 14, 2020 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants