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

Conflicting aws credentials environment keys and missing documentation on dynamodb #55

Closed
YannickTeKulve opened this issue Mar 23, 2023 · 6 comments
Labels
question Further information is requested

Comments

@YannickTeKulve
Copy link

YannickTeKulve commented Mar 23, 2023

Hi

I wanted to try digger but running in a few issues:

  • The enviroment variables to use for dynamodb credentials are the same as s3 backend. We use a local minio so those are not the same for us.
  • Missing documentation on what is needed for dynamodb.
@motatoes
Copy link
Contributor

Hi @YannickTeKulve thanks for trying out digger!

The enviroment variables to use for dynamodb credentials are the same as s3 backend. We use a local minio so those are not the same for us.

So you wish to support a separate state backend such as minio and in this case you have a separate set of keys like MINIO_ACCESS_KEY and MINIO_SECRET_KEY is it correct?

Missing documentation on what is needed for dynamodb.

I assume you mean the DynamoDB table which is created by digger for locks. Digger creates this dynamoDB table called DiggerDynamoDBLockTable implicitly on the first run if it does not exist.
We can fill in the documentation for you, you would like to know the IAM policy needed for dynamoDB access using these keys.

Let me know if it is what you meant!

@YannickTeKulve
Copy link
Author

Minio: terraform s3 backend can used for minio but uses AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY env (it's not logical, but it does work this way).
Dynamodb: yes, but I think documentation on how to get started on your own environment is lacking overall.

@motatoes
Copy link
Contributor

I have added some documentation on the required access for DynamoDB here: https://diggerhq.gitbook.io/digger-docs/cloud-providers/aws

let me know if anything I missed!

@motatoes
Copy link
Contributor

I'll get back to you RE Minio shortly

@motatoes motatoes added the question Further information is requested label Mar 23, 2023
@motatoes
Copy link
Contributor

Hey @YannickTeKulve we will support -backend-config option for terraform in #16 and you can use this to set it up with minio similar to this article

will this resolve your issue of dealing with multiple keys?

@YannickTeKulve
Copy link
Author

Yes I think it would

@veziak veziak closed this as completed Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants