Skip to content
This repository was archived by the owner on Apr 17, 2026. It is now read-only.

Added an optional aws_session_token variable - #35

Open
l4zy0n3 wants to merge 4 commits into
rancher-archives:mainfrom
l4zy0n3:main
Open

Added an optional aws_session_token variable#35
l4zy0n3 wants to merge 4 commits into
rancher-archives:mainfrom
l4zy0n3:main

Conversation

@l4zy0n3

@l4zy0n3 l4zy0n3 commented Feb 2, 2024

Copy link
Copy Markdown

aws_session_token is required for some aws accounts to access aws

@igomez06 igomez06 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Just one comment about make the aws session token optional through the yaml.


variable "aws_access_key" {}
variable "aws_secret_key" {}
variable "aws_session_token" {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Yash if it's optional I think we need to default it. The optional aspect should go here: https://github.com/rancherlabs/corral-packages/blob/main/templates/aws/nodes/manifest.yaml

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Also I don't see where it's used.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@igomez06 for reference https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html
Since I was using a temporary token, I had to set this variable

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@l4zy0n3 But it's not really answering my question how are you setting this? And why isn't it in the manifest.yaml? Are you reading it as an env var? How would you set this in a Jenkins job?

@l4zy0n3

l4zy0n3 commented May 2, 2024

Copy link
Copy Markdown
Author

Hi @igomez06 , If this looks ok, can we merge this?

variable "corral_name" {} // name of the corral being created
variable "corral_user_id" {} // how the user is identified (usually github username)
variable "corral_public_key" {} // The corrals public key. This should be installed on every node.
variable "corral_name" {} // name of the corral being created

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Last point why does it have all of this formatting changes? Is this necessary?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

sure, @igomez06, I'll revert the unnecessary formatting

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