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 support for credentials profile in provider configuration #125

Open
davidcaste opened this issue Nov 19, 2020 · 1 comment
Open

Add support for credentials profile in provider configuration #125

davidcaste opened this issue Nov 19, 2020 · 1 comment
Assignees
Labels
kind/feature Categorizes an issue or PR as related to a new feature or request.

Comments

@davidcaste
Copy link

Terraform and provider versions

Terraform v0.13.5
provider.spotinst: v1.27.0

Description

According to the provider documentation, there is no way to establish which profile to use in case of using a credentials file.

Use Cases

An organization with several environments, each of them in a different account. The operator has a spotinst credentials file in its filesystem:

default:
  token: <redacted>
  account: <redacted>
production:
  token: <redacted>
  account: <redacted>

It would be great to be able to establish the profile in use in the provider configuration.

Potential Terraform Configuration

Given the credentials file listed before, a provider could be configured the following way:

provider "spotinst" {
  profile = "production"
}

References

The spotinst-sdk-go seems to already have support for profiles in credentials files.

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.
@davidcaste davidcaste added the kind/feature Categorizes an issue or PR as related to a new feature or request. label Nov 19, 2020
@kakmt
Copy link

kakmt commented Mar 10, 2021

Same issue here in Terraform 0.13.6 & provider.spotinst 1.35.0
But there's no problem in Terraform 0.12.30 & provider.spotinst 1.27.0 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes an issue or PR as related to a new feature or request.
Projects
None yet
Development

No branches or pull requests

3 participants