-
Notifications
You must be signed in to change notification settings - Fork 31
Closed
Description
Hello,
When testing the PR: Implement secure environment #153 , I found the following issue:
Terraform Version
Terraform v1.0.6
Terraform Configuration Files
resource "outscale_ca" "my_first_ca" {
ca_pem = file("terraform/terraform-ca-certificate.pem")
description = "test-ca"
}
resource "outscale_api_access_rule" "my_first_api_access_rule" {
ca_ids = [outscale_ca.my_first_ca.ca_id]
ip_ranges = ["192.168.2.34", "192.168.2.134"]
cns = ["outscale-1", "outscale-2"]
description = "test first API Access rules"
}
Debug Output
outscale_ca.my_first_ca: Creating...
outscale_ca.my_first_ca: Creation complete after 1s [id=ca-a6a426f995e438e3378ed2eb57710ffc]
outscale_api_access_rule.my_first_api_access_rule: Creating...
outscale_api_access_rule.my_first_api_access_rule: Creation complete after 0s [id=aar-921b9f9ddec86c9e3d5e2196109c87fc]
Apply complete! Resources: 2 added, 0 changed, 0 destroyed.
**terraform apply**
outscale_ca.my_first_ca: Refreshing state... [id=ca-a6a426f995e438e3378ed2eb57710ffc]
outscale_api_access_rule.my_first_api_access_rule: Refreshing state... [id=aar-921b9f9ddec86c9e3d5e2196109c87fc]
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# outscale_api_access_rule.my_first_api_access_rule will be updated in-place
~ resource "outscale_api_access_rule" "my_first_api_access_rule" {
id = "aar-921b9f9ddec86c9e3d5e2196109c87fc"
~ ip_ranges = [
- "192.168.2.134",
"192.168.2.34",
+ "192.168.2.134",
]
# (4 unchanged attributes hidden)
}
**Plan: 0 to add, 1 to change, 0 to destroy.**
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value:
Crash Output
n/a
Expected Behavior
When applying the same configuration twice, no change should be suggested by Terraform.
Actual Behavior
When applying the same configuration twice, Terraform suggests to update the API access rule resource.
Steps to Reproduce
- terraform init
- terraform apply
- terraform apply again without changing the configuration file
Additional Context
n/a
References
n/a
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working