-
Notifications
You must be signed in to change notification settings - Fork 222
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
feat: Adding examples for integrationconnectors endpointattachment and managed zone #751
base: main
Are you sure you want to change the base?
Conversation
🤖 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 -- conventional-commit-lint bot |
Here is the summary of changes. You are about to add 1 region tag.
This comment is generated by snippet-bot.
|
8fde2dc
to
2c88409
Compare
Please issue /gcbrun |
/gcbrun |
1 similar comment
/gcbrun |
The first error these samples encountered (for managed zone):
Is it expected that this service account is created when the connectors.googleapis.com API is enabled? Could you instead use a custom service account? Also checking if these code samples are valid (given you're trying to setup DNS for example.com, I'm not sure if this is something that should be provisionable). If it's not, please provide a I'll add comments for code review onto the code itself. |
/gcbrun |
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sample needs a region tag.
* limitations under the License. | ||
*/ | ||
|
||
data "google_project" "target_project" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to have two data.google_project
, one needs to have a project_id
, otherwise you use the provider's google project (the active project). https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/project
I would suggest adding a comment of the config to help show what you mean (and have a comment if the "test_project" is the "current" project
data "google_project" "test_project" { | ||
} | ||
|
||
# [START integrationconnectors_managed_zone_example] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only region tag in this sample; is this intended? Do you want the other resources to be shown in the docs? If so, they also need region tags.
Adding examples for integrationconnectors endpointattachment and managed zone
Description
Fixes b/374649808
Note: If you are not associated with Google, open an issue for discussion before submitting a pull request.
Checklist
Readiness
Style
guide
Testing
I have performed tests described in the Contributing guide:
terraform apply
terraform fmt
checkIntended location
[YES] Yes, this sample will be (or already is) included on cloud.google.com
Location(s):https://cloud.google.com/integration-connectors/docs/sample-terraform-template
No, this sample won't be included on cloud.google.com
Reason:
API enablement
Review