0.8.2
aws_lambda_function
# Only relevant parts shown
variable "subnet_ids" {
default = []
}
variable "security_group_ids" {
default = []
}
resource "aws_lambda_function" "lambda" {
vpc_config {
subnet_ids = ["${var.subnet_ids}"]
security_group_ids = ["${var.security_group_ids}"]
}
}
Right after applying, terraform plan should not detect any change since there aren't any.
Right after applying, terraform plan detects a change in vpc_config. If you apply the change, terraform plan will still detect the same change over and over again.
Relevant part of the output:
-/+ module.auth.authorizer.authorizer_lambda.aws_lambda_function.lambda
vpc_config.#: "0" => "1" (forces new resource)
vpc_config.0.vpc_id: "" => "<computed>"
terraform planterraform applySeem to be related:
We've been seeing this behavior since 0.7.13.
Anything happening here?
This is still happening in 0.9.4.
This is still happening in 0.11.3. Any updates here?
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.
Most helpful comment
This is still happening in 0.11.3. Any updates here?