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

resource/logpush_job: Add support for import #618

Merged
merged 1 commit into from
Mar 10, 2020

Conversation

jacobbednarz
Copy link
Member

Updates the logpush job to support the Import method.

Closes #616

Updates the logpush job to support the `Import` method.

Closes cloudflare#616
@jacobbednarz
Copy link
Member Author

Note, we can't add an integration test for this Import due to not being able to mock the ownership_challenge in tests (as we've previously discovered in #335).

@jamesarosen
Copy link

jamesarosen commented Mar 10, 2020

Success!

$ terraform import cloudflare_logpush_job.example-com myzoneid/12345
cloudflare_logpush_job.example-com: Importing from ID "myzoneid/12345"...
cloudflare_logpush_job.example-com: Import prepared!
  Prepared cloudflare_logpush_job for import
cloudflare_logpush_job.example-com: Refreshing state... [id=12345]

Import successful!

The resources that were imported are shown above. These resources are now in
your Terraform state and will henceforth be managed by Terraform.

@jacobbednarz jacobbednarz merged commit a34f72a into cloudflare:master Mar 10, 2020
@jacobbednarz jacobbednarz deleted the support-logpush-import branch March 10, 2020 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: import cloudflare_logpush_job
2 participants