Skip to content

Feature request - ability to parse cloudfront aws account id from s3 object prefix #560

Open
@tommywo

Description

@tommywo

Describe what happened:
We placed s3 bucket for cloudfront logs and forwarder lambda in "log-archive" account (https://docs.aws.amazon.com/prescriptive-guidance/latest/security-reference-architecture/log-archive.html)
and cloudfront distribution in separate "network" account (https://docs.aws.amazon.com/prescriptive-guidance/latest/security-reference-architecture/network.html).

Unfortunately the log forwarder assumes that the lambda and the cloudfront distribution is in the same account when building cloudfront distribution arn.

Proposed solution:
Correct parsing.py to read account id from s3 object key in between / and then fallback to reading lambda arn.
That will allow us to set the account id with prefixes like cloudfront/123456779121/ or AWSLogs/123456779121/cloudfront/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions