hashicorp/terraform-provider-aws
[Docs]: Import existing trail using ARN doesn't work, but it does if the trail name is used
Aperta
#37.179 aperta il 30 apr 2024
documentationgood first issueservice/cloudtrail
Metriche repository
- Star
- (11.045 stelle)
- Metriche merge PR
- (Merge medio 19g 21h) (251 PR mergiate in 30 g)
Descrizione
Documentation Link
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudtrail#import
Description
The documentation states to use the CloudTrail ARN when doing a terraform import however this results in an error that the resource does not exist
Using the trail name however does result in a successful import.
For context, my trail is in a different AWS account to my state file, and the configuration block I am importing the existing trail to is set with an assume role provider - not sure if that makes any difference
This looks to be a mistake in the docs to me.
References
No response
Would you like to implement a fix?
No