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 assume role support for aws #1340

Merged
merged 1 commit into from
Jul 13, 2023
Merged

⭐ add assume role support for aws #1340

merged 1 commit into from
Jul 13, 2023

Conversation

vjeffrey
Copy link
Contributor

@vjeffrey vjeffrey commented Jul 5, 2023

add assume role support for aws

go run apps/cnquery/cnquery.go shell aws --option role-arn=ROLEARN
go run apps/cnquery/cnquery.go shell aws --option role-arn=ROLEARN --option external-id=EXTERNALID

@vjeffrey vjeffrey changed the base branch from main to v8 July 12, 2023 19:07
return func(o *stscreds.AssumeRoleOptions) {}
}

func WithAssumeRole(roleArn string, defaultCfg aws_sdk.Config, externalId string) ProviderOption {
Copy link
Contributor

Choose a reason for hiding this comment

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

[super nit] the order of the arguments seems maybe weird. Like why is defaultCfg between roleArn and externalId

@vjeffrey vjeffrey merged commit 6423c8d into v8 Jul 13, 2023
@vjeffrey vjeffrey deleted the vj/assume-role-aws branch July 13, 2023 08:06
@github-actions github-actions bot locked and limited conversation to collaborators Jul 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants