Fixes
Fix the issue where the module will report that Note: Objects have changed outside of Terraform
on second plan/apply even though no changes were made.
data.aws_vpc.default: Reading...
data.aws_vpc.default: Read complete after 0s [id=vpc-111111111]
module.security_group.aws_security_group.self[0]: Refreshing state... [id=sg-1111111111111111]
module.security_group.aws_security_group_rule.ingress["443-443-tcp-10.0.0.0/24-2600:1f13:b21:6500::/56"]: Refreshing state... [id=sgrule-195631393]
Note: Objects have changed outside of Terraform
Terraform detected the following changes made outside of Terraform since the last "terraform apply" which may have affected this plan:
# module.security_group.aws_security_group.self[0] has changed
~ resource "aws_security_group" "self" {
id = "sg-1111111111111111"
~ ingress = [
+ {
+ cidr_blocks = []
+ description = "HTTPS"
+ from_port = 443
+ ipv6_cidr_blocks = [
+ "2600:1f13:b21:6500::/56",
]
+ prefix_list_ids = []
+ protocol = "tcp"
+ security_groups = []
+ self = false
+ to_port = 443
},
# (1 unchanged element hidden)
]
name = "ex-basic"
tags = {
"Name" = "ex-basic"
}
# (7 unchanged attributes hidden)
# (1 unchanged block hidden)
}
Unless you have made equivalent changes to your configuration, or ignored the relevant attributes using ignore_changes, the following plan may include actions to undo
or respond to these changes.
Full Changelog: v2.1.0...v2.1.2