8000 Support usage of IAM role in S3 and Kinesis logging endpoints by kellymclaughlin · Pull Request #253 · fastly/cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Support usage of IAM role in S3 and Kinesis logging endpoints #253

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

Merged
merged 2 commits into from
Apr 14, 2021

Conversation

kellymclaughlin
Copy link
Contributor

Add the ability to specify an IAM role for the S3 and Kinesis logging endpoints. Follows from fastly/go-fastly#269.

Add the ability to specify an IAM role for the S3 and Kinesis logging endpoints.
input.AccessKey = c.AccessKey
input.SecretKey = c.SecretKey

// The following block checks for invalid permutations of the ways in
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was looking for something akin to the ArgGroup feature in the clap library for rust, but I didn't see anything similar present in kingpin so I just implemented the checks manually here. If this ever became a more common pattern we could try to add it into the kingpin library or just our fork of it since it's unmaintained because it'd be a lot nicer to have it handled inside the library versus a bunch of ad hoc enforcement in random places in our code.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, if this becomes more common then we can think about implementing it within the Fastly Kingpin fork.

@Integralist Integralist added the enhancement New feature or request label Apr 14, 2021
@Integralist Integralist merged commit 5ab21ce into fastly:master Apr 14, 2021
@kellymclaughlin kellymclaughlin deleted the aws-iam-role-logging branch April 14, 2021 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0