hashicorp/terraform-provider-aws

[Docs]: Import existing trail using ARN doesn't work, but it does if the trail name is used

开放

#37,179 创建于 2024年4月30日

 (5 条评论) (0 个反应) (0 位负责人)Go (10,312 个派生)github user discovery
documentationgood first issueservice/cloudtrail

仓库指标

星标
 (11,045 个星标)
PR 合并指标
 (平均合并 19天 21小时) (30 天内合并 251 个 PR)

描述

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

贡献者指南