-
Notifications
You must be signed in to change notification settings - Fork 2
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
Unable to update GitLab instance #3942
Comments
Prior to the VPN addition (#3605), when updating the GitLab the ec2 instance was destroyed then created again, this time when updated Terraform performed the changes in-place. Perhaps this is why the modifications are not reflected to the instance. |
hashicorp/terraform-provider-aws#23315 The provider update from #3605 is probably the cause. From https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance#user_data
But it it didn't even reboot the instance. I suspect that this is because we use the most recent version of the provider with a rather old version of TF. |
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-add-user-data.html
|
Spike to run the following experiment.
|
@hannes-ucsc :"Based on the experiment it appears that the only way for user data to take effect is terminating and recreating the instance, something that the current version of the AWS provider does not appear to be doing automatically. We need to workaround this by updating the operator manual to include |
PR #3627 only added a workaround for this issue. If a PR is a partial fix for one issue and a complete fix for another, it should have the FYI: @theathorn, @achave11 |
Turns out that the root cause is a regression introduced by the fix for hashicorp/terraform-provider-aws#23. Before that fix a modification of the hashicorp/terraform-provider-aws#23315 fixes the regression by adding an attribute with which users can revert back to the pre-4.2.0 behavior. It's included in the 4.7.0 release. |
Think about how to best demo this. |
For demo, update the GitLab version on |
Unable to update GitLab from 14.7.4 to 14.7.5, Terraform attempts to update the ec2 instance in place, when the instance starts up again the instance version has not been updated.
See Terraform output for more details.
The patch used to apply the update was
The text was updated successfully, but these errors were encountered: