apigee: add addons_config to google_apigee_organization#16952
Conversation
Adds the addonsConfig nested object to the Organization resource YAML, exposing per-add-on toggles (advanced_api_ops_config, integration_config, monetization_config, api_security_config, connectors_platform_config) directly on the google_apigee_organization resource. This allows users to configure add-ons at org creation time, which was not previously possible. Previously a separate google_apigee_addons_config resource was needed after org creation. Fixes: hashicorp/terraform-provider-google#18486
|
Googlers: For automatic test runs see go/terraform-auto-test-runs. @shuyama1, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
Add a custom_check_destroy template for google_apigee_organization that
polls the API until the org returns 404 or enters DELETING state, instead
of immediately declaring it destroyed.
This fixes flaky test failures where CheckDestroy ran before the async
delete completed.
Background: b/242358013 blocks using LRO polling for org deletion (the
LRO endpoint returns 403 once the org is gone). As a workaround, the
custom_check_destroy polls GET /organizations/{name} directly.
Fixes: hashicorp/terraform-provider-google#8758
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_apigee_organization" "primary" {
addons_config {
advanced_api_ops_config {
enabled = # value needed
}
api_security_config {
enabled = # value needed
}
connectors_platform_config {
enabled = # value needed
}
integration_config {
enabled = # value needed
}
monetization_config {
enabled = # value needed
}
}
}
|
Tests analyticsTotal tests: 73 Click here to see the affected service packages
Action takenFound 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
🟢 Tests passed during RECORDING mode: 🟢 No issues found for passed tests after REPLAYING rerun. 🟢 All tests passed! |
|
@shuyama1 This PR has been waiting for review for 3 weekdays. Please take a look! Use the label |
|
@GoogleCloudPlatform/terraform-team @shuyama1 This PR has been waiting for review for 1 week. Please take a look! Use the label |
| billing_account: 'BILLING_ACCT' | ||
| ignore_read_extra: | ||
| - 'properties' | ||
| - 'addons_config' |
There was a problem hiding this comment.
why does this field need to ignore read on during import?
| - name: 'value' | ||
| type: String | ||
| description: Value of the property. | ||
| - name: 'addonsConfig' |
There was a problem hiding this comment.
|
@xuchenma, this PR is waiting for action from you. If no action is taken, this PR will be closed in 28 days. Please address any comments or change requests, or re-request review from a core reviewer if no action is required. This notification can be disabled with the |
|
@xuchenma, this PR is waiting for action from you. If no action is taken, this PR will be closed in 14 days. Please address any comments or change requests, or re-request review from a core reviewer if no action is required. This notification can be disabled with the |
|
@xuchenma, this PR is waiting for action from you. If no action is taken, this PR will be closed in 2 weekdays. Please address any comments or change requests, or re-request review from a core reviewer if no action is required. This notification can be disabled with the |
|
@xuchenma, this PR is being closed due to inactivity. |
|
Auto-closed for inactivity; GitHub won't allow reopening. Continued in #17855 (rebased). Addressed @shuyama1's review: added explicit |

Description
Adds the
addons_confignested block to thegoogle_apigee_organizationresource, exposing per-add-on toggles directly on the org resource.This allows users to configure add-ons at organization creation time. Previously a separate
google_apigee_addons_configresource was needed after org creation.Add-ons supported
advanced_api_ops_configintegration_configmonetization_configapi_security_config(withexpires_atoutput)connectors_platform_config(withexpires_atoutput)Fixes
Fixes: hashicorp/terraform-provider-google#18486
Test Evidence
Existing acceptance test passes unchanged (import verify now ignores
addons_configsince the API may return default values not present in the config):