You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
resource "spotinst_organization_programmatic_user" "environment" {
name = aws_eks_cluster.cluster.name
description = "User created for EKS"
policies {
policy_id = "2"
policy_account_ids = [
lookup(local.spot_account_map, local.environment)
]
}
}
Debug Output
N/A
Panic Output
N/A
Expected Behavior
This resource should be created and their should be an attribute which I can redirect the API Token to a secret, so that it can later be used.
Actual Behavior
Token is created but the resource has no attribute for me to pull it out into a secret. Token cannot be pulled out of the UI, which means I would have to later go into the console to create a new token. This makes a terraform resource for programmatic user essentially useless since the resource cannot be used.
Steps to Reproduce
Add the resource to an existing terraform.
Apply the terraform.
Attempt to utilize the existing API Token which is created.
Important Factoids
This should be easily reproducible in any environment
Terraform Version
% terraform -v
Terraform v1.9.7
on darwin_arm64
Your version of Terraform is out of date! The latest version
is 1.10.5. You can update by downloading from https://www.terraform.io/downloads.html
Affected Resource(s)
spotinst Provider version 1.209.2
https://registry.terraform.io/providers/spotinst/spotinst/latest/docs/resources/organization_programmatic_user
Terraform Configuration Files
resource "spotinst_organization_programmatic_user" "environment" {
name = aws_eks_cluster.cluster.name
description = "User created for EKS"
policies {
policy_id = "2"
policy_account_ids = [
lookup(local.spot_account_map, local.environment)
]
}
}
Debug Output
N/A
Panic Output
N/A
Expected Behavior
This resource should be created and their should be an attribute which I can redirect the API Token to a secret, so that it can later be used.
Actual Behavior
Token is created but the resource has no attribute for me to pull it out into a secret. Token cannot be pulled out of the UI, which means I would have to later go into the console to create a new token. This makes a terraform resource for programmatic user essentially useless since the resource cannot be used.
Steps to Reproduce
Important Factoids
This should be easily reproducible in any environment
References
https://registry.terraform.io/providers/spotinst/spotinst/latest/docs/resources/organization_programmatic_user
Community Note
The text was updated successfully, but these errors were encountered: