-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: initial implementation #1
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from the comments, don't forget to add at least a CODEOWNERS
and LICENSE
files.
The README.md
file should also mention the license at the bottom.
Apart from that, great job!
README.md
Outdated
- AWS AppConfig Application should exist already | ||
- AWS Appconfig Application Configuration profile should exist already | ||
- AWS AppConfig Environment should exist already | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Space between list items
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
README.md
Outdated
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary newlines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
aws/aws.go
Outdated
return string(output.Configuration), nil | ||
} | ||
|
||
func awsSdkConfig(region string) (aws.Config, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding a context.Context
argument here and pass the same context used for the other AWS functions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds reasonable
aws/aws.go
Outdated
"github.com/aws/aws-sdk-go-v2/service/appconfigdata" | ||
) | ||
|
||
func GetConfig(appName, profileName, env, region string) (string, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding a context.Context
here that can be passed by the calling code and re-used in every AWS function (better if we ever decide to do something we the context we can do it in the main file instead of having to update multiple places).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds reasonable
Co-authored-by: João Cerqueira <[email protected]>
…-fetch-action into feat/init
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 👍🏼
New action to fetch AWS appconfig configuration