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

Added obtaining of IAM roles. #24

Closed
wants to merge 1 commit into from

Conversation

TomaszTen
Copy link

Fill up for IAM roles obtaining following previous TODO.

Fill up for IAM roles obtaining following previous TODO.
@CLAassistant
Copy link

CLAassistant commented Oct 18, 2018

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@hohwille hohwille left a comment

Choose a reason for hiding this comment

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

@TomaszTen thank you for your contribution. I guess we will have some live discussion together. However, to also play with the process (PRs, reviews, etc.) I added some comments.

if (reader != null) {
try {
reader.close();
} catch (Exception exc_2) {
Copy link
Member

Choose a reason for hiding this comment

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

you could use try-with-resource syntax to reduce your code and make it simpler and more compact.
https://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html

Process process;
try {
process = Runtime.getRuntime().exec(command);
process.waitFor();
Copy link
Member

Choose a reason for hiding this comment

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

so you have changed the app to connect to AWS. Nice feature.
But should we have that by default? What if project does not want to use AWS? What if "aws" command is not available?
Do not get me wrong: I love the idea, but this could be an option or maybe we need more like a documentation having that as a code-snippet, or we could add some minimum module code for this that can be opted in.
See also:
oasp/oasp4j#633

@hohwille hohwille mentioned this pull request Jan 18, 2019
@hohwille
Copy link
Member

Seems outdated and no further feedback. Hence, I am closing. Limiting our app template to AWS seems not to be an option. Feel free to reopen/rework...

@hohwille hohwille closed this Oct 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants