Comments (7)
Requirements for AWS SSO support:
- terraform 0.14.6+
- aws cli 2.1.24+
- terraform-aws-provider 3.26.0+
- aws-sdk-go to 1.37.0+ aws/aws-sdk-go#3755
Temporary solution:
- aws2-wrap
- aws-vault
Example with aws2-wrap:
[profile name-sso-source]
sso_start_url = __SSO_START_URL__
sso_region = __SSO_REGION__
sso_account_id = __SSO_ACCOUNT_ID__
sso_role_name = __SSO_ROLE_NAME__
region = us-east-1
output = json
[profile name-sso]
credential_process = aws2-wrap --process --profile name-sso-source
region = us-east-1
output = json
It works for me
from driftctl.
Btw workaround for me was
aws-vault exec MYAWS_SSO_PROFILE -- driftctl scan --from tfstate://./terraform.tfstate
from driftctl.
@rjcoelho Internally driftctl use terraform 0.14.0 and aws provider 3.19.5, maybe it is working in your terraform side as you use newer version of terraform and aws provider which support SSO ?
To be transparent, we are working on this actively. But updating terraform version and aws provider version implies a lot of work due to the actual architecture of the project.
We are refactoring the core of driftctl to make it work with any version of any terraform provider dynamically, but it will takes us a couple of weeks 🙏🏻
from driftctl.
@eliecharra that's probably it. Anyway great project and looking forward to using it.
from driftctl.
We now have a clearer vision of what's the problem is about the SSO support.
I explained it in this here.
TLDR, to enabling SSO support we need to bump aws-sdk and terraform-provider-aws to respectively v1.37.0+ and v3.26.0+.
from driftctl.
Terraform plan and apply is working, but driftctl scan --from tfstate://./terraform.tfstate
I get
error configuring Terraform AWS Provider: no valid credential sources for Terraform AWS Provider found.
Please see https://registry.terraform.io/providers/hashicorp/aws
for more information about providing credentials.
Error: NoCredentialProviders: no valid providers in chain. Deprecated.
For verbose messaging see aws.Config.CredentialsChainVerboseErrors
```
from driftctl.
AWS tf provider needed: 3.26+
LGTM! (demo by @wbeuil )
from driftctl.
Related Issues (20)
- Add Support For AWS Resource SSM
- Add Support for AWS Resource EKS
- No AWS provider error handler on detailed resource read
- feature request to update the contribution guide
- driftctl hangs. HOT 1
- Add support for configuration file instead of DCTL_ environment variables or command line flags
- Errors reading state files generated by terraform aws provider 5.*
- attribute "vm_protection_enabled" is required
- Out of sync issue with aws instance
- unsupported attribute "disable_execute_api_endpoint" for aws_api_gateway_rest_api
- unsupported attribute "blue_green_update" for aws_db_instance
- aws_route53_record validation error(s) found
- Unable to decode resource from state name=replicas type=google_sql_database_instance
- aws_db_instance: false positive not being covered by IaC
- .driftignore: Inline comments being ignored
- Driftcl scan is not showing drifted rescources HOT 4
- 0.40.0 release did not get completed HOT 2
- driftctl results in GCP not working as expected HOT 1
- Add support for AWS secrets
- driftctl.com is not accessible
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 driftctl.