Commit Graph
28 Commits
Author SHA1 Message Date
Jeff Mitchell 4cc5785dc8 Bump SDK 2020-09-21 15:16:30 -04:00
Jeff Mitchell ecbb054595 Update boundary SDK to fix recovery KMS retry behavior 2020-09-21 11:06:12 -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 e006bd2fd1 Add session max seconds and connection limit to target resource (#44) 2020-09-20 12:03:28 -04: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 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 e7b7a2705c feat: add targets resource 2020-09-03 14:36:29 -07:00
Jeff Malnick 69fc17094c build: update deps 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 1d1a92019a build: update to latest SDK changes 2020-08-29 12:02:52 -07:00
Jeff Malnick 0a9615c27c build: update deps 2020-08-28 07:03:11 -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 Mitchell c89a39c067 Bump boundary dep 2020-08-12 21:58:16 -04:00
Jeff Mitchell 800d47ec18 Update boundary dep 2020-08-12 17:35:10 -04:00
Jeff Mitchell 1ddeb7a075 Fix up some boundary naming 2020-08-12 09:35:02 -04:00
Jeff Malnick f6573a6277 chore: update to name boundary (#17) 2020-08-11 16:12:26 -07:00
Jeff Malnick 46c5491a54 fix: private module loading and ability to run acceptance tests in ci (#16)
* fix: private module loading and ability to run accptance tests in ci

* build: update deps
2020-07-24 20:29:19 -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 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