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

Cloud Deploy Deploy Policy resource #20779

Open
menahyouyeah opened this issue Dec 23, 2024 · 0 comments · May be fixed by GoogleCloudPlatform/magic-modules#12645
Open

Cloud Deploy Deploy Policy resource #20779

menahyouyeah opened this issue Dec 23, 2024 · 0 comments · May be fixed by GoogleCloudPlatform/magic-modules#12645
Labels

Comments

@menahyouyeah
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
  • If an issue is assigned to a user, that user is claiming responsibility for the issue.
  • Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.

Description

Cloud Deploy DeployPolicy should be supported by Terraform.

New or Affected Resource(s)

  • google_clouddeploy_deploy_policy

Potential Terraform Configuration

resource "google_clouddeploy_deploy_policy" "deploy-policy" {
    location = "us-central1"
    name = "mydeploypolicy"
    description = "My deploy policy"
    selectors {
      delivery_pipeline {
        id = "*"
      }
    }
    rules {
      rollout_restriction {
        id = "holidayfreeze"
        time_windows {
          time_zone = "America/New_York"
          one_time_windows {
            start_date = "2024-12-24"
            start_time = "00:00"
            end_date = "2024-12-27"
            end_time = "09:00"
          }
        }
      }
    }
}

References

https://cloud.google.com/deploy/docs/api/reference/rest/v1/projects.locations.deployPolicies

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 a pull request may close this issue.

1 participant