Commit Graph
35 Commits
Author SHA1 Message Date
Jeff Mitchell b578fdcf98 With r_default now unable to delete, return nil instead of error if it's attempted 2020-09-21 21:54:00 -04:00
Jeff Mitchell 86d7fde1eb Update to session connection limit being int32 with unlimited being -1 2020-09-20 15:54:50 -04:00
Jeff Mitchell 2fbad77da5 Add some extra params to target test 2020-09-20 12:58:37 -04:00
Jeff Mitchell ef804f1ba0 Fix tests that broke due to SDK update 2020-09-20 12:13:08 -04:00
Jeff Mitchell e006bd2fd1 Add session max seconds and connection limit to target resource (#44) 2020-09-20 12:03:28 -04:00
Jeff Mitchell defeb32cd6 When reading a resource, on 404 destroy the resource (#41)
This allows configuration to continue after a resource has been
destroyed outside of TF by deleting the resource from state instead of
erroring.
2020-09-17 00:29:37 -04:00
Jeff Malnick d19dd70b06 fix: check default port in map is not nil 2020-09-16 13:27:44 -07:00
Jeff Mitchell 94b1bdbedc Don't allow role creation in new scopes by default
And, fix all the breakage that caused.
2020-09-16 12:34:37 -07:00
Jeff Malnick 975fd2e2d4 test: add test for auth method resource (#36) 2020-09-15 20:43:14 -07:00
Jeff Mitchell 7ce50c41fd Update target to address default_port -> attributes (#35) 2020-09-15 21:05:45 -04:00
Jeff Mitchell 88946e1088 Update to the new SDK/API (#32)
* Begin API updating

* Update scope and user providers

* Update group resource

* Update to TF plugin SDK v2

* Finish recovery KMS workflow

This also modifies groups tests to use it. It's easy to verify from the
controller output that it's being used since it causes warnings to be
printed.

* Finish porting group resource to proposed new paradigm

* Minor cleanup

* Allow specifying a particular token for auth

* base_url -> addr

* Add test using token

* Add set calls to Update

* Update SDK

* Update SDK

* Update user and scope

* Half of host catalog and some consolidation

* Finish host catalog

* Add host resource

* Add host set resource

* Update targets

* Some updates to newer API

* Start updating to response map standards

* Finish updating already ported resources to new paradigm

* Finish existing resource porting

* Update target to exercise default port

* Adapt target to using json.Number

* Add auth method and account resources
2020-09-15 16:56:43 -07:00
Jeff Malnick 97f24b8bcd fix: use hard coded "global" scope for organization creation 2020-09-04 08:09:32 -07:00
Jeff Malnick e7b7a2705c feat: add targets resource 2020-09-03 14:36:29 -07:00
Jeff Malnick d18a0b2bec feat: add host set resource 2020-09-02 15:18:17 -07:00
Jeff Malnick 5d604f03f4 feat: update auth method prefix to ampw_ 2020-08-29 12:02:52 -07:00
Jeff Malnick 251665f1d1 feat: use NewClient() pattern and refactor hostCatalog usage 2020-08-29 12:02:52 -07:00
Jeff Malnick bf21e83341 feat: update user, group, and role resources with organization resource usage 2020-08-28 07:03:11 -07:00
Jeff Malnick 039ce8281b feat: update project resource with organization scope 2020-08-28 07:03:11 -07:00
Jeff Malnick 5b045bb4a9 feat: add host & organization resource to provider 2020-08-28 07:03:11 -07:00
Jeff Malnick dfec34e669 feat: add organization resource 2020-08-28 07:03:11 -07:00
Jeff Malnick cace004114 feat: add host resource 2020-08-28 07:03:11 -07:00
Jeff Malnick 564378a84e Add member_ids to boundary_group resource (#21)
* feat: add members to groups

* docs: update boundary_group docs with member_ids
2020-08-17 11:50:18 -07:00
Jeff Malnick c1069f7303 feat: use scope_id instead of project_id (#19) 2020-08-15 14:49:09 -07:00
Jeff Malnick 0bcb0ed506 Update to use latest SDK (#18)
* chore: update provider.go to latest SDK

* chore: update resource_group.go to latest SDK

* chore: update resource_host_catalog.go to latest SDK

* chore: update resource_project.go to latest SDK

* chore: update resource_role.go to latest SDK

* chore: fix group resource to use project client

* chore: update resource_users.go to latest SDK

* chore: update resource_group_test.go to latest SDK

* chore: refactor resource_host_catalog_test.go to latest sdk

* chore: refactor resource_project_test.go to latest sdk

* chore: refactor resource_user_test.go to latest sdk

* chore: update to latest SDK usage

* update to use latest test controller

* feat: make project_id optional and override scope if set

* test: test org and project level group creation

* chore: pass around authToken info for using principal ID in setting grant scope

* build: update deps
2020-08-13 11:18:36 -07:00
Jeff Malnick f6573a6277 chore: update to name boundary (#17) 2020-08-11 16:12:26 -07:00
Jeff Mitchell 43d23f179e Update provider and tests for combined user/groups into principals in role (#15) 2020-07-12 23:28:07 -04:00
Jeff Malnick 33675ab5c7 feat: add provider authentication (#11)
* feat: add authentication to provider

* docs: add provider documentation
2020-07-12 15:09:40 -07:00
Jeff Malnick a6b4fa8ebe feat: add grants to roles (#14)
* feat: add grants to roles

* docs: add grants example
2020-07-12 15:00:16 -07:00
Jeff Malnick 13e3638dd6 Add principles to roles (#12)
* feat: add principle to role resource

* docs: add principle usage to role resource
2020-07-10 15:32:44 -07:00
Jeff Malnick d9c9988d15 feat: add role resource (#7)
* feat: add role resource

* docs: add role resource docs
2020-07-02 14:23:56 -07:00
Jeff Malnick 2f71ef6f63 feat: add group resource (#6)
* feat: add group resource

* docs: add docs for group resource
2020-07-02 14:22:08 -07:00
Jeff Malnick 7b947a8721 feat: add user resource (#5)
* feat: add user resource

* docs: add docs for user resource
2020-07-02 14:19:05 -07:00
Jeff Malnick de4d32466e feat: add host catalog resource (#2)
* feat: add dev and update-deps Makefile targets

* feat: add host catalog resource

* docs: add host catalog resource docs
2020-06-09 18:24:17 -07:00
Todd Knight 5bb8c82819 Create Watchtower Project Resources (#1)
* Add watchtower provider using the auto generated go sdk.

* Add read and create for project resources.

* Add provider internal validate test.

* Update the project module to be terraform-provider-watchtower

* Organize the ResourceData to Project and vis versa logic into their own helper methods.

* Adding tests for going ResourceData to Project and vis versa.

* provider_update

* Single acceptance test written and correctly failing.

* Implement update and delete. Always run Acceptance Testing

* Move project field names into constants.

* Allow tests to use the apiError response for checking error code.

* Correcting the naming of key value consts.

* Rely on "make testacc" for acceptance testing instead of always running it.

* Updating dependencies to use the new TestController creation.
2020-05-29 09:13:31 -07:00
Todd Knight a9af48caee Initial commit 2020-05-14 17:06:23 -07:00