Closed liana-filizola closed 10 months ago
Hey @liana-filizola 👋 Thank you for taking the time to file this. I notice that you're not defining mount_options
, yet it has a value in the plan output. Is it possible that that value is being modified outside of Terraform, causing Terraform to see a drift in configuration?
Hi Justin, thanks for taking a look into this.
The mount_options are not being modified outside terraform. We have 2 older pipelines with no explicit mount_options that do not show up in the plan. But when I included 2 new ones, they appear in the plan every time as being modified, although they have the exactly same config.
I will test including the mount_options in the 2 new ones to check if they stop appearing in the plan, just need to wait the recovery of the us-east-1 outage.
Edit: Plan is clean when I define the mount_options in terraform.
@liana-filizola @justinretzolk according to docs https://docs.aws.amazon.com/codebuild/latest/APIReference/API_ProjectFileSystemLocation.html it seems nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2
is default value.
Edit1: i see acceptance tests also hardcode this explicitly, ill try to run tests without that argument and see if there is diff in plan
Edit2: project_test.go:321: Step 1/3 error: Check failed: Check 11/13 error: aws_codebuild_project.test: Attribute 'file_system_locations.0.mount_options' expected "nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=450,retrans=3", got ""
so its not the default value...
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!
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.
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
Panic Output
Expected Behavior
file_system_location does not change over plans.
Actual Behavior
file_system_location keeps being recreated/replaced in every plan after being applied.
Steps to Reproduce
terraform plan
Important Factoids
References