diff --git a/compute/preview_feature/enable/main.tf b/compute/preview_feature/enable/main.tf new file mode 100644 index 00000000..b1a2862c --- /dev/null +++ b/compute/preview_feature/enable/main.tf @@ -0,0 +1,29 @@ +/** + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +# [START compute_preview_feature_enable] + +resource "google_compute_preview_feature" "default" { + name = "alpha-api-access" + activation_status = "ENABLED" + rollout_operation { + rollout_input { + predefined_rollout_plan = "ROLLOUT_PLAN_FAST_ROLLOUT" + } + } +} + +# [END compute_preview_feature_enable] diff --git a/compute/preview_feature/enable/test.yaml b/compute/preview_feature/enable/test.yaml new file mode 100644 index 00000000..3b2d9120 --- /dev/null +++ b/compute/preview_feature/enable/test.yaml @@ -0,0 +1,20 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +apiVersion: blueprints.cloud.google.com/v1alpha1 +kind: BlueprintTest +metadata: + name: compute_preview_feature_enable +spec: + skip: true