Merge branch 'main' into aws_route_table

main
Elie 2021-01-15 16:15:06 +01:00 committed by GitHub
commit a125839d9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 5 deletions

View File

@ -41,6 +41,11 @@ driftctl tracks how well your IaC codebase covers your cloud configuration. drif
- Allow users to **ignore** resources
- Multiple output formats
## Documentation & support
- [User guide](doc/README.md)
- [Discord](https://discord.gg/eYGHUa75Q2)
## Getting started
### Installation
@ -152,10 +157,6 @@ $ AWS_PROFILE=profile_name driftctl scan
# With state stored on a s3 backend
$ driftctl scan --from tfstate+s3://my-bucket/path/to/state.tfstate
```
## Documentation & support
- [User guide](doc/README.md)
- [Discord](https://discord.gg/eYGHUa75Q2)
## Contribute

View File

@ -21,6 +21,12 @@ You can now use driftctl by overriding the profile setting.
$ AWS_PROFILE=driftctlrole driftctl scan
```
## CloudFormation template
Deploy this CloudFormation template to create our limited permission role that you can use as per our above authentication guide.
[![Launch Stack](https://cdn.rawgit.com/buildkite/cloudformation-launch-stack-button-svg/master/launch-stack.svg)](https://console.aws.amazon.com/cloudformation/home?#/stacks/new?stackName=driftctl-stack&templateURL=https://driftctl-cfn-templates.s3.eu-west-3.amazonaws.com/driftctl-role.yml)
## Least privileged policy
Driftctl needs access to your cloud provider account so that it can list resources on your behalf.

View File

@ -86,5 +86,5 @@ func (r *ScanResult) AssertDriftCountTotal(count int) {
}
func (r ScanResult) AssertInfrastructureIsInSync() {
r.Equal(true, r.Analysis.IsSync(), "Infrastructure is not in sync")
r.Equal(true, r.Analysis.IsSync(), fmt.Sprintf("Infrastructure is not in sync: %+v", r.Analysis.Summary()))
}