Comments (2)
TFLint supports only shared credentials (
/.aws/credentials) , not configuration file (/.aws/config).
The region can only be written in configuration file, so you need to specify it separately.
Ahhhhh, that all makes absolute sense.
For the record, I actually found a better way to deal with all this: In Jenkinsfile
I have the following wrapping for all tflint usage:
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'aws-jenkins', usernameVariable: 'AWS_ACCESS_KEY_ID', passwordVariable: 'AWS_SECRET_ACCESS_KEY']]) { }
In the credentials plugin, I put in the access key as username and secret key as the password. Works great! I also set the region as an environment variable, and when it's different the project has a .tflint.hcl
in its directory that overrides it.
I still see some use from specifying the location of the credentials file, but this works well enough.
Again, thanks for your work!
from tflint.
Thanks for your feedback :)
it's an option to create another, tflint-specific, secret Jenkins file with the credentials but that would be a duplication effort I'd prefer to avoid.
You're right. I'm just considering an implementation that interprets the Terraform provider
section.
However, it need the big changes, so I have not started implementing yet.
is there any reason that the region isn't being parsed out of the credentials file as well?
TFLint supports only shared credentials (~/.aws/credentials
) , not configuration file (~/.aws/config
).
The region can only be written in configuration file, so you need to specify it separately.
from tflint.
Related Issues (20)
- tflint does not recognise `removed` blocks
- Allow plugins located on github.com and GHES to be installed at once as an authenticated request HOT 2
- String interpolation passed as a list HOT 1
- Sarif output should use the final schema version HOT 2
- The latest version don't use the last version of the tflint-ruleset-azurerm
- Terraform 1.8.x builtin functions break tflint syntax parsing HOT 2
- Support monorepo release versions for plugins HOT 1
- Clarify license notices HOT 2
- BUSL-1.1 licensed code found in tflint HOT 2
- Allow use of `--chdir` and `--recursive` together HOT 1
- Add source Attribute to Checkstyle Format HOT 1
- Add python3.12 lambda runtime HOT 1
- tflint does not recognise ".tf" files at the root of the folder HOT 1
- Error when var file includes undeclared variables HOT 7
- Add support for Terraform v1.9
- Add support for evaluating static module outputs
- tflint --recursive --call-module-type=all cannot find nested local modules
- Race condition on circular dependency check when using parallel workers HOT 3
- foo = "bar"
- Add a rule to catch when typed object arguments to modules provide extra keys
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tflint.