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

Run terraform apply on publish #18491

Open
ndellosa95 opened this issue Mar 13, 2023 · 1 comment
Open

Run terraform apply on publish #18491

ndellosa95 opened this issue Mar 13, 2023 · 1 comment
Labels
backend: Terraform Terraform backend-related issues enhancement

Comments

@ndellosa95
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Similar to my issue for terraform plan here, it would be great if we could use pants publish to call terraform apply.

Describe the solution you'd like
pants publish calls terraform apply.

Describe alternatives you've considered
pants experimental-deploy also seems like an appropriate goal for this feature.

@cognifloyd cognifloyd added the backend: Terraform Terraform backend-related issues label Mar 13, 2023
@lilatomic
Copy link
Contributor

The discussion around experimental-deploy referenced this as an example for why it was needed: Terraform modules can be published to registries. Publishing to a registry also followed the expectations of the other uses of publish.
I think we may also need a separate target type for Terraform deployments to specify deployment-related data (backends, var files).

I think once we think that through it should be fairly easy to wrap terraform apply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend: Terraform Terraform backend-related issues enhancement
Projects
None yet
Development

No branches or pull requests

3 participants