Skip to content

AWS assume the role being provided#2361

Open
patrickdappollonio wants to merge 27 commits intomainfrom
aws-auth
Open

AWS assume the role being provided#2361
patrickdappollonio wants to merge 27 commits intomainfrom
aws-auth

Conversation

@patrickdappollonio
Copy link
Copy Markdown
Contributor

@patrickdappollonio patrickdappollonio commented Jan 13, 2025

Description

This PR:

  • Finds any default configuration for AWS authentication, including profiles, config files, and keys in environment variables.
  • Accepts a new role ARN to assume.
  • Verifies if the provided role has the minimum permissions to create clusters.
  • Converts the credentials to use the custom role ARN.

Related Issue(s)

Fixes #

How to Test

  1. Run aws configure to ensure your AWS credentials are set up correctly for provisioning.
  2. Provision a management cluster using the following example command:
    go run . aws create \
      --alerts-email 1@gmail.com \
      --domain-name kubefirst.tech \
      --dns-provider cloudflare \
      --gitops-template-branch main \
      --git-provider gitlab \
      --gitlab-group ar373 \
      --cluster-name rr53

@patrickdappollonio patrickdappollonio marked this pull request as draft January 13, 2025 22:59
@jokestax jokestax marked this pull request as ready for review January 27, 2025 14:23
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