Skip to content

Commit

Permalink
Fix: use Terraform Provider AWS v3.16.0
Browse files Browse the repository at this point in the history
List functions were generated based on v3.16.0,
but during runtime an older version was downloaded to fetch attributes.
  • Loading branch information
jckuester committed Jan 3, 2021
1 parent ea0f23a commit e137016
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ You can download a specific version of AWSweeper on the [releases page](https://
install it the following way to `./bin/`:

```bash
curl -sSfL https://raw.githubusercontent.com/jckuester/awsweeper/master/install.sh | sh -s v0.11.0
curl -sSfL https://raw.githubusercontent.com/jckuester/awsweeper/master/install.sh | sh -s v0.11.1
```

### Homebrew
Expand Down
24 changes: 14 additions & 10 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
set -e
# Code generated by godownloader on 2020-06-08T07:08:51Z. DO NOT EDIT.
# Code generated by godownloader on 2021-01-03T12:24:40Z. DO NOT EDIT.
#

usage() {
Expand Down Expand Up @@ -63,18 +63,22 @@ execute() {
}
get_binaries() {
case "$PLATFORM" in
arm/386) BINARIES="awsweeper" ;;
arm/amd64) BINARIES="awsweeper" ;;
arm64/386) BINARIES="awsweeper" ;;
arm64/amd64) BINARIES="awsweeper" ;;
darwin/386) BINARIES="awsweeper" ;;
darwin/amd64) BINARIES="awsweeper" ;;
freebsd/386) BINARIES="awsweeper" ;;
darwin/arm64) BINARIES="awsweeper" ;;
darwin/armv6) BINARIES="awsweeper" ;;
darwin/armv7) BINARIES="awsweeper" ;;
freebsd/amd64) BINARIES="awsweeper" ;;
linux/386) BINARIES="awsweeper" ;;
freebsd/arm64) BINARIES="awsweeper" ;;
freebsd/armv6) BINARIES="awsweeper" ;;
freebsd/armv7) BINARIES="awsweeper" ;;
linux/amd64) BINARIES="awsweeper" ;;
windows/386) BINARIES="awsweeper" ;;
linux/arm64) BINARIES="awsweeper" ;;
linux/armv6) BINARIES="awsweeper" ;;
linux/armv7) BINARIES="awsweeper" ;;
windows/amd64) BINARIES="awsweeper" ;;
windows/arm64) BINARIES="awsweeper" ;;
windows/armv6) BINARIES="awsweeper" ;;
windows/armv7) BINARIES="awsweeper" ;;
*)
log_crit "platform $PLATFORM is not supported. Make sure this script is up-to-date and file request at https://github.com/${PREFIX}/issues/new"
exit 1
Expand Down Expand Up @@ -378,7 +382,7 @@ log_info "found version: ${VERSION} for ${TAG}/${OS}/${ARCH}"
NAME=${PROJECT_NAME}_${VERSION}_${OS}_${ARCH}
TARBALL=${NAME}.${FORMAT}
TARBALL_URL=${GITHUB_DOWNLOAD}/${TAG}/${TARBALL}
CHECKSUM=${PROJECT_NAME}_${VERSION}_checksums.txt
CHECKSUM=checksums.txt
CHECKSUM_URL=${GITHUB_DOWNLOAD}/${TAG}/${CHECKSUM}


Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func mainExitCode() int {
}

// initialize a Terraform AWS provider for each AWS client with a matching config
providers, err := util.NewProviderPool(clientKeys, "v2.68.0", "~/.awsweeper", timeoutDuration)
providers, err := util.NewProviderPool(clientKeys, "v3.16.0", "~/.awsweeper", timeoutDuration)
if err != nil {
fmt.Fprint(os.Stderr, color.RedString("\nError: %s\n", err))

Expand Down

0 comments on commit e137016

Please sign in to comment.