Skip to content

Apiary producer role does not check schema(key) name #250

@githubjianli

Description

@githubjianli

Describe the bug
in here: https://github.com/ExpediaGroup/apiary-data-lake/blob/master/common.tf#L35C3-L35C30

when pass apiary_producer_iam_role to bucket policy, it only looks up the value of the variable, but when we define the producer role, we have a schema name(key) specified, that is not considered when we passing roles, which will cause all iam roles lists here will have permission to all schemas.

To Reproduce
Steps to reproduce the behaviour ideally including the configuration files you are using (feel free to rename any sensitive information like server and table names etc.)

Expected behavior
A clear and concise description of what you expected to happen.

Logs
Please add the log output from Apiary when the terraform error occurs, full stack traces are especially useful.

Versions (please complete the following information):

  • Apiary Version:

Additional context
Add any other context about the problem here.

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