hashicorp/terraform-provider-aws
[Docs]: Import existing trail using ARN doesn't work, but it does if the trail name is used
Open
#37,179 opened on Apr 30, 2024
documentationgood first issueservice/cloudtrail
Repository metrics
- Stars
- (11,045 stars)
- PR merge metrics
- (PR metrics pending)
Description
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