Commit Graph
26 Commits
Author SHA1 Message Date
hashicorp-copywrite[bot] cef41e852e [COMPLIANCE] Add Copyright and License Headers 2023-01-03 22:03:42 +00:00
Jeff Mitchell 54e680e942 Add region into IAM clients as well as EC2 clients (#18) 2022-09-02 14:35:34 -04:00
Jeff Mitchell edc129991f Update option handling in EC2Client and add custom HTTP client (#17) 2022-09-01 15:25:14 -04:00
Jeff Mitchell 7256300997 Update some deps and fix tests; add set attr normalization (#16) 2022-08-19 00:42:19 -04:00
Haotian 5ebf2fa5d0 refactor(errors): update plugin errors to include error codes 2022-03-10 11:00:57 -08:00
Chris Marchesi 7a07ac42c0 add default address/DNS check/add for interface, not just whole instance 2021-12-06 11:40:44 -08:00
Chris Marchesi 13469e3594 plugin: add DNS names
This adds DNS names to the output for host queries.

Hosts are discovered in private, then public order, first at the
top-level, and then through attached network interfaces. This mirrors
the discovery order of IP addresses.
2021-12-03 13:24:48 -08:00
Chris Marchesi 07270a7457 plugin: add unknown attr checks, fix E2E test
This adds checks for unknown attributes through the entire plugin
lifecycle for all attributes, secrets, and persisted state.

It also fixes the E2E test which seems to have drifted.
2021-11-16 17:29:17 -08:00
Jeff Mitchell 1c7bacafa7 Handle the case where an incoming filter is a string (#4)
Ideally we'd ensure that an incoming filter is a string, but some
clients, such as the CLI, don't have a good way to require this without
it being very onerous to the user.

Eventually we can handle this via allowing the plugin to declare a
schema and perform type validation in the handler, but for now, work
around this within the plugin.
2021-11-12 19:47:46 -05:00
Todd Knight 563a2b9931 Don't return nil, nil but instead return an empty response. 2021-11-10 15:41:23 -07:00
Jeff Mitchell 1de471d9c7 Update filters to new, http.proto-compatible format (#2)
This updates the filtering logic to use the new format that doesn't
clash with http.proto rules for attributes used by grpc-gateway.
2021-11-03 21:21:27 -04:00
Chris Marchesi 9099292d03 Don't ignore non-running instances, rely on filter instead
We now add the instance-state = ["running"] filter to all queries if
instance-state is not explicitly defined beforehand. This should ensure
that all queries return running instances beforehand (saving some
post-processing later too).

As such, I'm removing an artifact of the old code where we were not
doing this, which was basically to skip all running instances.

Additionally, this will allow an operator to include non-running
instances in a filter should this be desired for whatever reason.
2021-10-07 14:15:32 -07:00
Chris Marchesi 9a5e4016fa most of the remaining unit testing added 2021-10-07 12:40:55 -07:00
Chris Marchesi 00907f72cc more error coverage 2021-10-06 16:53:11 -07:00
Chris Marchesi 6d9338d8a0 more error test coverage 2021-10-06 12:47:05 -07:00
Chris Marchesi f7c5709046 WIP - more unit testing 2021-09-30 17:05:30 -07:00
Chris Marchesi d98e41f91c adding some coverage for some error cases 2021-09-27 16:47:51 -07:00
Chris Marchesi 8db12c2775 update to latest SDK, add set ID reporting 2021-09-27 15:30:37 -07:00
Chris Marchesi 08fac13f71 E2E testing complete 2021-09-24 12:47:57 -07:00
Chris Marchesi 6598a2d68a more wip, adding a bunch more testing stuff 2021-09-23 17:24:54 -07:00
Chris Marchesi b61d0ba244 more WIP: lots of fun testing 2021-09-22 17:00:37 -07:00
Chris Marchesi 84353f46b9 more WIP, got things fixed to the point where it builds 2021-09-20 11:13:59 -07:00
Chris Marchesi 544c8fce5b even more WIP 2021-09-17 16:56:01 -07:00
Chris Marchesi efa2f78a73 more WIP 2021-09-17 12:32:08 -07:00
Chris Marchesi 769daf7398 WIP 2021-09-16 17:54:32 -07:00
Chris Marchesi 1e6761885e initial commit 2021-09-15 17:06:09 -07:00