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

Programmatic users have API Tokens that are not able to be used #626

Open
matthew-mattoon opened this issue Feb 20, 2025 · 0 comments
Open
Labels
kind/bug Categorizes an issue or PR as related to a bug.

Comments

@matthew-mattoon
Copy link

Terraform Version

% terraform -v
Terraform v1.9.7
on darwin_arm64

  • provider registry.terraform.io/eppo/environment v1.3.6
  • provider registry.terraform.io/gavinbunney/kubectl v1.19.0
  • provider registry.terraform.io/hashicorp/aws v5.85.0
  • provider registry.terraform.io/hashicorp/external v2.3.4
  • provider registry.terraform.io/hashicorp/helm v2.17.0
  • provider registry.terraform.io/hashicorp/kubernetes v2.35.1
  • provider registry.terraform.io/hashicorp/random v3.6.3
  • provider registry.terraform.io/hashicorp/tls v4.0.6
  • provider registry.terraform.io/spotinst/spotinst v1.209.1

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

  • spotinst_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

  1. Add the resource to an existing terraform.
  2. Apply the terraform.
  3. Attempt to utilize the existing API Token which is created.

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

  • Please vote on this issue by adding a 👍 reaction to help the community and maintainers prioritize this request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
@matthew-mattoon matthew-mattoon added the kind/bug Categorizes an issue or PR as related to a bug. label Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes an issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

1 participant