hashicorp/terraform-provider-aws

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

オープン

#37,179 opened on 2024/04/30

 (5 件のコメント) (0 件のリアクション) (0 人の担当者)Go (10,312 件のフォーク)github user discovery
documentationgood first issueservice/cloudtrail

Repository metrics

Stars
 (11,045 個のスター)
PR merge metrics
 (平均マージ 19d 21h) (30d で 251 merged PRs)

説明

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

コントリビューターガイド