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

Changing aws_ssm_parameter.overwrite trigger a resource update #3181

Closed
kid opened this issue Jan 29, 2018 · 11 comments
Closed

Changing aws_ssm_parameter.overwrite trigger a resource update #3181

kid opened this issue Jan 29, 2018 · 11 comments
Labels
bug Addresses a defect in current functionality. service/ssm Issues and PRs that pertain to the ssm service.

Comments

@kid
Copy link

kid commented Jan 29, 2018

Terraform Version

Terraform v0.10.6

Affected Resource(s)

  • aws_ssm_parameter

Expected Behavior

Changing the overwrite parameter from true to false or vice versa should not trigger an update

Actual Behavior

Changing overwrite from true to false trigger an update which then fails because the value can not be updated with overwrite set to false

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. Create a aws_ssm_parameter with overwrite set to true
  2. Run terraform apply
  3. change overwrite set to false
  4. Run terraform apply again

References

Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:

@radeksimko radeksimko added service/ssm Issues and PRs that pertain to the ssm service. bug Addresses a defect in current functionality. labels Jan 29, 2018
@kid kid changed the title Chaning aws_ssm_parameter.overwrite trigger a resource update Changing aws_ssm_parameter.overwrite trigger a resource update Feb 1, 2018
@ernoaapa
Copy link

ernoaapa commented Mar 6, 2018

Temporary workaround:

  lifecycle {
    ignore_changes  = ["overwrite"]
  }

@bflad
Copy link
Contributor

bflad commented Mar 15, 2018

Is this still an issue on v1.11.0 of the AWS provider? Thanks!

@bflad
Copy link
Contributor

bflad commented Apr 26, 2018

It looks like this functionality made it in via #1520, which was previously released in version 1.11.0 of the AWS provider and has been available in all releases since. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

@bflad bflad closed this as completed Apr 26, 2018
@bflad bflad added this to the v1.11.0 milestone Apr 26, 2018
@jleclanche
Copy link

@bflad This is a bug report on the added functionality, it's more recent than the PR.

@bflad
Copy link
Contributor

bflad commented Apr 26, 2018

The PR in question was merged in March and this issue is from January. I'll reopen it though.

@bflad bflad reopened this Apr 26, 2018
@bflad bflad removed this from the v1.11.0 milestone Apr 26, 2018
@avoidik
Copy link
Contributor

avoidik commented Mar 15, 2019

Currently we're affected by the overwrite edge-case issue. We had initially created SSM value with Terraform, then we have been rewriting the same SSM key with another automation script. In this case subsequent Terraform provisioning leads to the error below

* aws_ssm_parameter.secret: error creating SSM parameter: ParameterAlreadyExists: The parameter already exists. To overwrite this value, set the overwrite option in the request to true.

Lifecycle rule hasn't helped us much

  lifecycle {
    ignore_changes = ["value", "overwrite"]
  }

@rmclaughlin-nelnet
Copy link

Is there an update on this? I am running into the same issue. I am trying to move control of SSM parameters to Terriform, but have them updated through another process. This does not seem possible currently because Terraform always complains ParameterAlreadyExists: The parameter already exists. To overwrite this value, set the overwrite option in the request to true.

@beanaroo
Copy link
Contributor

We'd like to switch to overwrite = false to prevent potential conflicting parameters but this is getting in the way.

@github-actions
Copy link

github-actions bot commented Mar 3, 2022

Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!

@github-actions github-actions bot added the stale Old or inactive issues managed by automation, if no further action taken these will get closed. label Mar 3, 2022
@github-actions github-actions bot closed this as completed Apr 3, 2022
@avoidik
Copy link
Contributor

avoidik commented Apr 3, 2022

This issue hasn't been resolved

@github-actions github-actions bot removed the stale Old or inactive issues managed by automation, if no further action taken these will get closed. label Apr 3, 2022
@github-actions
Copy link

github-actions bot commented May 5, 2022

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/ssm Issues and PRs that pertain to the ssm service.
Projects
None yet
8 participants