Skip to content
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

[Bug]: AWS Organization - Cloud Trail Central - Delegated Administrator #30387

Closed
jand0manski opened this issue Mar 31, 2023 · 4 comments · Fixed by #30758
Closed

[Bug]: AWS Organization - Cloud Trail Central - Delegated Administrator #30387

jand0manski opened this issue Mar 31, 2023 · 4 comments · Fixed by #30758
Labels
bug Addresses a defect in current functionality. service/cloudtrail Issues and PRs that pertain to the cloudtrail service.
Milestone

Comments

@jand0manski
Copy link

jand0manski commented Mar 31, 2023

Terraform Core Version

1.3.7

AWS Provider Version

4.61.0

Affected Resource(s)

aws_cloudtrail

Expected Behavior

Cloud trail should correctly started & created in delegated administrator account .

Actual Behavior

Error: creating CloudTrail: starting logging: TrailNotFoundException: Unknown trail:

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

  • resource "aws_cloudtrail" "default" {
    cloud_watch_logs_group_arn = "XXXX"
    • cloud_watch_logs_role_arn = "XXXX"
    • enable_log_file_validation = true
    • enable_logging = true
    • include_global_service_events = true
    • is_multi_region_trail = true
    • is_organization_trail = true
    • kms_key_id = "XXXX"
    • name = "XXXX"
    • s3_bucket_name = "XXXX"
      }

Steps to Reproduce

1.Enable Cloud Trail trusted service in AWS Organization in master account
2.Delegate Administrator to member account
3.Create Cloud Trail in member account

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

@jand0manski jand0manski added bug Addresses a defect in current functionality. needs-triage Waiting for first response or review from a maintainer. labels Mar 31, 2023
@github-actions
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added service/cloudtrail Issues and PRs that pertain to the cloudtrail service. and removed needs-triage Waiting for first response or review from a maintainer. labels Mar 31, 2023
@dbadrak
Copy link

dbadrak commented Sep 11, 2023

I can confirm this continues to be a problem in Terrafrom 1.5.6 with AWS provider v5.15.0:

Error: creating CloudTrail: starting logging: TrailNotFoundException: Unknown trail: arn:aws:cloudtrail:us-east-1:123123123123:trail/org-cloudtrail for the user: 123123123123

where 123123123123 is the delegated CloudTrail Administrator account. The trail did get created, in the organization master account as arn:aws:cloudtrail:us-east-1:111111111111:trail/iorg-cloudtrail where 111111111111 is the account of the organization master.

@github-actions github-actions bot added this to the v5.25.0 milestone Nov 6, 2023
Copy link

This functionality has been released in v5.25.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/cloudtrail Issues and PRs that pertain to the cloudtrail service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants