Comments (3)
@dcarriger Could you include the terraform version and plan output? You'll need to use the latest provider version (4.1.0) for this change to take effect. In the meantime, I'll attempt a reproduction with 4.1.0.
from terraform-provider-sdm.
In my testing, with the following main.tf
:
terraform {
required_providers {
sdm = {
source = "strongdm/sdm"
version = ">=4.1.0"
}
}
}
resource "sdm_resource" "testrsc" {
amazon_eks_instance_profile {
name = "test-eks-tf"
secret_store_id = "se-omitted"
endpoint = "test"
cluster_name = "test"
region = "us-west-2"
}
}
output "testout" {
value = sdm_resource.testrsc.id
}
I get the following plan and apply output, indicating it is requiring replacement.
200sc-M164: local:tftest$ terraform plan
sdm_resource.testrsc: Refreshing state... [id=rs-omitted]
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
-/+ destroy and then create replacement
Terraform will perform the following actions:
# sdm_resource.testrsc must be replaced
-/+ resource "sdm_resource" "testrsc" {
~ id = "rs-omitted" -> (known after apply)
~ amazon_eks_instance_profile {
~ bind_interface = "127.0.0.1" -> (known after apply)
- healthcheck_namespace = "default" -> null
name = "test-eks-tf"
~ port_override = 10013 -> (known after apply)
~ secret_store_id = "se-omitted" -> "se-omitted" # forces replacement
~ subdomain = "omitted" -> (known after apply)
- tags = {} -> null
# (3 unchanged attributes hidden)
}
}
Plan: 1 to add, 0 to change, 1 to destroy.
Changes to Outputs:
~ testout = "rs-omitted" -> (known after apply)
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Note: You didn't use the -out option to save this plan, so Terraform can't guarantee to take exactly these actions if you run "terraform apply" now.
200sc-M164: local:tftest$ terraform apply
sdm_resource.testrsc: Refreshing state... [id=rs-omitted]
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
-/+ destroy and then create replacement
Terraform will perform the following actions:
# sdm_resource.testrsc must be replaced
-/+ resource "sdm_resource" "testrsc" {
~ id = "rs-omitted" -> (known after apply)
~ amazon_eks_instance_profile {
~ bind_interface = "127.0.0.1" -> (known after apply)
- healthcheck_namespace = "default" -> null
name = "test-eks-tf"
~ port_override = 10013 -> (known after apply)
~ secret_store_id = "se-omitted" -> "se-omitted" # forces replacement
~ subdomain = "omitted" -> (known after apply)
- tags = {} -> null
# (3 unchanged attributes hidden)
}
}
Plan: 1 to add, 0 to change, 1 to destroy.
Changes to Outputs:
~ testout = "rs-omitted" -> (known after apply)
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
sdm_resource.testrsc: Destroying... [id=rs-omitted]
sdm_resource.testrsc: Destruction complete after 0s
sdm_resource.testrsc: Creating...
sdm_resource.testrsc: Creation complete after 0s [id=rs-omitted]
Apply complete! Resources: 1 added, 0 changed, 1 destroyed.
from terraform-provider-sdm.
Closing this issue. For us to work on it if reopened, please provide a (minimal, anonymized) terraform file reproducing the problem using the latest provider version.
from terraform-provider-sdm.
Related Issues (20)
- Import example for Secrets Store is incorrect HOT 1
- Example in Data Source documentation for `sdm_resource` is incorrect HOT 1
- Tags option not working for some Data Source filters HOT 1
- cannot read SecretStore: unauthenticated: cannot find auth GUID HOT 1
- Support for mapping sdm_roles with sdm_datasource using "name" as identifier instead of relying on tags or id HOT 5
- Bump the module version to `v2` HOT 1
- add way to set default tags HOT 1
- Split sdm_role resource and use attachments HOT 2
- username is not imported for mongo db resources HOT 3
- Using SDM in module causes terraform to insist on trying to get non-existent "hashicorp/sdm" module
- Add support for default_tags in the SDM Provider HOT 1
- Terraform does not catch username and password changes done on the website HOT 4
- secret_store_id change should force new resource HOT 3
- Fix sdm_resource > google_gke > healthcheck_namespace so that it's not permanently diffed HOT 2
- Add port_override to google_gke resource HOT 2
- Changing a port_override creates a plan that cannot be applied HOT 1
- Changing the `sdm_resource` type doesn't cause a replacement HOT 5
- data sdm_peering_group: small bug? HOT 3
- sdm_account cannot apply new tags to users HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-sdm.