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

add role assumption option #263

Merged
merged 6 commits into from
Oct 16, 2024
Merged

add role assumption option #263

merged 6 commits into from
Oct 16, 2024

Conversation

anvddriesch
Copy link
Contributor

@anvddriesch anvddriesch commented Oct 2, 2024

https://github.com/giantswarm/giantswarm/issues/31705

This PR:

  • adds the option to give a role arn for the operator user to assume in aws

Checklist

  • Update changelog in CHANGELOG.md.

@anvddriesch anvddriesch self-assigned this Oct 2, 2024
@@ -21,7 +19,7 @@ type AWSClients struct {

// NewRoute53Client creates a new Route53 API client for a given session
func NewRoute53Client(session cloud.Session, target runtime.Object) *route53.Route53 {
Route53Client := route53.New(session.Session(), &aws.Config{Credentials: credentials.NewSharedCredentials("", "")})
Route53Client := route53.New(session.Session(), nil)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We want to use the credentials we already created for the session below in NewClusterScope

@anvddriesch anvddriesch marked this pull request as ready for review October 16, 2024 11:00
@anvddriesch anvddriesch requested a review from a team as a code owner October 16, 2024 11:00
Copy link
Contributor

@vxav vxav left a comment

Choose a reason for hiding this comment

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

Maybe a short paragraph in the README on how/why to use it?

@anvddriesch
Copy link
Contributor Author

Makes sense. I will add a paragraph 👍
For the full setup including all the iam resources I want to add something similar to this later https://github.com/giantswarm/mc-bootstrap/blob/main/docs/cert-manager-route53-dns01/cert-manager-aws-credentials.md

@anvddriesch anvddriesch merged commit d2fb96b into main Oct 16, 2024
6 checks passed
@anvddriesch anvddriesch deleted the assume-role branch October 16, 2024 15:12
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.

2 participants