-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DXE-3681 SECKSD-25367 Terraform import match_target - Error : Value not found: match_target #546
Comments
After some testing on my side it appears that when forcing with v5.5.0 of the provider, the import is successful : $ terraform import module.security.akamai_appsec_match_target.website_7863884 101079:7863884
module.security.data.akamai_group.group: Reading...
module.security.data.akamai_group.group: Read complete after 1s [id=grp_215942]
module.security.akamai_appsec_match_target.website_7863884: Importing from ID "101079:7863884"...
module.security.akamai_appsec_match_target.website_7863884: Import prepared!
Prepared akamai_appsec_match_target for import
module.security.akamai_appsec_match_target.website_7863884: Refreshing state... [id=101079:7863884]
Import successful!
The resources that were imported are shown above. These resources are now in
your Terraform state and will henceforth be managed by Terraform. |
Hi @benbrd So it works for you with v5.5.0 version of provider, but is still failing with newer ones? BR, |
Hi, we are also having the same issue using akamai/akamai 6.2.0 and Terraform 1.8.5. None of the match_target imports are working, we are also trying to run the sh file from the akamai terraform export command. Forcing 5.5.0 worked for us as a temporary solution as well. Let me know if I can help by providing any more information. Edit: Forcing 5.5.0 allows the import to work, but running |
As a temporary work-around you can still use the latest "akamai terraform" CLI version 1.15.0 and do the following:
I tested this with Terraform version 1.7.5, but I don't believe it makes a difference if you use 1.8.5. |
Hi @benbrd, this should be fixed in the recent 6.4.0 release. |
terraform import match_target issue causing duplicate match_target resources created in security configuration as the previous one is not sync with the tfstate file.
This is a blocker for our customers trying to manage their security configuration as code.
Terraform Version
$ terraform -v Terraform v1.8.1 on linux_amd64
Affected Resource(s)
terraform import akamai_appsec_match_target
Debug Output
Expected Behavior
Import successful!
Actual Behavior
Error: value not found: match_target
Steps to Reproduce
akamai terraform export-appsec <config_name>
sh ./appsec-import.sh
to start importing the configuration into the local Terraform state.The text was updated successfully, but these errors were encountered: