What does "Optional + Computed" mean for an argument?
AdvancedConceptProviders, Resources and Data Sources
Answer
If you omit the argument, the provider picks a value and records it in state; if you set it, your value wins. Example: aws_instance.availability_zone. This is why leaving an argument out does not produce a diff, while later removing a value you previously set usually does not revert it to the default.
More on Providers, Resources and Data Sources
What is a resource block and how is it addressed?BeginnerWhat is the difference between a resource and a data source?BeginnerHow do you configure a provider such as AWS?BeginnerHow do you use the same provider with multiple regions or accounts?IntermediateIn what order does the AWS provider look for credentials?IntermediateWhat does `default_tags` in the AWS provider do and what are its pitfalls?Intermediate