-
Notifications
You must be signed in to change notification settings - Fork 775
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
When github_actions_secret is changes via gui, it will be re-created #964
Comments
This is expected, terraform is fixing config drift. Changes to a terraform managed resource made outside of terraform will be put back when terraform applies. Things should either be managed through terraform or not... there is no middle path. |
I think the I'm having the same issue. I get a total new creation of the TF ver 0.13.5
|
Also this relates to #749 |
One more thing: v0.14.1 claims to have this error fixed. Tested and it is still not working (actually just worked once). |
We are also running into this issue. Seems to be related to this piece of code that does not respect the |
Following this, Our intention at the moment is to provision the secrets without the values (just as a templating) to then manually update the secret values, but every time we do it the resource gets destroyed and recreated again. |
👋 Hey Friends, this issue has been automatically marked as |
keep |
👋 Hey Friends, this issue has been automatically marked as |
Could somebody try to directly help at #1351 |
We are also facing this issue. In AWS terraform provider, the way it is manage is using two different resources, secret and secret_version. resource "aws_secretsmanager_secret" "example" {
name = "example"
}
resource "aws_secretsmanager_secret_version" "example" {
secret_id = aws_secretsmanager_secret.example.id
secret_string = "example-string-to-protect"
} I can create an "empty" secret with terraform, then manage the secret_version out of terraform state. It would be nice to manage github secrets in a similar way. The day 1, I want to create the secret with terraform but, day 2, manage the rotation with a separated tool. |
Terraform Version
1.0.7
Affected Resource(s)
Please list the resources as a list, for example:
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Terraform Configuration Files
Expected Behavior
Changes to Secrets made from GitHub Gui should be ignored
Actual Behavior
Secret will be re-created
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
Repo is created from a template. Could this be the reason?
The text was updated successfully, but these errors were encountered: