Skip to content

Commit

Permalink
New Resource: time_rotating (#1)
Browse files Browse the repository at this point in the history
This migrates the original expiration logic in the `time_static` resource into a new `time_rotating` resource. This simplifies `time_static` to only having one purpose and simplifies the rotation logic into its own self-contained resource.
  • Loading branch information
bflad authored Feb 14, 2020
1 parent 2af53ca commit 4f6eb73
Show file tree
Hide file tree
Showing 10 changed files with 953 additions and 619 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# v0.2.0

BREAKING CHANGES:

* resource/time_static: The `expiration_` arguments have been moved to the new `time_rotating` resource as `rotation_` arguments.

FEATURES:

* **New Resource:** `time_rotating`

# v0.1.0

FEATURES:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ This Terraform Provider is not available to install automatically via `terraform

Until this Terraform Provider is brought under the Terraform Provider development program, resource documentation can be found within this repository.

- [`time_rotating` Resource](./website/docs/r/rotating.html.markdown)
- [`time_static` Resource](./website/docs/r/static.html.markdown)

## Developing the Provider
Expand Down
3 changes: 2 additions & 1 deletion internal/tftime/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import (
func Provider() *schema.Provider {
return &schema.Provider{
ResourcesMap: map[string]*schema.Resource{
"time_static": resourceTimeStatic(),
"time_rotating": resourceTimeRotating(),
"time_static": resourceTimeStatic(),
},
}
}
Loading

0 comments on commit 4f6eb73

Please sign in to comment.