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

Replace "Pubsub Subscription Different Project" example with making all examples cross-project-friendly #1794

Conversation

modular-magician
Copy link
Collaborator

PR #2342 changed this example from using id to name, which removed the project ID from the topic. However, the point of this example is to show how to set up a cross-project subscription, so the example no longer works.

This change removes that example and uses the id pattern on all the examples, because we don't need a special "cross project" example if the default usage works cross-project. It also expands the topic attribute's description.

Fixes hashicorp/terraform-provider-google#11642.
Fixes hashicorp/terraform-provider-google#6024.

Release Note Template for Downstream PRs (will be copied)


Derived from GoogleCloudPlatform/magic-modules#9637

…ll examples cross-project-friendly (#9637)

* Fix "Pubsub Subscription Different Project" example

PR GoogleCloudPlatform#2342 changed this example from using `id` to `name`, which removed the project ID from the topic. However, the point of this example is to show how to set up a cross-project subscription, so the example no longer works. This change reverts that change from PR GoogleCloudPlatform#2342.

Fixes hashicorp/terraform-provider-google#11642.
Fixes hashicorp/terraform-provider-google#6024.

* Make all examples cross-project-friendly and update topic description

* Fix typo

---------

Co-authored-by: Stephen Lewis (Burrows) <[email protected]>
[upstream:b3ae8dcd7e476f796a8b1ba67ce63cea711be127]

Signed-off-by: Modular Magician <[email protected]>
@modular-magician modular-magician requested a review from a team as a code owner December 15, 2023 00:00
@modular-magician modular-magician requested review from shuyama1 and removed request for a team December 15, 2023 00:00
@modular-magician modular-magician merged commit 7c4095c into GoogleCloudPlatform:main Dec 15, 2023
3 checks passed
Copy link

🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use automerge label. Good luck human!

-- conventional-commit-lint bot
https://conventionalcommits.org/

@modular-magician modular-magician deleted the downstream-pr-b3ae8dcd7e476f796a8b1ba67ce63cea711be127 branch November 18, 2024 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant