Skip to content

Script fails when execution on unused region is disallowed. #12

Description

@behemphi
[boydhemphill@Boyds-MBP ~/code/scripts] [PROD]$./lw_aws_inventory.sh -p  contrast-production
eu-north-1

An error occurred (UnauthorizedOperation) when calling the DescribeInstances operation: You are not authorized to perform this operation.
./lw_aws_inventory.sh: line 78: 0 + : syntax error: operand expected (error token is " ")

We lock down unused regions, even to ourselves. Thus the script fails.

Recommend that user be able to specify regions as a list manually.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions